projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e3ae6c
)
KVM: x86 emulator: fix 0f 01 /5 emulation
author
Gleb Natapov
<gleb@redhat.com>
Thu, 18 Mar 2010 13:20:08 +0000
(15:20 +0200)
committer
Avi Kivity
<avi@redhat.com>
Mon, 17 May 2010 09:16:02 +0000
(12:16 +0300)
It is undefined and should generate #UD.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index c3b9334eb248fa584e28104fbc058d01bc93af47..7c7debb424df29d3804a973f4b85b25de29f7260 100644
(file)
--- 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. */