aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
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_main.c
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_main.c')
-rw-r--r--drivers/kvm/kvm_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index af07cd539bba..bf35457ce377 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -326,7 +326,6 @@ static struct kvm *kvm_create_vm(void)
326 vcpu->cpu = -1; 326 vcpu->cpu = -1;
327 vcpu->kvm = kvm; 327 vcpu->kvm = kvm;
328 vcpu->mmu.root_hpa = INVALID_PAGE; 328 vcpu->mmu.root_hpa = INVALID_PAGE;
329 INIT_LIST_HEAD(&vcpu->free_pages);
330 spin_lock(&kvm_lock); 329 spin_lock(&kvm_lock);
331 list_add(&kvm->vm_list, &vm_list); 330 list_add(&kvm->vm_list, &vm_list);
332 spin_unlock(&kvm_lock); 331 spin_unlock(&kvm_lock);