Received: from eggs.gnu.org ([2001:4830:134:3::10]:37063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alI7i-0002vB-AM for qemu-devel@nongnu.org; Wed, 30 Mar 2016 11:33:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alI7c-0006nd-Nw for qemu-devel@nongnu.org; Wed, 30 Mar 2016 11:33:34 -0400 Received: from e06smtp07.uk.ibm.com ([195.75.94.103]:56066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alI7c-0006nF-EY for qemu-devel@nongnu.org; Wed, 30 Mar 2016 11:33:28 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 30 Mar 2016 16:33:27 +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 E862517D805A for ; Wed, 30 Mar 2016 16:34:03 +0100 (BST) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2UFXP9851314890 for ; Wed, 30 Mar 2016 15:33:26 GMT Received: from d06av06.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av06.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2UFXPBS016903 for ; Wed, 30 Mar 2016 11:33:25 -0400 Date: Wed, 30 Mar 2016 17:33:23 +0200 From: Cornelia Huck Message-ID: <20160330173323.023f82f5.cornelia.huck@de.ibm.com> In-Reply-To: <1459342088-24311-9-git-send-email-pbonzini@redhat.com> References: <1459342088-24311-1-git-send-email-pbonzini@redhat.com> <1459342088-24311-9-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 8/9] virtio: merge virtio_queue_aio_set_host_notifier_handler with virtio_queue_set_aio List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: borntraeger@de.ibm.com, famz@redhat.com, qemu-devel@nongnu.org, mst@redhat.com On Wed, 30 Mar 2016 14:48:07 +0200 Paolo Bonzini wrote: > Eliminating the reentrancy is actually a nice thing that we can do > with the API that Michael proposed, so let's make it first class. > This also hides the complex assign/set_handler conventions from > callers of virtio_queue_aio_set_host_notifier_handler, and fixes > a possible race that could happen when passing assign=false to > virtio_queue_aio_set_host_notifier_handler. > > Signed-off-by: Paolo Bonzini > --- > hw/block/dataplane/virtio-blk.c | 7 +++---- > hw/scsi/virtio-scsi-dataplane.c | 12 ++++-------- > hw/virtio/virtio.c | 19 ++++--------------- > include/hw/virtio/virtio.h | 6 ++---- > 4 files changed, 13 insertions(+), 31 deletions(-) Reviewed-by: Cornelia Huck