KVM: MMU: mark page table dirty when a pte is actually modified
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Wed, 5 May 2010 01:09:21 +0000 (09:09 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:38 +0000 (10:35 +0300)
commitf3b8c964a9a6cfef6d3ca778648d53947b9fd257
treee8a6b81ab63b34535ec8c384c61acc5778144fd7
parenteec4b140c924b4c650e9a89e01d223266490e325
KVM: MMU: mark page table dirty when a pte is actually modified

Sometime cmpxchg_gpte doesn't modify gpte, in such case, don't mark
page table page as dirty.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h