projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5e2e82
)
KVM: MMU: Account for npt/ept/realmode page faults
author
Avi Kivity
<avi@qumranet.com>
Wed, 27 Aug 2008 13:30:56 +0000
(16:30 +0300)
committer
Avi Kivity
<avi@qumranet.com>
Wed, 15 Oct 2008 08:15:23 +0000
(10:15 +0200)
Now that two-dimensional paging is becoming common, account for tdp page
faults.
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index a1ca4ff9c11630263618cc395bf41570d3dc777f..a24da8f2ee9136d603848b04bc24682199989ec4 100644
(file)
--- 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;
}