]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 6 Mar 2017 21:20:15 +0000 (14:20 -0700)
commitcb212819cb8f8d2c414f0a92cfb0c183c465f77d
tree79b0b1fb815905afdc78a33d93c2247450a69654
parent29b47614de48098301762a40c350c37a1af0535d
powerpc/pseries: Implement indexed-count hotplug memory remove

BugLink: http://bugs.launchpad.net/bugs/1670315
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>
(cherry picked from commit 753843471cbbaeca25a5cab51981ee721ad272f7)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/platforms/pseries/hotplug-memory.c