From: Gleb Natapov Date: Sun, 21 Mar 2010 14:58:36 +0000 (+0200) Subject: KVM: x86 emulator: fix unlocked CMPXCHG8B emulation X-Git-Tag: v2.6.35-rc1~436^2~142 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=de3e6480f76804fe06d460ddb1920c7daa07f29b;p=~emulex%2Finfiniband.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 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; }