summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-spin-softirq.h
diff options
context:
space:
mode:
authorNadav Amit <namit@cs.technion.ac.il>2015-01-26 09:32:21 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-01-26 12:14:18 +0100
commit2fcf5c8ae244b4c298d2111a288d410a719ac626 (patch)
tree43b8ec0a3384b01008d27e647ee1615fbb1a0aa2 /lib/locking-selftest-spin-softirq.h
parent8fff5e374a2f6047d1bb52288af7da119bc75765 (diff)
downloadtalos-op-linux-2fcf5c8ae244b4c298d2111a288d410a719ac626.tar.gz
talos-op-linux-2fcf5c8ae244b4c298d2111a288d410a719ac626.zip
KVM: x86: Dirty the dest op page on cmpxchg emulation
Intel SDM says for CMPXCHG: "To simplify the interface to the processor’s bus, the destination operand receives a write cycle without regard to the result of the comparison.". This means the destination page should be dirtied. Fix it to by writing back the original value if cmpxchg failed. Signed-off-by: Nadav Amit <namit@cs.technion.ac.il> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/locking-selftest-spin-softirq.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud