From: Fam Zheng Date: Tue, 23 Sep 2014 07:49:30 +0000 (+0800) Subject: virtio-scsi: Process ".iothread" property X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~209^2~536^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9786b592a93e557e575ea6f18ee1e1fc6d68dc7b;p=sdk%2Femulator%2Fqemu.git virtio-scsi: Process ".iothread" property We are ready, now let's effectively enable dataplane. Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 09a39cb991..fa36e23a2d 100644 --- a/hw/scsi/virtio-scsi.c +++ b/hw/scsi/virtio-scsi.c @@ -754,6 +754,10 @@ void virtio_scsi_common_realize(DeviceState *dev, Error **errp, s->cmd_vqs[i] = virtio_add_queue(vdev, VIRTIO_SCSI_VQ_SIZE, cmd); } + + if (s->conf.iothread) { + virtio_scsi_set_iothread(VIRTIO_SCSI(s), s->conf.iothread); + } } /* Disable dataplane thread during live migration since it does not