Received: from eggs.gnu.org ([2001:4830:134:3::10]:45026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDwHa-0003Sp-LJ for qemu-devel@nongnu.org; Mon, 05 Dec 2016 11:38:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDwHV-0004Sh-PP for qemu-devel@nongnu.org; Mon, 05 Dec 2016 11:38:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47370) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cDwHV-0004SS-KF for qemu-devel@nongnu.org; Mon, 05 Dec 2016 11:38:21 -0500 Date: Mon, 5 Dec 2016 14:38:18 -0200 From: Eduardo Habkost Message-ID: <20161205163818.GE13060@thinpad.lan.raisama.net> References: <1479777133-23567-1-git-send-email-ehabkost@redhat.com> <1479777133-23567-12-git-send-email-ehabkost@redhat.com> <2f5f20a1-920f-6381-8402-81df697d61d3@redhat.com> <20161205170327.42c21c03.cornelia.huck@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161205170327.42c21c03.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [RFC 11/15] s390x: Initialize default bus lists List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: David Hildenbrand , qemu-devel@nongnu.org, Markus Armbruster , Marcel Apfelbaum , "Michael S. Tsirkin" On Mon, Dec 05, 2016 at 05:03:27PM +0100, Cornelia Huck wrote: > On Mon, 5 Dec 2016 16:24:00 +0100 > David Hildenbrand wrote: > > > Am 22.11.2016 um 02:12 schrieb Eduardo Habkost: > > > Populate the default_bus_types list for the s390x machines. This > > > will allow qmp-machine-info.py to run in strict mode for s390x. > > > > > > Signed-off-by: Eduardo Habkost > > > --- > > > hw/s390x/s390-virtio-ccw.c | 6 ++++++ > > > tests/qmp-machine-info.py | 2 +- > > > 2 files changed, 7 insertions(+), 1 deletion(-) > > > > > > diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c > > > index e340eab..2532fcb 100644 > > > --- a/hw/s390x/s390-virtio-ccw.c > > > +++ b/hw/s390x/s390-virtio-ccw.c > > > @@ -206,6 +206,12 @@ static void ccw_machine_class_init(ObjectClass *oc, void *data) > > > mc->use_sclp = 1; > > > mc->max_cpus = 248; > > > mc->get_hotplug_handler = s390_get_hotplug_handler; > > > + machine_class_add_default_bus(mc, TYPE_VIRTUAL_CSS_BUS); > > > + machine_class_add_default_bus(mc, TYPE_PCI_BUS); > > > + machine_class_add_default_bus(mc, TYPE_S390_PCI_BUS); > > > + machine_class_add_default_bus(mc, "s390-sclp-events-bus"); > > > + machine_class_add_default_bus(mc, TYPE_VIRTIO_BUS); > > > + > > > > Maybe move and use > > #define TYPE_SCLP_EVENTS_BUS "s390-sclp-events-bus" > > > > (maybe this should then become TYPE_S390_SCLP_EVENTS_BUS ...) > > > > ? > > > > I'd ack/take such a patch. Agreed. I will address that in final version. This version was supposed to include a "//FIXME: use macro here" comment. -- Eduardo