]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:07:09 +0000 (09:07 -0700)
commit36725f4d9636cea24ce6ea463b1ba50a03315236
treecba2ddc32b24c56b4d6f2460f2548ca1e8927faf
parent6c46bff05fb1889ff5581dcd7274db69fd4a4da3
KVM: VMX: Trap and invalid MWAIT/MONITOR instruction

commit 59708670b639bff00f92e519df1ae14da240e919 upstream.

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.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/vmx.h
arch/x86/kvm/vmx.c