projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b13354f
)
KVM: x86 emulator: handle undecoded rex.b with r/m = 5 in certain cases
author
Avi Kivity
<avi@qumranet.com>
Mon, 16 Jun 2008 04:13:41 +0000
(21:13 -0700)
committer
Avi Kivity
<avi@qumranet.com>
Sun, 20 Jul 2008 09:42:33 +0000
(12:42 +0300)
x86_64 does not decode rex.b in certain cases, where the r/m field = 5.
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86_emulate.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/x86_emulate.c
b/arch/x86/kvm/x86_emulate.c
index
2808291
..
3721cfd
100644
(file)
--- a/
arch/x86/kvm/x86_emulate.c
+++ b/
arch/x86/kvm/x86_emulate.c
@@
-750,6
+750,7
@@
static int decode_modrm(struct x86_emulate_ctxt *ctxt,
switch (base_reg) {
case 5:
+ case 13:
if (c->modrm_mod != 0)
c->modrm_ea += c->regs[base_reg];
else
@@
-767,6
+768,7
@@
static int decode_modrm(struct x86_emulate_ctxt *ctxt,
}
break;
case 5:
+ case 13:
if (c->modrm_mod != 0)
c->modrm_ea += c->regs[c->modrm_rm];
else if (ctxt->mode == X86EMUL_MODE_PROT64)