hv: allocate synic pages for all present CPUs

am: 374907e8d1

Change-Id: I02cedccd5cf715fd4b48f75daa30d1316f8048bc
This commit is contained in:
Vitaly Kuznetsov
2017-03-12 08:21:43 +00:00
committed by android-build-merger

View File

@@ -422,7 +422,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");
@@ -485,7 +485,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);
}