From: Zhang Xiantao <[EMAIL PROTECTED]> Date: Tue, 11 Dec 2007 20:58:41 +0800 Subject: [PATCH] kvm: moving kvm_vm_stat to x86 arch.
Moving kvm_vm_stat to x86.h, since it is x86-specific.
Signed-off-by: Zhang Xiantao <[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 fd8f6d8..198f5e1 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -165,16 +165,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;
-};
-
#define KVM_COMM
\
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 7480799..55eb430 100644
--- a/drivers/kvm/x86.h
+++ b/drivers/kvm/x86.h
@@ -235,6 +235,16 @@ struct kvm_vcpu {
struct x86_emulate_ctxt emulate_ctxt;
};
+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 {
KVM_COMM;
int naliases;
--
1.5.1.2
0005-kvm-moving-kvm_vm_stat-to-x86-arch.patch
Description: 0005-kvm-moving-kvm_vm_stat-to-x86-arch.patch
------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ kvm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-devel
