From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH-v3 5/9] vhost/scsi: Add ANY_LAYOUT vhost_virtqueue callback Date: Tue, 3 Feb 2015 16:22:20 +0100 Message-ID: <20150203152220.GA9063@redhat.com> References: <1422945003-24538-1-git-send-email-nab@daterainc.com> <1422945003-24538-6-git-send-email-nab@daterainc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: target-devel , linux-scsi , kvm-devel , Paolo Bonzini , Al Viro , Christoph Hellwig , Nicholas Bellinger To: "Nicholas A. Bellinger" Return-path: Content-Disposition: inline In-Reply-To: <1422945003-24538-6-git-send-email-nab@daterainc.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: kvm.vger.kernel.org > + * copy_from_iter() is modifying the iovecs as copies over > + * req_size bytes into req, so the returned out_iter.iov[0] > + * will contain the correct start + offset of the outgoing > + * WRITE payload, if DMA_TO_DEVICE is set. > + */ Does it, in fact, do this? I thought so too, but Al Viro corrected me that it's not supposed to. -- MST