diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-12-15 13:29:54 +0800 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-03-01 12:35:39 -0300 |
commit | 59708670b639bff00f92e519df1ae14da240e919 (patch) | |
tree | d13c81270cb94ce85e0d2cee773dbe62d7a9a79d /arch/x86/include | |
parent | 186a3e526ac1b4063a723f90ae4893beedb24fc6 (diff) | |
download | kernel_samsung_smdk4412-59708670b639bff00f92e519df1ae14da240e919.zip kernel_samsung_smdk4412-59708670b639bff00f92e519df1ae14da240e919.tar.gz kernel_samsung_smdk4412-59708670b639bff00f92e519df1ae14da240e919.tar.bz2 |
KVM: VMX: Trap and invalid MWAIT/MONITOR instruction
We don't support these instructions, but guest can execute them even if the
feature('monitor') haven't been exposed in CPUID. So we would trap and inject
a #UD if guest try this way.
Cc: stable@kernel.org
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/vmx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h index 2b49454..8f6b011 100644 --- a/arch/x86/include/asm/vmx.h +++ b/arch/x86/include/asm/vmx.h @@ -251,6 +251,7 @@ enum vmcs_field { #define EXIT_REASON_MSR_READ 31 #define EXIT_REASON_MSR_WRITE 32 #define EXIT_REASON_MWAIT_INSTRUCTION 36 +#define EXIT_REASON_MONITOR_INSTRUCTION 39 #define EXIT_REASON_PAUSE_INSTRUCTION 40 #define EXIT_REASON_MCE_DURING_VMENTRY 41 #define EXIT_REASON_TPR_BELOW_THRESHOLD 43 |