powerpc/pseries: Implement indexed-count hotplug memory remove
authorSahil Mehta <sahilmehta17@gmail.com>
Wed, 15 Feb 2017 18:46:18 +0000 (13:46 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Feb 2017 06:57:46 +0000 (17:57 +1100)
commit753843471cbbaeca25a5cab51981ee721ad272f7
tree5014d2b50202740da63a97b369a459bfbda30b6a
parent333f7b76865bec24c66710cf352f892d69e3ba0a
powerpc/pseries: Implement indexed-count hotplug memory remove

Indexed-count remove for memory hotplug guarantees that a contiguous block
of <count> lmbs beginning at a specified <index> will be unassigned (NOT
that <count> lmbs will be removed). Because of Qemu's per-DIMM memory
management, the removal of a contiguous block of memory currently
requires a series of individual calls. Indexed-count remove reduces
this series into a single call.

Signed-off-by: Sahil Mehta <sahilmehta17@gmail.com>
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/hotplug-memory.c