KVM: x86 emulator: Disable writeback for CMP emulation
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Tue, 12 Apr 2011 15:24:55 +0000 (00:24 +0900)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:08 +0000 (07:57 -0400)
commit575e7c1417d41dd72ddf2a49965f833ce9352e92
tree0f7d85332966e89520dd00fcee03e66b47fdb15e
parentbe6d05cfdf1f2ddbdc367a6433d8eac49d6bfe6f
KVM: x86 emulator: Disable writeback for CMP emulation

This stops "CMP r/m, reg" to write back the data into memory.
Pointed out by Avi.

The writeback suppression now covers CMP, CMPS, SCAS.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c