KVM: x86: cmpxchg emulation should compare in reverse order
authorNadav Amit <namit@cs.technion.ac.il>
Mon, 2 Jun 2014 15:34:07 +0000 (18:34 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Jun 2014 15:46:17 +0000 (17:46 +0200)
commit37c564f2854bf75969d0ac26e03f5cf2bb7d639f
tree1058d95e55d2917e9d89ade00c29ca2c1a4d2a98
parent606b1c3e87597c2d6c9f3eb833a7251262390295
KVM: x86: cmpxchg emulation should compare in reverse order

The current implementation of cmpxchg does not update the flags correctly,
since the accumulator should be compared with the destination and not the other
way around. The current implementation does not update the flags correctly.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c
This page took 0.025581 seconds and 5 git commands to generate.