From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkCyn-0006Zn-3j for qemu-devel@nongnu.org; Mon, 20 Apr 2015 10:47:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkCyj-0003sh-Dw for qemu-devel@nongnu.org; Mon, 20 Apr 2015 10:47:21 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:53742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkCyj-0003s9-3h for qemu-devel@nongnu.org; Mon, 20 Apr 2015 10:47:17 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 20 Apr 2015 15:47:14 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id AF98C1B0805F for ; Mon, 20 Apr 2015 15:47:47 +0100 (BST) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t3KElBio57868394 for ; Mon, 20 Apr 2015 14:47:11 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t3KElBeR026473 for ; Mon, 20 Apr 2015 08:47:11 -0600 Message-ID: <5535116E.9010205@de.ibm.com> Date: Mon, 20 Apr 2015 16:47:10 +0200 From: Christian Borntraeger MIME-Version: 1.0 References: <1428569498-27393-1-git-send-email-cornelia.huck@de.ibm.com> <1428569498-27393-3-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1428569498-27393-3-git-send-email-cornelia.huck@de.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 02/10] virtio-ccw: sort into categories List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck , qemu-devel@nongnu.org Cc: jfrei@linux.vnet.ibm.com, agraf@suse.de Am 09.04.2015 um 10:51 schrieb Cornelia Huck: > Sort the various virtio-ccw devices into the same categories as their > virtio-pci counterparts. > > Reviewed-by: David Hildenbrand > Signed-off-by: Cornelia Huck Acked-by: Christian Borntraeger > --- > hw/s390x/virtio-ccw.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c > index d32ecaf..9ef1059 100644 > --- a/hw/s390x/virtio-ccw.c > +++ b/hw/s390x/virtio-ccw.c > @@ -1418,6 +1418,7 @@ static void virtio_ccw_net_class_init(ObjectClass *klass, void *data) > k->exit = virtio_ccw_exit; > dc->reset = virtio_ccw_reset; > dc->props = virtio_ccw_net_properties; > + set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > } > > static const TypeInfo virtio_ccw_net = { > @@ -1444,6 +1445,7 @@ static void virtio_ccw_blk_class_init(ObjectClass *klass, void *data) > k->exit = virtio_ccw_exit; > dc->reset = virtio_ccw_reset; > dc->props = virtio_ccw_blk_properties; > + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > > static const TypeInfo virtio_ccw_blk = { > @@ -1470,6 +1472,7 @@ static void virtio_ccw_serial_class_init(ObjectClass *klass, void *data) > k->exit = virtio_ccw_exit; > dc->reset = virtio_ccw_reset; > dc->props = virtio_ccw_serial_properties; > + set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > > static const TypeInfo virtio_ccw_serial = { > @@ -1496,6 +1499,7 @@ static void virtio_ccw_balloon_class_init(ObjectClass *klass, void *data) > k->exit = virtio_ccw_exit; > dc->reset = virtio_ccw_reset; > dc->props = virtio_ccw_balloon_properties; > + set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > > static const TypeInfo virtio_ccw_balloon = { > @@ -1523,6 +1527,7 @@ static void virtio_ccw_scsi_class_init(ObjectClass *klass, void *data) > k->exit = virtio_ccw_exit; > dc->reset = virtio_ccw_reset; > dc->props = virtio_ccw_scsi_properties; > + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > > static const TypeInfo virtio_ccw_scsi = { > @@ -1548,6 +1553,7 @@ static void vhost_ccw_scsi_class_init(ObjectClass *klass, void *data) > k->exit = virtio_ccw_exit; > dc->reset = virtio_ccw_reset; > dc->props = vhost_ccw_scsi_properties; > + set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > > static const TypeInfo vhost_ccw_scsi = { > @@ -1585,6 +1591,7 @@ static void virtio_ccw_rng_class_init(ObjectClass *klass, void *data) > k->exit = virtio_ccw_exit; > dc->reset = virtio_ccw_reset; > dc->props = virtio_ccw_rng_properties; > + set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > > static const TypeInfo virtio_ccw_rng = { > @@ -1671,9 +1678,11 @@ static void virtual_css_bridge_class_init(ObjectClass *klass, void *data) > { > SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); > HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass); > + DeviceClass *dc = DEVICE_CLASS(klass); > > k->init = virtual_css_bridge_init; > hc->unplug = virtio_ccw_busdev_unplug; > + set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > > static const TypeInfo virtual_css_bridge_info = { >