Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0711456c0d78335d24e4f92aa40d32c78fd44aa8
Commit:     0711456c0d78335d24e4f92aa40d32c78fd44aa8
Parent:     bfc6d222bdb1123d12c1193bcd7c755e6617b405
Author:     Zhang Xiantao <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 14 10:23:23 2007 +0800
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 17:58:10 2008 +0200

    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 <[EMAIL PROTECTED]>
    Acked-by: Carsten Otte <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
---
 drivers/kvm/kvm.h |   10 ----------
 drivers/kvm/x86.h |   10 ++++++++++
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index ab9657a..bf6a3b3 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -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 */
diff --git a/drivers/kvm/x86.h b/drivers/kvm/x86.h
index 9455839..dfb8091 100644
--- a/drivers/kvm/x86.h
+++ b/drivers/kvm/x86.h
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to