]> git.baikalelectronics.ru Git - kernel.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>
Fri, 23 Oct 2015 13:20:04 +0000 (14:20 +0100)
commitcfa767777d31a8a71c9d059556864af5f6151cf9
tree265cb770cf581da01049c6bc6acc696a03467411
parentad70e9bd33e3823f92ab30290a314999389b0fd6
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