From: Gleb Natapov Date: Sun, 21 Mar 2010 14:58:36 +0000 (+0200) Subject: KVM: x86 emulator: fix unlocked CMPXCHG8B emulation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=de3e6480f76804fe06d460ddb1920c7daa07f29b;p=linux-beck.git 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 Signed-off-by: Avi Kivity --- 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; }