提交 c4d198d5 编写于 作者: A Avi Kivity 提交者: Linus Torvalds

KVM: MMU: Fix cleaning up the shadow page allocation cache

__free_page() wants a struct page, not a virtual address.
Signed-off-by: NAvi Kivity <avi@qumranet.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 5c4c1489
...@@ -244,7 +244,7 @@ static int mmu_topup_memory_cache_page(struct kvm_mmu_memory_cache *cache, ...@@ -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) static void mmu_free_memory_cache_page(struct kvm_mmu_memory_cache *mc)
{ {
while (mc->nobjs) 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) static int __mmu_topup_memory_caches(struct kvm_vcpu *vcpu, gfp_t gfp_flags)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册