]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: memory hotplug with an existing resource
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 25 Jun 2015 15:35:49 +0000 (16:35 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:00:56 +0000 (02:00 +0100)
commit0360f9a16bc7820462a48ded5e9713b102b49ce9
treee0756f00a0f4e7aebaf4b234d806b0d93529e45a
parentfcc48d92c546dd9fd3bdd6d91e5ff83a32c57e7a
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>
Conflicts:
include/linux/memory_hotplug.h
mm/memory_hotplug.c

(cherry picked from commit 62cedb9f135794ec26a93ae29e5f0231ab263c84)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
include/linux/memory_hotplug.h
mm/memory_hotplug.c