From: Christoph Hellwig Subject: Re: linux-aio usable? Date: Tue, 9 Mar 2010 09:12:33 -0500 Message-ID: <20100309141233.GA27443@infradead.org> References: <4B94BF05.20609@redhat.com> <4B9559DA.8000407@msgid.tls.msk.ru> <4B955BD7.1010508@msgid.tls.msk.ru> <4B961003.9010807@redhat.com> <4B96128F.10608@msgid.tls.msk.ru> <4B961D7D.20107@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Michael Tokarev , Bernhard Schmidt , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:57400 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751179Ab0CIOMt (ORCPT ); Tue, 9 Mar 2010 09:12:49 -0500 Content-Disposition: inline In-Reply-To: <4B961D7D.20107@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Mar 09, 2010 at 12:05:49PM +0200, Avi Kivity wrote: >> http://thread.gmane.org/gmane.linux.kernel.aio.general/2891 >> >> It's missing compat_ioctl for some of the aio opcodes, namely >> it's PREADV and PWRITE - the only ones used by kvm and the only >> ones missing in kernel. >> >> As far as i can see, current code converts the iocb array just >> fine, but does not touch iovec array used with p{read,write}v. >> > > Yikes, looks pretty bad. No need for compat_ioctl handlers as there are no ioctls involved in aio, we just need better compat versions of io_submit, which by itself is a bit of an ioctl-like multiplexer. Adding the vector compat might be a bit messy, but shouldn't be too hard given that we already deal with this for native (p)readv/(p)writev.