From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:52521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rql80-0001uo-8w for qemu-devel@nongnu.org; Fri, 27 Jan 2012 07:42:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rql7z-0005tx-6y for qemu-devel@nongnu.org; Fri, 27 Jan 2012 07:42:04 -0500 Message-ID: <4F229B8E.6000908@codemonkey.ws> Date: Fri, 27 Jan 2012 06:41:50 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1327425457-31313-1-git-send-email-afaerber@suse.de> <20120127062355.GA20307@stefanha-thinkpad.localdomain> <4F2270A3.4060707@suse.de> In-Reply-To: <4F2270A3.4060707@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v6] qdev: Add support for property type bool List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Andreas_F=E4rber?= Cc: Kevin Wolf , Blue Swirl , Anthony Liguori , Juan Quintela , qemu-trivial@nongnu.org, Stefan Hajnoczi , qemu-devel@nongnu.org, Markus Armbruster , Vasilis Liaskovitis , Jan Kiszka , Amit Shah , Paolo Bonzini On 01/27/2012 03:38 AM, Andreas Färber wrote: > Am 27.01.2012 07:23, schrieb Stefan Hajnoczi: >> On Tue, Jan 24, 2012 at 06:17:36PM +0100, Andreas Färber wrote: >>> From: Andreas Färber >>> >>> VMState supports the type bool but qdev instead supports bit, backed by >>> uint32_t. Therefore let's add DEFINE_PROP_BOOL() and qdev_prop_set_bool(). >>> >>> bool by definition is either true or false. Should the need arise to >>> parse yes/no, on/off, 1/0 or whatever as well, we can still add that at >>> a later point in time. >>> >>> Signed-off-by: Andreas Färber >>> Cc: Juan Quintela >>> Cc: Markus Armbruster >>> Cc: Jan Kiszka >>> Cc: Vasilis Liaskovitis >>> --- >>> v5 -> v6: >> >> Please merge through a qemu.git committer. v6 and discussion means this >> isn't trivial. > > Unfortunately that hasn't happened for half a year though. Generally no > qemu.git committer seems to care about cherry-picking useful > infrastructures from bigger series even once discussions are resolved. So... why are we introducing a type that's not being used anywhere? Are you planning to use this type somewhere or is this purely speculative? Regards, Anthony Liguori > > And for the record, it's net v3 as shown in the part you snipped. > > Vasilis, unless Jan or someone has further nitpicks, just prepend my v8 > to your series and reuse its DEFINE_PROP_BOOL(). > > Andreas >