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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bc2d429979451d69d0985c5dbdf908cace2831cc;p=linux-beck.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 a1ca4ff9c116..a24da8f2ee91 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; }