KVM: VMX: enable VMXON check with SMX enabled (Intel TXT)
authorShane Wang <shane.wang@intel.com>
Thu, 29 Apr 2010 16:09:01 +0000 (12:09 -0400)
committerAvi Kivity <avi@redhat.com>
Wed, 19 May 2010 08:36:34 +0000 (11:36 +0300)
Per document, for feature control MSR:

  Bit 1 enables VMXON in SMX operation. If the bit is clear, execution
        of VMXON in SMX operation causes a general-protection exception.
  Bit 2 enables VMXON outside SMX operation. If the bit is clear, execution
        of VMXON outside SMX operation causes a general-protection exception.

This patch is to enable this kind of check with SMX for VMXON in KVM.

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

No differences found