KVM: x86 emulator: Fix handling of VMMCALL instruction
authorAmit Shah <amit.shah@redhat.com>
Thu, 4 Dec 2008 11:11:40 +0000 (11:11 +0000)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:43 +0000 (16:55 +0200)
The VMMCALL instruction doesn't get recognised and isn't processed
by the emulator.

This is seen on an Intel host that tries to execute the VMMCALL
instruction after a guest live migrates from an AMD host.

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

index 219dc31..d174db7 100644 (file)
@@ -311,7 +311,7 @@ static u32 group_table[] = {
 
 static u32 group2_table[] = {
        [Group7*8] =
-       SrcNone | ModRM, 0, 0, 0,
+       SrcNone | ModRM, 0, 0, SrcNone | ModRM,
        SrcNone | ModRM | DstMem | Mov, 0,
        SrcMem16 | ModRM | Mov, 0,
 };