فهرست منبع

KVM: x86 emulator: Fix handling of VMMCALL instruction

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>
Amit Shah 16 سال پیش
والد
کامیت
fbce554e94
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      arch/x86/kvm/x86_emulate.c

+ 1 - 1
arch/x86/kvm/x86_emulate.c

@@ -311,7 +311,7 @@ static u32 group_table[] = {
 
 
 static u32 group2_table[] = {
 static u32 group2_table[] = {
 	[Group7*8] =
 	[Group7*8] =
-	SrcNone | ModRM, 0, 0, 0,
+	SrcNone | ModRM, 0, 0, SrcNone | ModRM,
 	SrcNone | ModRM | DstMem | Mov, 0,
 	SrcNone | ModRM | DstMem | Mov, 0,
 	SrcMem16 | ModRM | Mov, 0,
 	SrcMem16 | ModRM | Mov, 0,
 };
 };