summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-03-21 15:58:36 +0100
committerAvi Kivity <avi@redhat.com>2010-05-17 11:16:38 +0200
commitde3e6480f76804fe06d460ddb1920c7daa07f29b (patch)
treeb4c104cd6340daabee6147c65bc04e62166de37b
parentKVM: x86 emulator: add decoding of CMPXCHG8B dst operand (diff)
downloadlinux-de3e6480f76804fe06d460ddb1920c7daa07f29b.tar.xz
linux-de3e6480f76804fe06d460ddb1920c7daa07f29b.zip
KVM: x86 emulator: fix unlocked CMPXCHG8B emulation
When CMPXCHG8B is executed without LOCK prefix it is racy. Preserve this behaviour in emulator too. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--arch/x86/kvm/emulate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index b8ce53861f68..64c9854f0458 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -1724,7 +1724,6 @@ static inline int emulate_grp9(struct x86_emulate_ctxt *ctxt,
(u32) c->regs[VCPU_REGS_RBX];
ctxt->eflags |= EFLG_ZF;
- c->lock_prefix = 1;
}
return X86EMUL_CONTINUE;
}