]> xenbits.xensource.com Git - people/julieng/linux-arm.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)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 29 Sep 2015 16:00:03 +0000 (17:00 +0100)
commit696c69e06bb7f645b88fae085b102d7775b883b3
treea70c0e48faa932f64b5018cbe368621c497645de
parent4ca1baabc56d9466231ad8a5b1b08e154e89515f
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.
drivers/xen/balloon.c