aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-02-11 05:41:10 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:36:12 -0500
commite424e1918345ab17d3beb068b8745ab1706d0e1b (patch)
tree57c3e16a4827fb1e140abff011d7e01ae9bb1037 /arch
parent1d327eac3c9a8b170d68df44957d82bdbd263c53 (diff)
KVM: x86 emulator: disallow opcode 82 in 64-bit mode
Instructions with opcode 82 are not valid in 64 bit mode. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/emulate.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index dd1b93522379..c280c2352f7e 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -310,14 +310,14 @@ static u32 group_table[] = {
310 DstMem | SrcImm | ModRM | Lock, 310 DstMem | SrcImm | ModRM | Lock,
311 DstMem | SrcImm | ModRM, 311 DstMem | SrcImm | ModRM,
312 [Group1_82*8] = 312 [Group1_82*8] =
313 ByteOp | DstMem | SrcImm | ModRM | Lock, 313 ByteOp | DstMem | SrcImm | ModRM | No64 | Lock,
314 ByteOp | DstMem | SrcImm | ModRM | Lock, 314 ByteOp | DstMem | SrcImm | ModRM | No64 | Lock,
315 ByteOp | DstMem | SrcImm | ModRM | Lock, 315 ByteOp | DstMem | SrcImm | ModRM | No64 | Lock,
316 ByteOp | DstMem | SrcImm | ModRM | Lock, 316 ByteOp | DstMem | SrcImm | ModRM | No64 | Lock,
317 ByteOp | DstMem | SrcImm | ModRM | Lock, 317 ByteOp | DstMem | SrcImm | ModRM | No64 | Lock,
318 ByteOp | DstMem | SrcImm | ModRM | Lock, 318 ByteOp | DstMem | SrcImm | ModRM | No64 | Lock,
319 ByteOp | DstMem | SrcImm | ModRM | Lock, 319 ByteOp | DstMem | SrcImm | ModRM | No64 | Lock,
320 ByteOp | DstMem | SrcImm | ModRM, 320 ByteOp | DstMem | SrcImm | ModRM | No64,
321 [Group1_83*8] = 321 [Group1_83*8] =
322 DstMem | SrcImmByte | ModRM | Lock, 322 DstMem | SrcImmByte | ModRM | Lock,
323 DstMem | SrcImmByte | ModRM | Lock, 323 DstMem | SrcImmByte | ModRM | Lock,