From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuqCK-0007qJ-1h for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:46:20 -0400 Received: from [140.186.70.92] (port=51550 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuqCE-0007pN-Sl for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:46:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuqC8-0005aW-6F for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:46:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44882) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuqC7-0005aA-U9 for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:46:08 -0400 Date: Thu, 25 Mar 2010 18:42:31 +0200 From: "Michael S. Tsirkin" Message-ID: <20100325164231.GC16506@redhat.com> References: <1269497376-21903-1-git-send-email-cam@cs.ualberta.ca> <4BAB30EE.4020509@redhat.com> <8286e4ee1003250924q7cca5e71u8b8b7c6d8b785eb8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <8286e4ee1003250924q7cca5e71u8b8b7c6d8b785eb8@mail.gmail.com> Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] Re: [PATCH v3 1/1] Shared memory uio_pci driver List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cam Macdonell Cc: Avi Kivity , kvm@vger.kernel.org, qemu-devel@nongnu.org On Thu, Mar 25, 2010 at 10:24:20AM -0600, Cam Macdonell wrote: > On Thu, Mar 25, 2010 at 3:46 AM, Avi Kivity wrote: > > On 03/25/2010 08:09 AM, Cam Macdonell wrote: > >> > >> This patch adds a driver for my shared memory PCI device using the u= io_pci > >> interface. =A0The driver has three memory regions. =A0The first memo= ry region > >> is for > >> device registers for sending interrupts. The second BAR is for recei= ving > >> MSI-X > >> interrupts and the third memory region maps the shared memory. =A0Th= e device > >> only > >> exports the first and third memory regions to userspace. > >> > >> This driver supports MSI-X and regular pin interrupts. =A0Currently,= the > >> number of > >> MSI vectors is set to 4 which could be increased, but the driver wil= l work > >> with > >> fewer vectors. =A0If MSI is not available, then regular interrupts w= ill be > >> used. > >> > > > > There is now a generic PCI 2.3 driver that can handle all PCI devices= . =A0It > > doesn't support MSI, but if we add MSI support then it can be used wi= thout > > the need for a specialized driver. >=20 > Agreed, I'd be happy to use the generic driver if MSI is there. What > would MSI support for UIO look like? An array of "struct uio_irq" for > the different vectors? >=20 > Cam My idea was to supply a way to bind eventfd to a vector. > > > > -- > > error compiling committee.c: too many arguments to function > > > >