Skip to content

Commit

Permalink
KVM: x86 emulator: fix unlocked CMPXCHG8B emulation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed May 17, 2010
1 parent 6550e1f commit de3e648
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit de3e648

Please sign in to comment.