Received: from eggs.gnu.org ([2001:4830:134:3::10]:40159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7gH3-0000Lw-NH for qemu-devel@nongnu.org; Mon, 08 May 2017 06:52:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7gH0-0007cC-U2 for qemu-devel@nongnu.org; Mon, 08 May 2017 06:52:17 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56886 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7gH0-0007bi-O1 for qemu-devel@nongnu.org; Mon, 08 May 2017 06:52:14 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v48AdxJ2069931 for ; Mon, 8 May 2017 06:52:13 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0b-001b2d01.pphosted.com with ESMTP id 2aahm8g1j7-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 08 May 2017 06:52:13 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 8 May 2017 11:52:09 +0100 Date: Mon, 8 May 2017 12:51:58 +0200 From: Cornelia Huck In-Reply-To: <20170505203620.GN3482@thinpad.lan.raisama.net> References: <20170503203604.31462-1-ehabkost@redhat.com> <20170503203604.31462-3-ehabkost@redhat.com> <20170505093622.37902dea.cornelia.huck@de.ibm.com> <20170505165419.GF3482@thinpad.lan.raisama.net> <20170505203620.GN3482@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20170508125158.713581ce.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH] fixup! sysbus: Set user_creatable=false by default on TYPE_SYS_BUS_DEVICE 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 , Alex Williamson , Alistair Francis , Beniamino Galvani , Christian Borntraeger , David Gibson , "Edgar E. Iglesias" , Frank Blaschka , "Gabriel L . Somlo" , Gerd Hoffmann , Igor Mammedov , Jason Wang , John Snow , Juergen Gross , Kevin Wolf , Max Reitz , "Michael S. Tsirkin" , Paolo Bonzini , Pierre Morel , Prasad J Pandit , qemu-arm@nongnu.org, qemu-block@nongnu.org, qemu-ppc@nongnu.org, Richard Henderson , Rob Herring , Shannon Zhao , sstabellini@kernel.org, Yi Min Zhao On Fri, 5 May 2017 17:36:20 -0300 Eduardo Habkost wrote: > Fixup will be included in v3, or can be applied by maintainer: > > Signed-off-by: Eduardo Habkost > --- > hw/core/sysbus.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c > index 6a2eec8dd0..5d0887f499 100644 > --- a/hw/core/sysbus.c > +++ b/hw/core/sysbus.c > @@ -327,14 +327,14 @@ static void sysbus_device_class_init(ObjectClass *klass, void *data) > k->init = sysbus_device_init; > k->bus_type = TYPE_SYSTEM_BUS; > /* > - * device_add plugs devices into suitable bus. For "real" buses, > + * device_add plugs devices into a suitable bus. For "real" buses, > * that actually connects the device. For sysbus, the connections > * need to be made separately, and device_add can't do that. The > * device would be left unconnected, and will probably not work > * > - * However, a few machines and a few devices can handle a few sysbus > - * devices. In this case, the device subclass needs to override > - * it and set user_creatable=true. > + * However, a few machines can handle device_add/-device with > + * a few specific sysbus devices. In those cases, the device > + * subclass needs to override it and set user_creatable=true. > */ > k->user_creatable = false; > } FWIW: LGTM