Received: from eggs.gnu.org ([2001:4830:134:3::10]:35180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYwVq-0008L7-4f for qemu-devel@nongnu.org; Tue, 30 Sep 2014 08:26:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYwVg-0003DM-Cs for qemu-devel@nongnu.org; Tue, 30 Sep 2014 08:26:38 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:40641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYwVg-0003BA-5z for qemu-devel@nongnu.org; Tue, 30 Sep 2014 08:26:28 -0400 Received: by mail-wi0-f182.google.com with SMTP id ex7so3879075wid.9 for ; Tue, 30 Sep 2014 05:26:22 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Tue, 30 Sep 2014 14:25:10 +0200 Message-Id: <1412079919-18857-31-git-send-email-pbonzini@redhat.com> In-Reply-To: <1412079919-18857-1-git-send-email-pbonzini@redhat.com> References: <1412079919-18857-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 30/39] virtio-scsi: Process ".iothread" property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Fam Zheng From: Fam Zheng We are ready, now let's effectively enable dataplane. Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- 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.8.3.1