Skip to content

Commit

Permalink
KVM: Portability: Move kvm_vm_stat to x86.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhang Xiantao authored and Avi Kivity committed Jan 30, 2008
1 parent bfc6d22 commit 0711456
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/kvm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,6 @@ struct kvm_memory_slot {
int user_alloc;
};

struct kvm_vm_stat {
u32 mmu_shadow_zapped;
u32 mmu_pte_write;
u32 mmu_pte_updated;
u32 mmu_pde_zapped;
u32 mmu_flooded;
u32 mmu_recycled;
u32 remote_tlb_flush;
};

struct kvm {
struct mutex lock; /* protects everything except vcpus */
struct mm_struct *mm; /* userspace tied to this vm */
Expand Down
10 changes: 10 additions & 0 deletions drivers/kvm/x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,16 @@ struct kvm_arch{
struct page *apic_access_page;
};

struct kvm_vm_stat {
u32 mmu_shadow_zapped;
u32 mmu_pte_write;
u32 mmu_pte_updated;
u32 mmu_pde_zapped;
u32 mmu_flooded;
u32 mmu_recycled;
u32 remote_tlb_flush;
};

struct kvm_vcpu_stat {
u32 pf_fixed;
u32 pf_guest;
Expand Down

0 comments on commit 0711456

Please sign in to comment.