From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlG67-000351-Rs for qemu-devel@nongnu.org; Tue, 26 Nov 2013 05:42:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlG61-0002x9-Q1 for qemu-devel@nongnu.org; Tue, 26 Nov 2013 05:42:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:65316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlG61-0002x3-Ie for qemu-devel@nongnu.org; Tue, 26 Nov 2013 05:42:21 -0500 Message-ID: <52947AF4.1010607@redhat.com> Date: Tue, 26 Nov 2013 11:41:56 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1385097894-1380-1-git-send-email-famz@redhat.com> <1385097894-1380-3-git-send-email-famz@redhat.com> <52938532.1080803@redhat.com> <52940262.2090406@redhat.com> <5294683F.8090004@redhat.com> <52947734.80207@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 2/7] block: Introduce op_blockers to BlockDriverState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , Fam Zheng , hbrock@redhat.com, "qemu-devel@nongnu.org" , rjones@redhat.com, imain@redhat.com, Stefan Hajnoczi Il 26/11/2013 11:31, Fam Zheng ha scritto: >> > I would just use an uint64_t, I think you have ~20 operations now. >> > There is still quite some breathing room. >> > > OK. Then, can we still use QAPI enum? Because I think being possible > to query blockers makes sense, that way the user doesn't have to trial > and error to know what operation is blocked. Yes, we can. You would still have to add a bunch of #define BLOCK_OPERATION_MASK_RESIZE (1ULL << BLOCK_OPERATION_TYPE_RESIZE) in block.h. Paolo