]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:23:02 +0000 (11:23 -0700)
commit89e16408cedfeac6b7289397074bd9b44a594034
tree011f3c231b8367a02981a4e4c6f9b3e831867196
parent7bf8439befd355aa60d8448ba238b555f0242482
KVM: VMX: enable VMXON check with SMX enabled (Intel TXT)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(Cherry-picked from commit cafd66595d92591e4bd25c3904e004fc6f897e2d)
arch/x86/include/asm/msr-index.h
arch/x86/kernel/tboot.c
arch/x86/kvm/vmx.c
include/linux/tboot.h