From 19d339f11d0768df2b4e0c40530bb4ab53e6bb05 Mon Sep 17 00:00:00 2001 From: Fam Zheng Date: Wed, 6 Aug 2014 13:35:06 +0800 Subject: virtio-scsi: Add 'iothread' property to virtio-scsi Similar to this property in virtio-blk for dataplane, add it as a QOM link in virtio-scsi and an alias in virtio-scsi-pci and virtio-scsi-ccw, in order to assign an iothread to the device. Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- hw/virtio/virtio-pci.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw/virtio/virtio-pci.c') diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 83a699fc23..bae62c8f66 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -1186,6 +1186,8 @@ static void virtio_scsi_pci_instance_init(Object *obj) virtio_instance_init_common(obj, &dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_SCSI); + object_property_add_alias(obj, "iothread", OBJECT(&dev->vdev), "iothread", + &error_abort); } static const TypeInfo virtio_scsi_pci_info = { -- cgit v1.2.3