aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-08-27 09:30:56 -0400
committerAvi Kivity <avi@qumranet.com>2008-10-15 04:15:23 -0400
commitbc2d429979451d69d0985c5dbdf908cace2831cc (patch)
tree90a46699e097cc57a3586ae0baf430597b810bbe /arch/x86/kvm
parenta5e2e82b8b62acd24a44b851e6bb4fd0793ead01 (diff)
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/x86/kvm')
-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 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,
1283 mmu_set_spte(vcpu, sptep, ACC_ALL, ACC_ALL, 1283 mmu_set_spte(vcpu, sptep, ACC_ALL, ACC_ALL,
1284 0, walk->write, 1, &walk->pt_write, 1284 0, walk->write, 1, &walk->pt_write,
1285 walk->largepage, gfn, walk->pfn, false); 1285 walk->largepage, gfn, walk->pfn, false);
1286 ++vcpu->stat.pf_fixed;
1286 return 1; 1287 return 1;
1287 } 1288 }
1288 1289