aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/x86.h
diff options
context:
space:
mode:
authorZhang Xiantao <xiantao.zhang@intel.com>2007-12-13 21:23:23 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:58:10 -0500
commit0711456c0d78335d24e4f92aa40d32c78fd44aa8 (patch)
tree8a83659283c043da69c6987ec89bff5077350778 /drivers/kvm/x86.h
parentbfc6d222bdb1123d12c1193bcd7c755e6617b405 (diff)
KVM: Portability: Move kvm_vm_stat to x86.h
This patch moves kvm_vm_stat to x86.h, and every arch can define its own kvm_vm_stat in $arch.h Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com> Acked-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/x86.h')
-rw-r--r--drivers/kvm/x86.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/kvm/x86.h b/drivers/kvm/x86.h
index 945583934853..dfb8091971a9 100644
--- a/drivers/kvm/x86.h
+++ b/drivers/kvm/x86.h
@@ -283,6 +283,16 @@ struct kvm_arch{
283 struct page *apic_access_page; 283 struct page *apic_access_page;
284}; 284};
285 285
286struct kvm_vm_stat {
287 u32 mmu_shadow_zapped;
288 u32 mmu_pte_write;
289 u32 mmu_pte_updated;
290 u32 mmu_pde_zapped;
291 u32 mmu_flooded;
292 u32 mmu_recycled;
293 u32 remote_tlb_flush;
294};
295
286struct kvm_vcpu_stat { 296struct kvm_vcpu_stat {
287 u32 pf_fixed; 297 u32 pf_fixed;
288 u32 pf_guest; 298 u32 pf_guest;