KVM: Optimize kvm_mmu_unprotect_page_virt() for tdp
authorAvi Kivity <avi@redhat.com>
Thu, 27 Aug 2009 10:37:06 +0000 (13:37 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:56 +0000 (10:46 +0300)
commit60f24784a92c25c269a5e741a8ce8ff63e887be8
treee14483c4f507bad1756b8ce82f2f73b0190b026f
parent5dadbfd64724c41716d4fc82df6f01b023d5b15d
KVM: Optimize kvm_mmu_unprotect_page_virt() for tdp

We know no pages are protected, so we can short-circuit the whole thing
(including fairly nasty guest memory accesses).

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