]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: ppc: stop leaking host memory on VM exit
authorHollis Blanchard <hollisb@us.ibm.com>
Mon, 24 Nov 2008 17:37:38 +0000 (11:37 -0600)
committerAvi Kivity <avi@redhat.com>
Tue, 25 Nov 2008 10:02:48 +0000 (12:02 +0200)
commit2994cd019234b2c9229d2461b4be79a9fe673377
treecc593db75efd62f917e949df78f4fabdcddc6938
parent443e042ae3ff66b2409b2763b99f7104abd4cf97
KVM: ppc: stop leaking host memory on VM exit

When the VM exits, we must call put_page() for every page referenced in the
shadow TLB.

Without this patch, we usually leak 30-50 host pages (120 - 200 KiB with 4 KiB
pages). The maximum number of pages leaked is the size of our shadow TLB, 64
pages.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/44x_tlb.c
arch/powerpc/kvm/powerpc.c