Re: [Qemu-devel] [RFC PATCH 1/3] balloon: Allow nested inhibits

2018-07-18 Thread Peter Xu
On Wed, Jul 18, 2018 at 10:37:36AM -0600, Alex Williamson wrote: > On Wed, 18 Jul 2018 14:40:15 +0800 > Peter Xu wrote: > > > On Tue, Jul 17, 2018 at 04:47:37PM -0600, Alex Williamson wrote: > > > A simple true/false internal state does not allow multiple users. Fix > > > this within the existin

Re: [Qemu-devel] [RFC PATCH 1/3] balloon: Allow nested inhibits

2018-07-18 Thread Alex Williamson
On Wed, 18 Jul 2018 14:40:15 +0800 Peter Xu wrote: > On Tue, Jul 17, 2018 at 04:47:37PM -0600, Alex Williamson wrote: > > A simple true/false internal state does not allow multiple users. Fix > > this within the existing interface by converting to a counter, so long > > as the counter is elevate

Re: [Qemu-devel] [RFC PATCH 1/3] balloon: Allow nested inhibits

2018-07-17 Thread Peter Xu
On Tue, Jul 17, 2018 at 04:47:37PM -0600, Alex Williamson wrote: > A simple true/false internal state does not allow multiple users. Fix > this within the existing interface by converting to a counter, so long > as the counter is elevated, ballooning is inhibited. > > Signed-off-by: Alex Williams