]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: MMU: Fix cleaning up the shadow page allocation cache
authorAvi Kivity <avi@qumranet.com>
Sat, 21 Jul 2007 06:00:21 +0000 (09:00 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 21 Jul 2007 06:00:21 +0000 (09:00 +0300)
__free_page() wants a struct page, not a virtual address.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c

index 7cd3a5822098e5ae75d5e64fa67bd8390d07f13d..a7985b194b5fc8d6b662e285e34e7e6356b974ef 100644 (file)
@@ -244,7 +244,7 @@ static int mmu_topup_memory_cache_page(struct kvm_mmu_memory_cache *cache,
 static void mmu_free_memory_cache_page(struct kvm_mmu_memory_cache *mc)
 {
        while (mc->nobjs)
-               __free_page(mc->objects[--mc->nobjs]);
+               free_page((unsigned long)mc->objects[--mc->nobjs]);
 }
 
 static int __mmu_topup_memory_caches(struct kvm_vcpu *vcpu, gfp_t gfp_flags)