powerpc/kvm: Use 256K chunk to track both RMA and hash page table allocation.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 2 Jul 2013 05:45:18 +0000 (11:15 +0530)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Jul 2013 14:21:13 +0000 (16:21 +0200)
commit990978e99359e1f3a843563b9f96f9dc7bb7c05a
tree6f71c3c44f428b3a325097f28008dd8576dc50f0
parent6c45b810989d1c04194499d666f695d3f811965f
powerpc/kvm: Use 256K chunk to track both RMA and hash page table allocation.

Both RMA and hash page table request will be a multiple of 256K. We can use
a chunk size of 256K to track the free/used 256K chunk in the bitmap. This
should help to reduce the bitmap size.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_cma.c
arch/powerpc/kvm/book3s_hv_cma.h