Drivers: hv: balloon: Implement hot-add functionality
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 15 Mar 2013 19:25:43 +0000 (12:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 19:11:51 +0000 (12:11 -0700)
commit1cac8cd4d146b60a7c70d778b5be928281b3b551
tree1f4d6a20704074ab3c67a0e9435ca9331d8a06b2
parent0cf40a3e661b09c0dda795a77ccc0402c3153859
Drivers: hv: balloon: Implement hot-add functionality

Implement the memory hot-add functionality. With this, Linux guests can fully
participate in the Dynamic Memory protocol implemented in the Windows hosts.

In this version of the patch, based Olaf Herring's feedback, I have gotten
rid of the module level dependency on MEMORY_HOTPLUG. Instead the code within
the driver that depends on MEMORY_HOTPLUG has the appropriate compilation
switches. This would allow this driver to support pure ballooning in cases
where the kernel does not support memory hotplug.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_balloon.c