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>
This commit is contained in:
Gleb Natapov 2010-03-21 16:58:36 +02:00 committed by Avi Kivity
parent 6550e1f165
commit de3e6480f7

View file

@ -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;
}