aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/emulate.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-03-21 10:58:36 -0400
committerAvi Kivity <avi@redhat.com>2010-05-17 05:16:38 -0400
commitde3e6480f76804fe06d460ddb1920c7daa07f29b (patch)
treeb4c104cd6340daabee6147c65bc04e62166de37b /arch/x86/kvm/emulate.c
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/kvm/emulate.c')
-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,
1724 (u32) c->regs[VCPU_REGS_RBX]; 1724 (u32) c->regs[VCPU_REGS_RBX];
1725 1725
1726 ctxt->eflags |= EFLG_ZF; 1726 ctxt->eflags |= EFLG_ZF;
1727 c->lock_prefix = 1;
1728 } 1727 }
1729 return X86EMUL_CONTINUE; 1728 return X86EMUL_CONTINUE;
1730} 1729}