From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fn1XB-0004k4-U9 for qemu-devel@nongnu.org; Tue, 07 Aug 2018 08:56:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fn1X7-00035E-3Z for qemu-devel@nongnu.org; Tue, 07 Aug 2018 08:56:22 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:53828 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 1fn1X6-000354-Uh for qemu-devel@nongnu.org; Tue, 07 Aug 2018 08:56:17 -0400 Date: Tue, 7 Aug 2018 20:56:05 +0800 From: Peter Xu 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 Content-Disposition: inline In-Reply-To: <153299242656.14411.14216251294160965283.stgit@gimli.home> 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, cohuck@redhat.com, mst@redhat.com, david@redhat.com 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