Re: [PATCH v4 1/2] virtio_balloon: Restore the entire balloon after the system freeze

2016-01-01 Thread Michael S. Tsirkin
On Fri, Jan 01, 2016 at 12:11:02PM +0200, Michael S. Tsirkin wrote: > On Fri, Dec 04, 2015 at 02:37:50PM +0100, Petr Mladek wrote: > > fill_balloon() and leak_balloon() manipulate only a limited number > > of pages in one call. This is the reason why remove_common() calls > > leak_balloon() in a

Re: [PATCH v4 1/2] virtio_balloon: Restore the entire balloon after the system freeze

2016-01-01 Thread Michael S. Tsirkin
On Fri, Dec 04, 2015 at 02:37:50PM +0100, Petr Mladek wrote: > fill_balloon() and leak_balloon() manipulate only a limited number > of pages in one call. This is the reason why remove_common() calls > leak_balloon() in a while cycle. > > remove_common() is called also when the system is being

Re: [PATCH v4 1/2] virtio_balloon: Restore the entire balloon after the system freeze

2016-01-01 Thread Michael S. Tsirkin
On Fri, Jan 01, 2016 at 12:11:02PM +0200, Michael S. Tsirkin wrote: > On Fri, Dec 04, 2015 at 02:37:50PM +0100, Petr Mladek wrote: > > fill_balloon() and leak_balloon() manipulate only a limited number > > of pages in one call. This is the reason why remove_common() calls > > leak_balloon() in a

Re: [PATCH v4 1/2] virtio_balloon: Restore the entire balloon after the system freeze

2016-01-01 Thread Michael S. Tsirkin
On Fri, Dec 04, 2015 at 02:37:50PM +0100, Petr Mladek wrote: > fill_balloon() and leak_balloon() manipulate only a limited number > of pages in one call. This is the reason why remove_common() calls > leak_balloon() in a while cycle. > > remove_common() is called also when the system is being

[PATCH v4 1/2] virtio_balloon: Restore the entire balloon after the system freeze

2015-12-04 Thread Petr Mladek
fill_balloon() and leak_balloon() manipulate only a limited number of pages in one call. This is the reason why remove_common() calls leak_balloon() in a while cycle. remove_common() is called also when the system is being frozen. But fill_balloon() is called only once when the system is being

[PATCH v4 1/2] virtio_balloon: Restore the entire balloon after the system freeze

2015-12-04 Thread Petr Mladek
fill_balloon() and leak_balloon() manipulate only a limited number of pages in one call. This is the reason why remove_common() calls leak_balloon() in a while cycle. remove_common() is called also when the system is being frozen. But fill_balloon() is called only once when the system is being