Re: [Xen-devel] [PATCHv2 06/10] xen/balloon: only hotplug additional memory if required

2015-07-29 Thread David Vrabel
On 29/07/15 16:55, Daniel Kiper wrote: > On Fri, Jul 24, 2015 at 12:47:44PM +0100, David Vrabel wrote: >> --- a/drivers/xen/balloon.c >> +++ b/drivers/xen/balloon.c >> @@ -75,12 +75,14 @@ >> * balloon_process() state: >> * >> * BP_DONE: done or nothing to do, >> + * BP_WAIT: wait to be resche

Re: [Xen-devel] [PATCHv2 06/10] xen/balloon: only hotplug additional memory if required

2015-07-29 Thread Daniel Kiper
On Fri, Jul 24, 2015 at 12:47:44PM +0100, David Vrabel wrote: > 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 b

[Xen-devel] [PATCHv2 06/10] xen/balloon: only hotplug additional memory if required

2015-07-24 Thread David Vrabel
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).