diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-03-18 15:20:08 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 12:16:02 +0300 |
commit | 6e1e5ffee8d95f9bce71eaa029cb5247b0f2f673 (patch) | |
tree | e5212672fbf9647e7a6258efc980f51309aa1364 | |
parent | 5e3ae6c5407ffb23bc4d9871e09d1b222e1b31a4 (diff) | |
download | blackbird-op-linux-6e1e5ffee8d95f9bce71eaa029cb5247b0f2f673.tar.gz blackbird-op-linux-6e1e5ffee8d95f9bce71eaa029cb5247b0f2f673.zip |
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.c | 3 |
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: (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. */ |