From: Avi Kivity Date: Sat, 6 Jun 2009 09:34:39 +0000 (+0300) Subject: KVM: Explicity initialize cpus_hardware_enabled X-Git-Tag: v2.6.30~12^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4c0364be3f43d3e17fe19270f8b3d64881606e6;p=pandora-kernel.git 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 Signed-off-by: Avi Kivity --- Reading git-diff-tree failed