From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NvnHi-0007Ub-RR for qemu-devel@nongnu.org; Sun, 28 Mar 2010 03:51:51 -0400 Received: from [140.186.70.92] (port=34082 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NvnHc-0007Ts-TB for qemu-devel@nongnu.org; Sun, 28 Mar 2010 03:51:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NvnHY-0001LF-AU for qemu-devel@nongnu.org; Sun, 28 Mar 2010 03:51:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6333) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NvnHY-0001Kz-3B for qemu-devel@nongnu.org; Sun, 28 Mar 2010 03:51:40 -0400 Date: Sun, 28 Mar 2010 10:47:54 +0300 From: "Michael S. Tsirkin" Message-ID: <20100328074754.GA21749@redhat.com> References: <1269497376-21903-1-git-send-email-cam@cs.ualberta.ca> <4BAB30EE.4020509@redhat.com> <8286e4ee1003250924q7cca5e71u8b8b7c6d8b785eb8@mail.gmail.com> <4BAB90BB.5030401@redhat.com> <8286e4ee1003260914u5e6ceee2pf0c00590de182fb6@mail.gmail.com> <4BAE44F2.20801@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BAE44F2.20801@redhat.com> 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: Avi Kivity Cc: Cam Macdonell , qemu-devel@nongnu.org, kvm@vger.kernel.org On Sat, Mar 27, 2010 at 08:48:34PM +0300, Avi Kivity wrote: > On 03/26/2010 07:14 PM, Cam Macdonell wrote: >> >>> I'm not familiar with the uio internals, but for the interface, an ioctl() >>> on the fd to assign an eventfd to an MSI vector. Similar to ioeventfd, but >>> instead of mapping a doorbell to an eventfd, it maps a real MSI to an >>> eventfd. >>> >> uio will never support ioctls. > > Why not? > >> Maybe irqcontrol could be extended? >> > > What's irqcontrol? uio accepts 32 bit writes to the char device file. We can encode the fd number there, and use the high bit to signal assign/deassign. > -- > Do not meddle in the internals of kernels, for they are subtle and quick to panic.