Received: from eggs.gnu.org ([2001:4830:134:3::10]:60050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWhdL-0001GL-7K for qemu-devel@nongnu.org; Wed, 24 Sep 2014 04:09:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWhdF-0008SL-3G for qemu-devel@nongnu.org; Wed, 24 Sep 2014 04:09:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWhdE-0008Rf-Sb for qemu-devel@nongnu.org; Wed, 24 Sep 2014 04:09: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 s8O88sEN002430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 24 Sep 2014 04:08:54 -0400 From: Fam Zheng Date: Wed, 24 Sep 2014 15:21:52 +0800 Message-Id: <1411543312-6511-15-git-send-email-famz@redhat.com> In-Reply-To: <1411543312-6511-1-git-send-email-famz@redhat.com> References: <1411543312-6511-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v4 14/14] 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