From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cv4BM-0007q6-GQ for qemu-devel@nongnu.org; Mon, 03 Apr 2017 11:46:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cv4BH-0004bJ-Gi for qemu-devel@nongnu.org; Mon, 03 Apr 2017 11:46:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59748) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cv4BH-0004aj-BP for qemu-devel@nongnu.org; Mon, 03 Apr 2017 11:46:11 -0400 References: <20170401004624.30886-1-ehabkost@redhat.com> <20170401004624.30886-15-ehabkost@redhat.com> From: Laszlo Ersek Message-ID: <40d94c49-7941-59e3-bcdc-40a2c9358c11@redhat.com> Date: Mon, 3 Apr 2017 17:46:02 +0200 MIME-Version: 1.0 In-Reply-To: <20170401004624.30886-15-ehabkost@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 14/19] fw_cfg: Remove user_creatable flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost , qemu-devel@nongnu.org Cc: Alexander Graf , Marcel Apfelbaum , Thomas Huth , Peter Maydell , Markus Armbruster , "Michael S. Tsirkin" , "Gabriel L . Somlo" On 04/01/17 02:46, Eduardo Habkost wrote: > fw_cfg won't work with -device, as: > * fw_cfg_init1() won't get called for the device; > * The device won't appear at /machine/fw_cfg, and won't work with > the -fw_cfg command-line option. > > Remove the user_creatable flag from the device class. > > Cc: "Michael S. Tsirkin" > Cc: Laszlo Ersek > Cc: Gabriel L. Somlo > Signed-off-by: Eduardo Habkost > --- > hw/nvram/fw_cfg.c | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c > index 60bf4fdd2e..316fca9bc1 100644 > --- a/hw/nvram/fw_cfg.c > +++ b/hw/nvram/fw_cfg.c > @@ -1101,11 +1101,6 @@ static void fw_cfg_io_class_init(ObjectClass *klass, void *data) > > dc->realize = fw_cfg_io_realize; > dc->props = fw_cfg_io_properties; > - /* > - * FIXME: Set only for compatibility on q35 machine-type. > - * Probably never meant to be user-creatable > - */ > - dc->user_creatable = true; > } > > static const TypeInfo fw_cfg_io_info = { > @@ -1172,11 +1167,6 @@ static void fw_cfg_mem_class_init(ObjectClass *klass, void *data) > > dc->realize = fw_cfg_mem_realize; > dc->props = fw_cfg_mem_properties; > - /* > - * FIXME: Set only for compatibility on q35 machine-type. > - * Probably never meant to be user-creatable > - */ > - dc->user_creatable = true; > } > > static const TypeInfo fw_cfg_mem_info = { > Reviewed-by: Laszlo Ersek