OSDN Git Service

powerpc/pseries: Implement memory hotplug remove in the kernel
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Tue, 10 Feb 2015 19:49:22 +0000 (13:49 -0600)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 17 Mar 2015 00:03:03 +0000 (11:03 +1100)
commit51925fb3c5c901aa06cdc853268a6e19e19bcdc7
treea8b7ba83584fc1bfbb51ff29652f34e7a656b0df
parent5f97b2a0d176a94815ee1d3a0511d91a5575bf4a
powerpc/pseries: Implement memory hotplug remove in the kernel

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

Currently the operation to hotplug remove 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 remove 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