diff options
author | Avi Kivity <avi@qumranet.com> | 2007-07-21 08:06:46 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-21 08:48:47 +0200 |
commit | c4d198d5183ec7bbf8b53216cfc5ded7ebb0ec0c (patch) | |
tree | 7b86e7959f607f1f5015a498515392d8fa480f83 /drivers/kvm/mmu.c | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/drz... (diff) | |
download | linux-c4d198d5183ec7bbf8b53216cfc5ded7ebb0ec0c.tar.xz linux-c4d198d5183ec7bbf8b53216cfc5ded7ebb0ec0c.zip |
KVM: MMU: Fix cleaning up the shadow page allocation cache
__free_page() wants a struct page, not a virtual address.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/kvm/mmu.c')
-rw-r--r-- | drivers/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index d99d2fe53dca..1a87ba9d5156 100644 --- a/drivers/kvm/mmu.c +++ b/drivers/kvm/mmu.c @@ -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) |