From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:39508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tw9EZ-0005Vt-5T for qemu-devel@nongnu.org; Fri, 18 Jan 2013 05:31:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tw9EU-0000GR-Dj for qemu-devel@nongnu.org; Fri, 18 Jan 2013 05:31:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:30260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tw9EU-0000GH-7O for qemu-devel@nongnu.org; Fri, 18 Jan 2013 05:31:34 -0500 Date: Fri, 18 Jan 2013 09:46:04 +0100 From: Stefan Hajnoczi Message-ID: <20130118084604.GB17127@stefanha-thinkpad.redhat.com> References: <1358419481-22728-1-git-send-email-mjt@msgid.tls.msk.ru> <20130117130615.GB6830@stefanha-thinkpad.redhat.com> <50F801C9.6000909@msgid.tls.msk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50F801C9.6000909@msgid.tls.msk.ru> Subject: Re: [Qemu-devel] [PATCH v2] win32-aio: use iov utility functions instead of open-coding them List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: Kevin Wolf , pbonzini@redhat.com, qemu-devel@nongnu.org On Thu, Jan 17, 2013 at 05:51:05PM +0400, Michael Tokarev wrote: > 17.01.2013 17:06, Stefan Hajnoczi wrote: > >On Thu, Jan 17, 2013 at 02:44:41PM +0400, Michael Tokarev wrote: > >>We have iov_from_buf() and iov_to_buf(), use them instead of > >>open-coding these in block/win32-aio.c > > > >Please use qemu_iovec_from_buf() and qemu_iovec_to_buf() since we're > >operating on a QEMUIOVector. > > I'd remove qemu_iovec_{from,to}_buf() completely at this point > due to their trivialness and almost no gain in usage as polluting > the namespace (having too many trivial utility functions isn't > good). Right now these are only used in one place - in > hw/dataplane/virtio-blk.c . I like them because it makes the calling code nicer to read. It saves us from pulling apart the QEMUIOVector struct. But it's not a big deal to me. I can merge this version of the patch. Stefan