From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFoRJ-0004qy-Bo for qemu-devel@nongnu.org; Tue, 18 Feb 2014 12:26:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFoRD-00024m-6F for qemu-devel@nongnu.org; Tue, 18 Feb 2014 12:26:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFoRC-00024h-UI for qemu-devel@nongnu.org; Tue, 18 Feb 2014 12:26:31 -0500 Message-ID: <530397BD.6090905@redhat.com> Date: Tue, 18 Feb 2014 18:26:21 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1392741987-6356-1-git-send-email-marcel.a@redhat.com> <53038F97.6070000@redhat.com> <1392743460.3076.10.camel@localhost.localdomain> In-Reply-To: <1392743460.3076.10.camel@localhost.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qom: add object_property_is_set List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: peter.crosthwaite@xilinx.com, mst@redhat.com, qemu-devel@nongnu.org, anthony@codemonkey.ws, imammedo@redhat.com, afaerber@suse.de Il 18/02/2014 18:11, Marcel Apfelbaum ha scritto: > It is used to replace qemu_opt_get_bool that provides a > parameter for a default value. In this case we need to > differentiate "no value" from "false." But what would the getter return in that case? If possible, it's better to initialize to the default value in an instance_init method. > I could send it with QemuMachine QOMify feature, > but this will be a fairly large series and I *really* want > to minimize it as much as I can, this is why I release small, > stand-alone patches, that fixes some issue (see [Qemu-devel] > [PATCH] qapi: output visitor crashes qemu if it encounters a NULL value), > or adds a fairly useful feature like this one. It depends, features are not necessarily useful without users. Paolo