commit | c19b8bd60e19308d5583ef200ddcc782d85d9543 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yjwei@cn.fujitsu.com> | Thu Jul 15 08:51:58 2010 +0800 |
committer | Avi Kivity <avi@redhat.com> | Mon Aug 02 06:40:53 2010 +0300 |
tree | ac58a35ca5f79a4bf5f36445ecc8e7d2c10178b4 | |
parent | 9195c4da26bbf8860e2e7b648dbf4ab465c7933a [diff] |
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 <yjwei@cn.fujitsu.com> Acked-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>