summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-03-21 16:58:36 +0200
committerAvi Kivity <avi@redhat.com>2010-05-17 12:16:38 +0300
commitde3e6480f76804fe06d460ddb1920c7daa07f29b (patch)
treeb4c104cd6340daabee6147c65bc04e62166de37b /arch/x86
parent6550e1f165f384f3a46b60a1be9aba4bc3c2adad (diff)
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>
Diffstat (limited to 'arch/x86')
-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 b8ce53861f6..64c9854f045 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;
}