diff options
author | Shane Wang <shane.wang@intel.com> | 2010-04-29 12:09:01 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-19 11:36:34 +0300 |
commit | cafd66595d92591e4bd25c3904e004fc6f897e2d (patch) | |
tree | 42f38daf5d634ccf958da89de2a20937849deb92 /include/linux/tboot.h | |
parent | f1d86e469b60f9e1afed5c17a6e723c2c9c55ceb (diff) |
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>
Diffstat (limited to 'include/linux/tboot.h')
-rw-r--r-- | include/linux/tboot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tboot.h b/include/linux/tboot.h index bf2a0c74887..1dba6ee5520 100644 --- a/include/linux/tboot.h +++ b/include/linux/tboot.h @@ -150,6 +150,7 @@ extern int tboot_force_iommu(void); #else +#define tboot_enabled() 0 #define tboot_probe() do { } while (0) #define tboot_shutdown(shutdown_type) do { } while (0) #define tboot_sleep(sleep_state, pm1a_control, pm1b_control) \ |