From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36090) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWKrQ-0005Qs-0T for qemu-devel@nongnu.org; Tue, 23 Sep 2014 03:50:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWKrJ-000859-MG for qemu-devel@nongnu.org; Tue, 23 Sep 2014 03:50:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWKrJ-000846-F8 for qemu-devel@nongnu.org; Tue, 23 Sep 2014 03:50:01 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8N7ntPi030776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 23 Sep 2014 03:49:55 -0400 From: Fam Zheng Date: Tue, 23 Sep 2014 15:49:30 +0800 Message-Id: <1411458570-7299-8-git-send-email-famz@redhat.com> In-Reply-To: <1411458570-7299-1-git-send-email-famz@redhat.com> References: <1411458570-7299-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v3 7/7] virtio-scsi: Process ".iothread" property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, stefanha@redhat.com We are ready, now let's effectively enable dataplane. Signed-off-by: Fam Zheng --- hw/scsi/virtio-scsi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c index 09a39cb..fa36e23 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 -- 1.9.3