From: Avi Kivity Date: Wed, 27 Aug 2008 13:30:56 +0000 (+0300) Subject: KVM: MMU: Account for npt/ept/realmode page faults X-Git-Tag: v2.6.28-rc1~269^2~62 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bc2d429979451d69d0985c5dbdf908cace2831cc;p=linux-2.6-omap-h63xx.git KVM: MMU: Account for npt/ept/realmode page faults Now that two-dimensional paging is becoming common, account for tdp page faults. Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index a1ca4ff9c11..a24da8f2ee9 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -1283,6 +1283,7 @@ static int direct_map_entry(struct kvm_shadow_walk *_walk, mmu_set_spte(vcpu, sptep, ACC_ALL, ACC_ALL, 0, walk->write, 1, &walk->pt_write, walk->largepage, gfn, walk->pfn, false); + ++vcpu->stat.pf_fixed; return 1; }