From: Gleb Natapov Date: Thu, 18 Mar 2010 13:20:08 +0000 (+0200) Subject: KVM: x86 emulator: fix 0f 01 /5 emulation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6e1e5ffee8d95f9bce71eaa029cb5247b0f2f673;p=linux-beck.git KVM: x86 emulator: fix 0f 01 /5 emulation It is undefined and should generate #UD. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- 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: (c->src.val & 0x0f), ctxt->vcpu); c->dst.type = OP_NONE; break; + case 5: /* not defined */ + kvm_queue_exception(ctxt->vcpu, UD_VECTOR); + goto done; case 7: /* invlpg*/ emulate_invlpg(ctxt->vcpu, memop); /* Disable writeback. */