From: Wei Yongjun Date: Thu, 15 Jul 2010 00:51:58 +0000 (+0800) Subject: KVM: x86 emulator: fix xchg instruction emulation X-Git-Tag: v2.6.36-rc1~580^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c19b8bd60e19308d5583ef200ddcc782d85d9543;p=pandora-kernel.git KVM: x86 emulator: fix xchg instruction emulation If the destination is a memory operand and the memory cannot map to a valid page, the xchg instruction emulation and locked instruction will not work on io regions and stuck in endless loop. We should emulate exchange as write to fix it. Signed-off-by: Wei Yongjun Acked-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed