Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de3e6480 authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity
Browse files

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: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 6550e1f1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
}