]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: optimize pte write path if don't have protected sp
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Sun, 15 May 2011 15:20:27 +0000 (23:20 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:45:02 +0000 (11:45 +0300)
commitb68a6f2d6a4631bbcc736e15cd478cb87ec78ab1
tree5a9917fc3b03b6f1c9d9e1436c89c3bc5f45b636
parent5ad9602bc79f6532055c320f8629b6f4f04d715a
KVM: MMU: optimize pte write path if don't have protected sp

Simply return from kvm_mmu_pte_write path if no shadow page is
write-protected, then we can avoid to walk all shadow pages and hold
mmu-lock

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c