]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fix vmload and friends misinterpreted as lidt
authorAvi Kivity <avi@redhat.com>
Tue, 23 Dec 2008 17:46:01 +0000 (19:46 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:51 +0000 (11:02 +0200)
commitfba8ece2fbd42c9ede996799f6031602e6727665
treee90379964dff6ff8d578b7f8401dfb3b05ff6111
parent666cb57f9e6686b1711a7f20510a7cb15c45553f
KVM: Fix vmload and friends misinterpreted as lidt

The AMD SVM instruction family all overload the 0f 01 /3 opcode, further
multiplexing on the three r/m bits.  But the code decided that anything that
isn't a vmmcall must be an lidt (which shares the 0f 01 /3 opcode, for the
case that mod = 3).

Fix by aborting emulation if this isn't a vmmcall.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86_emulate.c