From: Nadav Amit Date: Mon, 26 Jan 2015 07:32:21 +0000 (+0200) Subject: KVM: x86: Dirty the dest op page on cmpxchg emulation X-Git-Tag: fixes-v4.0-rc1~113^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fcf5c8ae244b4c298d2111a288d410a719ac626;p=pandora-kernel.git 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 Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed