KVM: PPC: Book3S HV: Use the bitmap API to allocate bitmaps
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 9 Jul 2022 15:56:43 +0000 (17:56 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 24 Nov 2022 10:57:50 +0000 (21:57 +1100)
commita96b20758b23be7e9f693218908228d6100c3c26
treea1e55e0311b4f32a39b5fd7f40e00b4dfe8b4b34
parent6fa1efeaa6671fb7339a6c62ceeec19e8e787963
KVM: PPC: Book3S HV: Use the bitmap API to allocate bitmaps

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/52e843a460bc374973149b8da0bd04f9761b80b7.1657382184.git.christophe.jaillet@wanadoo.fr
arch/powerpc/kvm/book3s_hv_uvmem.c