Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
dfc5aa00
Commit
dfc5aa00
authored
Dec 18, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: MMU: Add cache miss statistic
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
caa5b8a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu.c
+1
-0
arch/x86/kvm/x86.c
arch/x86/kvm/x86.c
+1
-0
include/asm-x86/kvm_host.h
include/asm-x86/kvm_host.h
+1
-0
No files found.
arch/x86/kvm/mmu.c
View file @
dfc5aa00
...
...
@@ -715,6 +715,7 @@ static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu,
pgprintk
(
"%s: found
\n
"
,
__FUNCTION__
);
return
sp
;
}
++
vcpu
->
kvm
->
stat
.
mmu_cache_miss
;
sp
=
kvm_mmu_alloc_page
(
vcpu
,
parent_pte
);
if
(
!
sp
)
return
sp
;
...
...
arch/x86/kvm/x86.c
View file @
dfc5aa00
...
...
@@ -73,6 +73,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
{
"mmu_pde_zapped"
,
VM_STAT
(
mmu_pde_zapped
)
},
{
"mmu_flooded"
,
VM_STAT
(
mmu_flooded
)
},
{
"mmu_recycled"
,
VM_STAT
(
mmu_recycled
)
},
{
"mmu_cache_miss"
,
VM_STAT
(
mmu_cache_miss
)
},
{
"remote_tlb_flush"
,
VM_STAT
(
remote_tlb_flush
)
},
{
NULL
}
};
...
...
include/asm-x86/kvm_host.h
View file @
dfc5aa00
...
...
@@ -289,6 +289,7 @@ struct kvm_vm_stat {
u32
mmu_pde_zapped
;
u32
mmu_flooded
;
u32
mmu_recycled
;
u32
mmu_cache_miss
;
u32
remote_tlb_flush
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment