KVM: VMX: fix detection of BIOS disabling VMX
authorJoseph Cihula <joseph.cihula@intel.com>
Tue, 8 Feb 2011 19:45:56 +0000 (11:45 -0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:30 +0000 (13:08 -0300)
commit23f3e99132aa5c5f887648c50597d8f2b5800417
tree5b1d2b1c40fb935c86d59be3ec8a598effd077f9
parente935b8372cf8c63dc618a9f2b24ab360a225f1cd
KVM: VMX: fix detection of BIOS disabling VMX

This patch fixes the logic used to detect whether BIOS has disabled VMX, for
the case where VMX is enabled only under SMX, but tboot is not active.

Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c