Received: from eggs.gnu.org ([2001:4830:134:3::10]:50576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMtgp-0000tV-Cq for qemu-devel@nongnu.org; Tue, 12 Jul 2016 05:09:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bMtgl-0004Pq-Gr for qemu-devel@nongnu.org; Tue, 12 Jul 2016 05:09:15 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:49732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bMtgl-0004Pm-7m for qemu-devel@nongnu.org; Tue, 12 Jul 2016 05:09:11 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u6C8x7ij067634 for ; Tue, 12 Jul 2016 05:09:10 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 242wbnwxqw-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 12 Jul 2016 05:09:09 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 12 Jul 2016 10:09:07 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id B5EC01B0805F for ; Tue, 12 Jul 2016 10:10:25 +0100 (BST) Received: from d06av06.portsmouth.uk.ibm.com (d06av06.portsmouth.uk.ibm.com [9.149.37.217]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u6C994RF9961776 for ; Tue, 12 Jul 2016 09:09:04 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 u6C994ZL024853 for ; Tue, 12 Jul 2016 05:09:04 -0400 Date: Tue, 12 Jul 2016 11:09:03 +0200 From: Cornelia Huck In-Reply-To: <1468300800-31256-2-git-send-email-famz@redhat.com> References: <1468300800-31256-1-git-send-email-famz@redhat.com> <1468300800-31256-2-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160712110903.4cca688d.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH 1/6] virtio-bus: Drop "set_handler" parameter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org, kwolf@redhat.com, pbonzini@redhat.com, stefanha@redhat.com, mst@redhat.com On Tue, 12 Jul 2016 13:19:55 +0800 Fam Zheng wrote: > It always equals to assign now. I think this needs further elaboration... > > Signed-off-by: Fam Zheng > Reviewed-by: Stefan Hajnoczi > --- > hw/virtio/virtio-bus.c | 13 ++++++------- > 1 file changed, 6 insertions(+), 7 deletions(-) > > @@ -167,7 +166,7 @@ static int set_host_notifier_internal(DeviceState *proxy, VirtioBusState *bus, > error_report("%s: unable to init event notifier: %d", __func__, r); > return r; > } > - virtio_queue_set_host_notifier_fd_handler(vq, true, set_handler); > + virtio_queue_set_host_notifier_fd_handler(vq, true, true); > r = k->ioeventfd_assign(proxy, notifier, n, assign); > if (r < 0) { > error_report("%s: unable to assign ioeventfd: %d", __func__, r); > @@ -269,7 +268,7 @@ int virtio_bus_set_host_notifier(VirtioBusState *bus, int n, bool assign) > */ > virtio_bus_stop_ioeventfd(bus); > } > - return set_host_notifier_internal(proxy, bus, n, assign, false); > + return set_host_notifier_internal(proxy, bus, n, assign); ...because this changes the behaviour for assign==true. > } > > static char *virtio_bus_get_dev_path(DeviceState *dev)