Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
0f74a24c
Commit
0f74a24c
authored
Nov 20, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Add statistic for remote tlb flushes
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
e5a4c8ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
drivers/kvm/kvm.h
drivers/kvm/kvm.h
+1
-0
drivers/kvm/kvm_main.c
drivers/kvm/kvm_main.c
+3
-0
drivers/kvm/x86.c
drivers/kvm/x86.c
+1
-0
No files found.
drivers/kvm/kvm.h
View file @
0f74a24c
...
@@ -300,6 +300,7 @@ struct kvm_vm_stat {
...
@@ -300,6 +300,7 @@ struct kvm_vm_stat {
u32
mmu_pde_zapped
;
u32
mmu_pde_zapped
;
u32
mmu_flooded
;
u32
mmu_flooded
;
u32
mmu_recycled
;
u32
mmu_recycled
;
u32
remote_tlb_flush
;
};
};
struct
kvm
{
struct
kvm
{
...
...
drivers/kvm/kvm_main.c
View file @
0f74a24c
...
@@ -115,6 +115,9 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
...
@@ -115,6 +115,9 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
if
(
cpu
!=
-
1
&&
cpu
!=
raw_smp_processor_id
())
if
(
cpu
!=
-
1
&&
cpu
!=
raw_smp_processor_id
())
cpu_set
(
cpu
,
cpus
);
cpu_set
(
cpu
,
cpus
);
}
}
if
(
cpus_empty
(
cpus
))
return
;
++
kvm
->
stat
.
remote_tlb_flush
;
smp_call_function_mask
(
cpus
,
ack_flush
,
NULL
,
1
);
smp_call_function_mask
(
cpus
,
ack_flush
,
NULL
,
1
);
}
}
...
...
drivers/kvm/x86.c
View file @
0f74a24c
...
@@ -73,6 +73,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
...
@@ -73,6 +73,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
{
"mmu_pde_zapped"
,
VM_STAT
(
mmu_pde_zapped
)
},
{
"mmu_pde_zapped"
,
VM_STAT
(
mmu_pde_zapped
)
},
{
"mmu_flooded"
,
VM_STAT
(
mmu_flooded
)
},
{
"mmu_flooded"
,
VM_STAT
(
mmu_flooded
)
},
{
"mmu_recycled"
,
VM_STAT
(
mmu_recycled
)
},
{
"mmu_recycled"
,
VM_STAT
(
mmu_recycled
)
},
{
"remote_tlb_flush"
,
VM_STAT
(
remote_tlb_flush
)
},
{
NULL
}
{
NULL
}
};
};
...
...
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