summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-08-27 13:30:56 (GMT)
committerAvi Kivity <avi@qumranet.com>2008-10-15 08:15:23 (GMT)
commitbc2d429979451d69d0985c5dbdf908cace2831cc (patch)
tree90a46699e097cc57a3586ae0baf430597b810bbe /arch
parenta5e2e82b8b62acd24a44b851e6bb4fd0793ead01 (diff)
downloadlinux-fsl-qoriq-bc2d429979451d69d0985c5dbdf908cace2831cc.tar.xz
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 <avi@qumranet.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/mmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index a1ca4ff..a24da8f 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;
}