From: "Nicholas A. Bellinger" Subject: Re: [PATCH-v3 4/9] vhost/scsi: Add ANY_LAYOUT iov -> sgl mapping prerequisites Date: Wed, 04 Feb 2015 00:48:40 -0800 Message-ID: <1423039720.28700.2.camel@haakon3.risingtidesystems.com> References: <1422945003-24538-1-git-send-email-nab@daterainc.com> <1422945003-24538-5-git-send-email-nab@daterainc.com> <20150203093222.GI2830@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: "Nicholas A. Bellinger" , target-devel , linux-scsi , kvm-devel , Paolo Bonzini , Al Viro , Christoph Hellwig To: "Michael S. Tsirkin" Return-path: In-Reply-To: <20150203093222.GI2830@redhat.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, 2015-02-03 at 11:32 +0200, Michael S. Tsirkin wrote: > On Tue, Feb 03, 2015 at 06:29:58AM +0000, Nicholas A. Bellinger wrote: > > From: Nicholas Bellinger > > > > This patch adds ANY_LAYOUT prerequisites logic for accepting a set of > > protection + data payloads via iov_iter. Also includes helpers for > > calcuating SGLs + invoking vhost_scsi_map_to_sgl() with a known number > > of iovecs. > > > > Required by ANY_LAYOUT processing when struct iovec may be offset into > > the first outgoing virtio-scsi request header. > > > > v2 changes: > > - Clear ->tvc_sgl_count for vhost_scsi_mapal failure > > - Make vhost_scsi_mapal + vhost_scsi_calc_sgls accept max_niov > > - Minor cleanups > > > > v3 changes: > > - Update vhost_scsi_mapal + friends to use iov_iter > > - Move iov_iter sanity checks into vhost_scsi_calc_sgls > > - Convert vhost_scsi_calc_sgls() to iov_iter_npages() > > I guess if this goes through your tree, you can drop these > when applying, but it's best not to assume this, and put > changelog after ---. > Dropped as well.. --nab