]> git.baikalelectronics.ru Git - kernel.git/commit
xen/smp/pvhvm: Don't point per_cpu(xen_vpcu, 33 and larger) to shared_info
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sun, 5 May 2013 13:24:07 +0000 (09:24 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 8 May 2013 12:38:08 +0000 (08:38 -0400)
commitbdc0480a0c4e75a9c3319401b79d6f5fcfdf5b80
tree0367b7d153610ad997a8b2b8d75ee84fdea4f441
parenta7ee0fd3c6c856902706b8859f20782880e9b6e8
xen/smp/pvhvm: Don't point per_cpu(xen_vpcu, 33 and larger) to shared_info

As it will point to some data, but not event channel data (the
shared_info has an array limited to 32).

This means that for PVHVM guests with more than 32 VCPUs without
the usage of VCPUOP_register_info any interrupts to VCPUs
larger than 32 would have gone unnoticed during early bootup.

That is OK, as during early bootup, in smp_init we end up calling
the hotplug mechanism (xen_hvm_cpu_notify) which makes the
VCPUOP_register_vcpu_info call for all VCPUs and we can receive
interrupts on VCPUs 33 and further.

This is just a cleanup.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/enlighten.c