KVM: MMU: mark page dirty only when page is really written
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 2 Aug 2010 08:15:08 +0000 (16:15 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:32 +0000 (10:50 +0200)
commit4132779b1718f066ec2d06a71c8958039865cd49
tree4be0a4d2cf26277a75db5a7aa74c7983a99fc344
parent8672b7217a234c41d425a63b171af809e1169842
KVM: MMU: mark page dirty only when page is really written

Mark page dirty only when this page is really written, it's more exacter,
and also can fix dirty page marking in speculation path

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c