KVM: pass correct parameter to kvm_mmu_free_some_pages
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 13 May 2010 00:00:35 +0000 (21:00 -0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:43 +0000 (10:35 +0300)
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c

index d7aebafffdfe0cbf5bcb27801db4421e4132cd14..a455c5eee370ac2678c41a6f8d968bd0f6ce3f16 100644 (file)
@@ -2094,7 +2094,7 @@ static int mmu_alloc_roots(struct kvm_vcpu *vcpu)
                        root_gfn = 0;
                }
                spin_lock(&vcpu->kvm->mmu_lock);
-               kvm_mmu_free_some_pages(vcpu->kvm);
+               kvm_mmu_free_some_pages(vcpu);
                sp = kvm_mmu_get_page(vcpu, root_gfn, 0,
                                      PT64_ROOT_LEVEL, direct,
                                      ACC_ALL, NULL);
@@ -2125,7 +2125,7 @@ static int mmu_alloc_roots(struct kvm_vcpu *vcpu)
                        root_gfn = i << 30;
                }
                spin_lock(&vcpu->kvm->mmu_lock);
-               kvm_mmu_free_some_pages(vcpu->kvm);
+               kvm_mmu_free_some_pages(vcpu);
                sp = kvm_mmu_get_page(vcpu, root_gfn, i << 30,
                                      PT32_ROOT_LEVEL, direct,
                                      ACC_ALL, NULL);