Received: from eggs.gnu.org ([208.118.235.92]:58176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvpsC-0006Tk-8A for qemu-devel@nongnu.org; Thu, 17 Jan 2013 08:51:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvps3-0006xH-ES for qemu-devel@nongnu.org; Thu, 17 Jan 2013 08:51:15 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:49885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvps3-0006xA-73 for qemu-devel@nongnu.org; Thu, 17 Jan 2013 08:51:07 -0500 Message-ID: <50F801C9.6000909@msgid.tls.msk.ru> Date: Thu, 17 Jan 2013 17:51:05 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1358419481-22728-1-git-send-email-mjt@msgid.tls.msk.ru> <20130117130615.GB6830@stefanha-thinkpad.redhat.com> In-Reply-To: <20130117130615.GB6830@stefanha-thinkpad.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Stefan Hajnoczi Cc: Kevin Wolf , pbonzini@redhat.com, qemu-devel@nongnu.org 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 . If not, we can at least inline them. Thanks, /mjt