aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-05-30 05:34:53 -0400
committerAvi Kivity <avi@qumranet.com>2007-07-16 05:05:43 -0400
commitd3d25b048b9c7e5c1c20918157a71df734f71766 (patch)
tree3e1f2cf029a1c23497067dfdfeffe69838fe6f0f /drivers/kvm/kvm.h
parent8d7282036f82244c5a1146a1a7edf03c50d278d9 (diff)
KVM: MMU: Use slab caches for shadow pages and their headers
Use slab caches instead of a simple custom list. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 90001b5a0253..199e1e9bae25 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -299,12 +299,12 @@ struct kvm_vcpu {
299 struct vmx_msr_entry *guest_msrs; 299 struct vmx_msr_entry *guest_msrs;
300 struct vmx_msr_entry *host_msrs; 300 struct vmx_msr_entry *host_msrs;
301 301
302 struct list_head free_pages;
303 struct kvm_mmu_page page_header_buf[KVM_NUM_MMU_PAGES];
304 struct kvm_mmu mmu; 302 struct kvm_mmu mmu;
305 303
306 struct kvm_mmu_memory_cache mmu_pte_chain_cache; 304 struct kvm_mmu_memory_cache mmu_pte_chain_cache;
307 struct kvm_mmu_memory_cache mmu_rmap_desc_cache; 305 struct kvm_mmu_memory_cache mmu_rmap_desc_cache;
306 struct kvm_mmu_memory_cache mmu_page_cache;
307 struct kvm_mmu_memory_cache mmu_page_header_cache;
308 308
309 gfn_t last_pt_write_gfn; 309 gfn_t last_pt_write_gfn;
310 int last_pt_write_count; 310 int last_pt_write_count;