]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d9cd73d638247174911ef542b17e1029d9862a4
tree5014d2b50202740da63a97b369a459bfbda30b6a
parent4b8ef506d0186489ae39051a37b208257c30e192
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