From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d61D5-0005WL-A4 for qemu-devel@nongnu.org; Wed, 03 May 2017 16:49:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d61D4-0006Km-BP for qemu-devel@nongnu.org; Wed, 03 May 2017 16:49:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43768) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d61D4-0006K8-5A for qemu-devel@nongnu.org; Wed, 03 May 2017 16:49:18 -0400 Date: Wed, 3 May 2017 23:49:13 +0300 From: "Michael S. Tsirkin" Message-ID: <20170503234855-mutt-send-email-mst@kernel.org> References: <20170503203604.31462-1-ehabkost@redhat.com> <20170503203604.31462-15-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170503203604.31462-15-ehabkost@redhat.com> Subject: Re: [Qemu-devel] [PATCH RESEND v2 14/21] fw_cfg: Remove user_creatable flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Laszlo Ersek , Thomas Huth , Alexander Graf , Markus Armbruster , Marcel Apfelbaum , Peter Maydell , "Gabriel L . Somlo" On Wed, May 03, 2017 at 05:35:57PM -0300, 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: Marcel Apfelbaum > Cc: "Michael S. Tsirkin" > Cc: Laszlo Ersek > Cc: Gabriel L. Somlo > Reviewed-by: Laszlo Ersek > Acked-by: Marcel Apfelbaum > Signed-off-by: Eduardo Habkost Acked-by: Michael S. Tsirkin > --- > Changes v1 -> v2: > * (none) > --- > 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 7993aea792..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 because we are not sure yet if this device > - * will be outside the q35 sysbus whitelist. > - */ > - 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 because we are not sure yet if this device > - * will be outside the q35 sysbus whitelist. > - */ > - dc->user_creatable = true; > } > > static const TypeInfo fw_cfg_mem_info = { > -- > 2.11.0.259.g40922b1