hv: allocate synic pages for all present CPUs

am: 879dc37cc3

Change-Id: I0d8f2c5080ebffe49d7d32c7f58f01049a560ea1
This commit is contained in:
Vitaly Kuznetsov
2017-03-12 08:27:46 +00:00
committed by android-build-merger

View File

@@ -411,7 +411,7 @@ int hv_synic_alloc(void)
goto err;
}
for_each_online_cpu(cpu) {
for_each_present_cpu(cpu) {
hv_context.event_dpc[cpu] = kmalloc(size, GFP_ATOMIC);
if (hv_context.event_dpc[cpu] == NULL) {
pr_err("Unable to allocate event dpc\n");
@@ -482,7 +482,7 @@ void hv_synic_free(void)
int cpu;
kfree(hv_context.hv_numa_map);
for_each_online_cpu(cpu)
for_each_present_cpu(cpu)
hv_synic_free_cpu(cpu);
}