linux/virt/kvm
Avi Kivity a4c0364be3 KVM: Explicity initialize cpus_hardware_enabled
Under CONFIG_MAXSMP, cpus_hardware_enabled is allocated from the heap and
not statically initialized.  This causes a crash on reboot when kvm thinks
vmx is enabled on random nonexistent cpus and accesses nonexistent percpu
lists.

Fix by explicitly clearing the variable.

Cc: stable@kernel.org
Reported-and-tested-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
2009-06-08 10:50:46 +03:00
..
coalesced_mmio.c
coalesced_mmio.h
ioapic.c KVM: Report IRQ injection status to userspace. 2009-03-24 11:03:11 +02:00
ioapic.h KVM: Report IRQ injection status to userspace. 2009-03-24 11:03:11 +02:00
iodev.h
iommu.c
irq_comm.c KVM: fix sparse warnings: Should it be static? 2009-03-24 11:03:14 +02:00
kvm_main.c KVM: Explicity initialize cpus_hardware_enabled 2009-06-08 10:50:46 +03:00
kvm_trace.c