From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiHND-0004QC-To for qemu-devel@nongnu.org; Tue, 22 Mar 2016 04:09:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiHNA-00074K-Nj for qemu-devel@nongnu.org; Tue, 22 Mar 2016 04:09:07 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:57486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiHNA-00074F-D3 for qemu-devel@nongnu.org; Tue, 22 Mar 2016 04:09:04 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 22 Mar 2016 08:09:03 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 62E5017D805D for ; Tue, 22 Mar 2016 08:09:35 +0000 (GMT) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2M891jT262620 for ; Tue, 22 Mar 2016 08:09:01 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2M890SM012722 for ; Tue, 22 Mar 2016 02:09:00 -0600 Date: Tue, 22 Mar 2016 09:08:58 +0100 From: Cornelia Huck Message-ID: <20160322090858.0703ddbb.cornelia.huck@de.ibm.com> In-Reply-To: <20160322002433.GC24609@ad.usersys.redhat.com> References: <1458208893-15949-1-git-send-email-cornelia.huck@de.ibm.com> <1458208893-15949-2-git-send-email-cornelia.huck@de.ibm.com> <20160322002433.GC24609@ad.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC 1/6] virtio-bus: common ioeventfd infrastructure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: pbonzini@redhat.com, borntraeger@de.ibm.com, qemu-devel@nongnu.org, stefanha@redhat.com, mst@redhat.com On Tue, 22 Mar 2016 08:24:33 +0800 Fam Zheng wrote: > On Thu, 03/17 11:01, Cornelia Huck wrote: > > diff --git a/include/hw/virtio/virtio-bus.h b/include/hw/virtio/virtio-bus.h > > index 3f2c136..0281cbf 100644 > > --- a/include/hw/virtio/virtio-bus.h > > +++ b/include/hw/virtio/virtio-bus.h > > @@ -71,6 +71,16 @@ typedef struct VirtioBusClass { > > void (*device_unplugged)(DeviceState *d); > > int (*query_nvectors)(DeviceState *d); > > /* > > + * ioeventfd handling: if the transport implements ioeventfd_started, > > + * it must implement the other ioeventfd callbacks as well > > + */ > > + bool (*ioeventfd_started)(DeviceState *d); > > + void (*ioeventfd_set_started)(DeviceState *d, bool started, bool err); > > + bool (*ioeventfd_disabled)(DeviceState *d); > > + void (*ioeventfd_set_disabled)(DeviceState *d, bool disabled); > > + int (*ioeventfd_assign)(DeviceState *d, EventNotifier *notifier, > > + int n, bool assign); > > Maybe we should consider documenting these operations and parameters? Yes, we should :) I just wanted to make sure first that this is the way to go.