KVM: MMU: do not free active mmu pages in free_mmu_pages()
authorGleb Natapov <gleb@redhat.com>
Thu, 19 Mar 2009 10:20:36 +0000 (12:20 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:30 +0000 (11:48 +0300)
commitf00be0cae4e6ad0a8c7be381c6d9be3586800b3e
tree7109d3198eb73d64e8ac931764a065ca1393f405
parente56d532f20c890a06bbe7cd479f4201e3a03cd73
KVM: MMU: do not free active mmu pages in free_mmu_pages()

free_mmu_pages() should only undo what alloc_mmu_pages() does.
Free mmu pages from the generic VM destruction function, kvm_destroy_vm().

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
virt/kvm/kvm_main.c