KVM: MMU: optimize to handle dirty bit
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 11 Jul 2011 19:24:39 +0000 (03:24 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Jul 2011 08:50:27 +0000 (11:50 +0300)
commit640d9b0dbe9f744ac8fd517a8f6afe238f8f525b
treeff4543527ee35018f26d686e5c46a4c100dda0ef
parentbebb106a5afa32efdf5332ed4a40bf4d6d06b56e
KVM: MMU: optimize to handle dirty bit

If dirty bit is not set, we can make the pte access read-only to avoid handing
dirty bit everywhere

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