OSDN Git Service

powerpc/pseries: Implement memory hotplug add in the kernel
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Tue, 10 Feb 2015 19:48:25 +0000 (13:48 -0600)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 17 Mar 2015 00:03:01 +0000 (11:03 +1100)
commit5f97b2a0d176a94815ee1d3a0511d91a5575bf4a
tree98167fb8ddc8dc35df834b5e7a28c738a130a34a
parent999e2dadb6058568b8bcffec44da2a07952d84fe
powerpc/pseries: Implement memory hotplug add in the kernel

This patch adds the ability to do memory hotplug add in the kernel.

Currently the operation to hotplug add memory is handled by the drmgr
command which performs the operation by performing some work in user-space
and making requests to the kernel to handle other pieces. By moving all
of the work to the kernel we can do the add faster, and provide a common
code path to do memory hotplug for both the PowerVM and PowerKVM environments.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/hotplug-memory.c