From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Xu Subject: Re: [PATCH v2 1/4] balloon: Allow nested inhibits Date: Tue, 7 Aug 2018 20:56:05 +0800 Message-ID: <20180807125605.GD7265@xz-mi> References: <153299204130.14411.11438396195753743913.stgit@gimli.home> <153299242656.14411.14216251294160965283.stgit@gimli.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: cohuck@redhat.com, david@redhat.com, qemu-devel@nongnu.org, kvm@vger.kernel.org, mst@redhat.com To: Alex Williamson Return-path: Content-Disposition: inline In-Reply-To: <153299242656.14411.14216251294160965283.stgit@gimli.home> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel2=m.gmane.org@nongnu.org Sender: "Qemu-devel" List-Id: kvm.vger.kernel.org On Mon, Jul 30, 2018 at 05:13:46PM -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 Williamson Reviewed-by: Peter Xu Regards, -- Peter Xu