All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: target-devel <target-devel@vger.kernel.org>,
	linux-scsi <linux-scsi@vger.kernel.org>,
	Christoph Hellwig <hch@lst.de>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Stefan Hajnoczi <stefanha@gmail.com>
Subject: Re: [PATCH 0/4] target: Add target_submit_cmd_map_mem and convert tcm_loop+tcm_vhost
Date: Tue, 2 Oct 2012 17:00:21 +0200	[thread overview]
Message-ID: <20121002150021.GA4493@redhat.com> (raw)
In-Reply-To: <1349162147-29098-1-git-send-email-nab@linux-iscsi.org>

On Tue, Oct 02, 2012 at 07:15:43AM +0000, Nicholas A. Bellinger wrote:
> From: Nicholas Bellinger <nab@linux-iscsi.org>
> 
> Hi hch & Co,
> 
> This series adds a new target_submit_cmd_map_mem() caller to accept
> pre-allocated SGL memory within the core generic I/O submission path.
> Patch #1 contains the core I/O changes, patch #2 + #4 includes the
> conversion of tcm_loop+tcm_vhost to use this new caller -> drop their
> internal open-coded equivalents using transport_generic_map_mem_to_cmd().
> 
> Patch #3 carries forward a work-around for tcm_loop w/ scsi-generic with
> user-space code that does not zero out it's READ payload buffer + ends
> up passing a payload filled with random data into target core's control CDB
> emulation.  Since we're not using bounce buffers any more for control
> CDB emulation in modern v3.x code, AFAICT tcm_loop still requires this
> extra bit to function properly with some legacy user-space code.
> 
> Regardless, the main I/O path changes end up being very mechnical in
> nature for existing core and fabric code, and has been running as expected
> with fio small-block workloads last hours.
> 
> Please review.
> 
> Thanks Christoph!
> 
> --nab

For the vhost part:

ACK series.

> Nicholas Bellinger (4):
>   target: Add target_submit_cmd_map_mem for SGL fabric memory
>     passthrough
>   tcm_loop: Convert I/O path to use target_submit_cmd_map_mem
>   target: Add TARGET_SCF_MAP_CLEAR_MEM work-around for tcm_loop
>   tcm_vhost: Convert I/O path to use target_submit_cmd_map_mem
> 
>  drivers/target/loopback/tcm_loop.c     |   62 ++-------------
>  drivers/target/target_core_transport.c |  129 ++++++++++++++++++++++++++------
>  drivers/vhost/tcm_vhost.c              |   68 ++++-------------
>  drivers/vhost/tcm_vhost.h              |    8 ++
>  include/target/target_core_base.h      |    2 +
>  include/target/target_core_fabric.h    |    3 +
>  6 files changed, 141 insertions(+), 131 deletions(-)
> 
> -- 
> 1.7.2.5

  parent reply	other threads:[~2012-10-02 14:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-02  7:15 [PATCH 0/4] target: Add target_submit_cmd_map_mem and convert tcm_loop+tcm_vhost Nicholas A. Bellinger
2012-10-02  7:15 ` [PATCH 1/4] target: Add target_submit_cmd_map_mem for SGL fabric memory passthrough Nicholas A. Bellinger
2012-10-02 15:17   ` Christoph Hellwig
2012-10-02 20:49     ` Nicholas A. Bellinger
2012-10-02  7:15 ` [PATCH 2/4] tcm_loop: Convert I/O path to use target_submit_cmd_map_mem Nicholas A. Bellinger
2012-10-02 15:18   ` Christoph Hellwig
2012-10-02  7:15 ` [PATCH 3/4] target: Add TARGET_SCF_MAP_CLEAR_MEM work-around for tcm_loop Nicholas A. Bellinger
2012-10-02 15:21   ` Christoph Hellwig
2012-10-02  7:15 ` [PATCH 4/4] tcm_vhost: Convert I/O path to use target_submit_cmd_map_mem Nicholas A. Bellinger
2012-10-02 12:46   ` Michael S. Tsirkin
2012-10-02 15:00 ` Michael S. Tsirkin [this message]
2012-10-02 15:22 ` [PATCH 0/4] target: Add target_submit_cmd_map_mem and convert tcm_loop+tcm_vhost Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121002150021.GA4493@redhat.com \
    --to=mst@redhat.com \
    --cc=hch@lst.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=nab@linux-iscsi.org \
    --cc=pbonzini@redhat.com \
    --cc=stefanha@gmail.com \
    --cc=target-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.