From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxGKZ-00032i-Lb for qemu-devel@nongnu.org; Thu, 01 Apr 2010 05:04:52 -0400 Received: from [140.186.70.92] (port=35318 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxGKU-0002yZ-SS for qemu-devel@nongnu.org; Thu, 01 Apr 2010 05:04:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxGFG-0003eF-Gi for qemu-devel@nongnu.org; Thu, 01 Apr 2010 04:59:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43523) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxGFG-0003e8-8u for qemu-devel@nongnu.org; Thu, 01 Apr 2010 04:59:22 -0400 Message-ID: <4BB46067.9040209@redhat.com> Date: Thu, 01 Apr 2010 11:59:19 +0300 From: Avi Kivity MIME-Version: 1.0 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> <8286e4ee1003281248k204a5bd4tc48e6ccc755918b@mail.gmail.com> <4BB114AC.9040902@redhat.com> <8286e4ee1003300752n41a5afdbta0b23fc0cb75b99d@mail.gmail.com> In-Reply-To: <8286e4ee1003300752n41a5afdbta0b23fc0cb75b99d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: qemu-devel@nongnu.org, kvm@vger.kernel.org, "Michael S. Tsirkin" On 03/30/2010 05:52 PM, Cam Macdonell wrote: > >> Ah, the usual "ioctls are ugly, go away". >> >> It could be done via sysfs: >> >> $ cat /sys/.../msix/max-interrupts >> 256 >> $ echo 4> /sys/.../msix/allocate >> $ # subdirectories 0 1 2 3 magically appear >> $ # bind fd 13 to msix >> $ echo 13> /sys/.../msix/2/bind-fd >> $ # from now on, msix interrupt 2 will call eventfd_signal() on fd 13 >> >> Call me old fashioned, but I prefer ioctls. >> > Good point. iiuc, the goal relative to ioctls in UIO was to not have > device drivers creating their own device-specific ABIs and drivers > that are just massive switch statements. Having ioctls that support > functions for UIO in general, such as pairing msi vectors to eventfds, > does not go against that goal. > Device specific ioctls are clearly a bad idea for uio. -- error compiling committee.c: too many arguments to function