From: Tianyu Lan <Tianyu.Lan@xxxxxxxxxxxxx> Hyper-V provides dynamic memory hot add/remove function. Memory hot-add has already enabled in Hyper-V balloon driver. Now add memory hot-remove function. Tianyu Lan (4): mm/resource: Move child to new resource when release mem region. mm/hotplug: Expose is_mem_section_removable() and offline_pages() Hyper-V/Balloon: Call add_memory() with dm_device.ha_lock. x86/Hyper-V: Add memory hot remove function drivers/hv/hv_balloon.c | 707 ++++++++++++++++++++++++++++++++++++++++++------ kernel/resource.c | 38 ++- mm/memory_hotplug.c | 2 + 3 files changed, 664 insertions(+), 83 deletions(-) -- 2.14.5