diff options
author | Avi Kivity <avi@qumranet.com> | 2008-08-27 09:30:56 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:23 -0400 |
commit | bc2d429979451d69d0985c5dbdf908cace2831cc (patch) | |
tree | 90a46699e097cc57a3586ae0baf430597b810bbe /arch/x86/kvm | |
parent | a5e2e82b8b62acd24a44b851e6bb4fd0793ead01 (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.c | 1 |
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 | ||