Received: from eggs.gnu.org ([2001:4830:134:3::10]:53305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwp96-00062h-Bx for qemu-devel@nongnu.org; Wed, 19 Oct 2016 07:34:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwp93-0002Y0-9D for qemu-devel@nongnu.org; Wed, 19 Oct 2016 07:34:56 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52475 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bwp93-0002XX-2B for qemu-devel@nongnu.org; Wed, 19 Oct 2016 07:34:53 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9JBYotc125253 for ; Wed, 19 Oct 2016 07:34:52 -0400 Received: from e06smtp06.uk.ibm.com (e06smtp06.uk.ibm.com [195.75.94.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 26638add8g-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 19 Oct 2016 07:34:51 -0400 Received: from localhost by e06smtp06.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 19 Oct 2016 12:34:40 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 7698A17D8024 for ; Wed, 19 Oct 2016 12:36:50 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9JBYcRP23527522 for ; Wed, 19 Oct 2016 11:34:38 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u9JBYcke015492 for ; Wed, 19 Oct 2016 05:34:38 -0600 Date: Wed, 19 Oct 2016 13:34:37 +0200 From: Cornelia Huck In-Reply-To: <20161019125137.2a2f1e65.cornelia.huck@de.ibm.com> References: <1476100421-28772-1-git-send-email-pbonzini@redhat.com> <1476100421-28772-8-git-send-email-pbonzini@redhat.com> <20161019125137.2a2f1e65.cornelia.huck@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20161019133437.71868456.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 07/13] virtio-scsi: always use dataplane path if ioeventfd is active List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, stefanha@redhat.com, borntraeger@de.ibm.com, famz@redhat.com, mst@redhat.com On Wed, 19 Oct 2016 12:51:37 +0200 Cornelia Huck wrote: > On Mon, 10 Oct 2016 13:53:35 +0200 > Paolo Bonzini wrote: > > > Override start_ioeventfd and stop_ioeventfd to start/stop the > > whole dataplane logic. This has some positive side effects: > > > > - no need anymore for virtio_add_queue_aio (i.e. a revert of > > commit 1c627137c10ee2dcf59e0383ade8a9abfa2d4355) > > > > - no need anymore to switch from generic ioeventfd handlers to > > dataplane > > > > It detects some errors better: > > > > $ qemu-system-x86_64 -object iothread,id=io \ > > -device virtio-scsi-pci,ioeventfd=off,iothread=io > > qemu-system-x86_64: -device virtio-scsi-pci,ioeventfd=off,iothread=io: > > ioeventfd is required for iothread > > > > while previously it would have started just fine. > > > > Signed-off-by: Paolo Bonzini > > --- > > hw/scsi/virtio-scsi-dataplane.c | 56 +++++++++++++++++++++++++---------------- > > hw/scsi/virtio-scsi.c | 24 ++++++++---------- > > include/hw/virtio/virtio-scsi.h | 6 ++--- > > 3 files changed, 48 insertions(+), 38 deletions(-) > > Looks good to me as well, but give me some more time before I give an > R-b. Reviewed-by: Cornelia Huck