KVM: VMX: Trap and invalid MWAIT/MONITOR instruction
authorSheng Yang <sheng@linux.intel.com>
Tue, 15 Dec 2009 05:29:54 +0000 (13:29 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:39 +0000 (12:35 -0300)
commit59708670b639bff00f92e519df1ae14da240e919
treed13c81270cb94ce85e0d2cee773dbe62d7a9a79d
parent186a3e526ac1b4063a723f90ae4893beedb24fc6
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>
arch/x86/include/asm/vmx.h
arch/x86/kvm/vmx.c