KVM: x86: emulator_cmpxchg_emulated should mark_page_dirty
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 26 Feb 2014 01:44:54 +0000 (22:44 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Feb 2014 09:11:08 +0000 (10:11 +0100)
commitd3714010c307d26df251c45be9cd12ab6d41f0c4
tree63393c8f90a2df6ddc7435b65410d54fc63b4bf1
parent390bd528ae1c14d0b7f5db8225984f98617b3357
KVM: x86: emulator_cmpxchg_emulated should mark_page_dirty

emulator_cmpxchg_emulated writes to guest memory, therefore it should
update the dirty bitmap accordingly.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c