]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/balloon: only hotplug additional memory if required
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 25 Jun 2015 11:10:28 +0000 (12:10 +0100)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:00 +0000 (02:01 +0100)
commit551e14ffa6654a8d4f5a2ca75949294a3d454913
tree008cff142954dedac86290976106596ae356091d
parente85ccb854e453c72da17aa8c6d97850a45a9b08c
xen/balloon: only hotplug additional memory if required

Now that we track the total number of pages (included hotplugged
regions), it is easy to determine if more memory needs to be
hotplugged.

Add a new BP_WAIT state to signal that the balloon process needs to
wait until kicked by the memory add notifier (when the new section is
onlined by userspace).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
---
v3:
- Return BP_WAIT if enough sections are already hotplugged.

v2:
- New BP_WAIT status after adding new memory sections.

(cherry picked from commit b2ac6aa8f71bf57b948ee68cd913c350b932da88)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/balloon.c