From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn2qt-0002sL-AQ for qemu-devel@nongnu.org; Tue, 07 Aug 2018 10:20:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fn2qq-0002uY-MM for qemu-devel@nongnu.org; Tue, 07 Aug 2018 10:20:47 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36216 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fn2qq-0002uM-GW for qemu-devel@nongnu.org; Tue, 07 Aug 2018 10:20:44 -0400 Date: Tue, 7 Aug 2018 16:20:34 +0200 From: Cornelia Huck Message-ID: <20180807162034.0e3759d5.cohuck@redhat.com> In-Reply-To: <153299242656.14411.14216251294160965283.stgit@gimli.home> References: <153299204130.14411.11438396195753743913.stgit@gimli.home> <153299242656.14411.14216251294160965283.stgit@gimli.home> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/4] balloon: Allow nested inhibits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, peterx@redhat.com, mst@redhat.com, david@redhat.com On Mon, 30 Jul 2018 17:13:46 -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 > --- > balloon.c | 13 ++++++++++--- > 1 file changed, 10 insertions(+), 3 deletions(-) Reviewed-by: Cornelia Huck