diff options
author | Avi Kivity <avi@qumranet.com> | 2007-05-30 09:34:53 (GMT) |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 09:05:43 (GMT) |
commit | d3d25b048b9c7e5c1c20918157a71df734f71766 (patch) | |
tree | 3e1f2cf029a1c23497067dfdfeffe69838fe6f0f /drivers/kvm/kvm.h | |
parent | 8d7282036f82244c5a1146a1a7edf03c50d278d9 (diff) | |
download | linux-fsl-qoriq-d3d25b048b9c7e5c1c20918157a71df734f71766.tar.xz |
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 90001b5..199e1e9 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; |