diff options
author | Avi Kivity | 2007-05-30 11:34:53 +0200 |
---|---|---|
committer | Avi Kivity | 2007-07-16 11:05:43 +0200 |
commit | d3d25b048b9c7e5c1c20918157a71df734f71766 (patch) | |
tree | 3e1f2cf029a1c23497067dfdfeffe69838fe6f0f /drivers/kvm/kvm.h | |
parent | KVM: Use symbolic constants instead of magic numbers (diff) | |
download | kernel-qcow2-linux-d3d25b048b9c7e5c1c20918157a71df734f71766.tar.gz kernel-qcow2-linux-d3d25b048b9c7e5c1c20918157a71df734f71766.tar.xz kernel-qcow2-linux-d3d25b048b9c7e5c1c20918157a71df734f71766.zip |
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.h | 4 |
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 { struct vmx_msr_entry *guest_msrs; struct vmx_msr_entry *host_msrs; - struct list_head free_pages; - struct kvm_mmu_page page_header_buf[KVM_NUM_MMU_PAGES]; struct kvm_mmu mmu; struct kvm_mmu_memory_cache mmu_pte_chain_cache; struct kvm_mmu_memory_cache mmu_rmap_desc_cache; + struct kvm_mmu_memory_cache mmu_page_cache; + struct kvm_mmu_memory_cache mmu_page_header_cache; gfn_t last_pt_write_gfn; int last_pt_write_count; |