summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-03-21 14:58:36 (GMT)
committerAvi Kivity <avi@redhat.com>2010-05-17 09:16:38 (GMT)
commitde3e6480f76804fe06d460ddb1920c7daa07f29b (patch)
treeb4c104cd6340daabee6147c65bc04e62166de37b /arch
parent6550e1f165f384f3a46b60a1be9aba4bc3c2adad (diff)
downloadlinux-fsl-qoriq-de3e6480f76804fe06d460ddb1920c7daa07f29b.tar.xz
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')
-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 b8ce538..64c9854 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;
}