mm: memory hotplug with an existing resource
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 25 Jun 2015 15:35:49 +0000 (16:35 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:19:58 +0000 (14:19 +0100)
commit62cedb9f135794ec26a93ae29e5f0231ab263c84
tree391e9f85e552feee52c6527daf7c95548572b6d0
parent7379047d5585187d1288486d4627873170d0005a
mm: memory hotplug with an existing resource

Add add_memory_resource() to add memory using an existing "System RAM"
resource.  This is useful if the memory region is being located by
finding a free resource slot with allocate_resource().

Xen guests will make use of this in their balloon driver to hotplug
arbitrary amounts of memory in response to toolstack requests.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Tang Chen <tangchen@cn.fujitsu.com>
include/linux/memory_hotplug.h
mm/memory_hotplug.c