aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-03-18 09:20:08 -0400
committerAvi Kivity <avi@redhat.com>2010-05-17 05:16:02 -0400
commit6e1e5ffee8d95f9bce71eaa029cb5247b0f2f673 (patch)
treee5212672fbf9647e7a6258efc980f51309aa1364
parent5e3ae6c5407ffb23bc4d9871e09d1b222e1b31a4 (diff)
KVM: x86 emulator: fix 0f 01 /5 emulation
It is undefined and should generate #UD. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r--arch/x86/kvm/emulate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index c3b9334eb248..7c7debb424df 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -2490,6 +2490,9 @@ twobyte_insn:
2490 (c->src.val & 0x0f), ctxt->vcpu); 2490 (c->src.val & 0x0f), ctxt->vcpu);
2491 c->dst.type = OP_NONE; 2491 c->dst.type = OP_NONE;
2492 break; 2492 break;
2493 case 5: /* not defined */
2494 kvm_queue_exception(ctxt->vcpu, UD_VECTOR);
2495 goto done;
2493 case 7: /* invlpg*/ 2496 case 7: /* invlpg*/
2494 emulate_invlpg(ctxt->vcpu, memop); 2497 emulate_invlpg(ctxt->vcpu, memop);
2495 /* Disable writeback. */ 2498 /* Disable writeback. */