From: James Smart <James.Smart@Emulex.Com>
To: Jun Kamada <kama@jp.fujitsu.com>
Cc: Steven Smith <steven.smith@eu.citrix.com>,
James Harper <james.harper@bendigoit.com.au>,
xen-devel@lists.xensource.com
Subject: Re: [Patch 0/7] pvSCSI driver
Date: Fri, 14 Mar 2008 15:16:44 -0400 [thread overview]
Message-ID: <47DACF1C.9010007@emulex.com> (raw)
In-Reply-To: <20080312141116.EBC3.EB2C8575@jp.fujitsu.com>
Jun Kamada wrote:
> -----
> 1.) Allow specifying arbitrary mapping between Dom0's SCSI tree and
> Guest's SCSI tree. This includes "lun".
> ( Dom0's IDs [host1:channel1:id1:lun1] --->
> Guest's IDs [host2:channel2:id2:lun2] )
It would really be nice, when considering a model of FC NPIV, or IOV-based
ports, where you allow a model where the mapping can be stronger and done
in a single step. E.g. map everything from a particular scsi_host into the DomU.
Note: I'm not lobbying for a change in emulation, but rather trying to automate
the arbitrary and individual mappings when there is a higher level (relative to
the scsi tree) association to the DomU.
Note: given that channel # is specific to the host#,
and id # is specific to the channel #,
and lun # is specific to the id #
there's no real reason why they couldn't be the same, or at least
overlap, with the Dom0 values. It's all up to whomever is doing
the transformation or emulation.
> 2.) Guest has responsibility to have mapping and transform between
> Dom0's IDs and Guest's IDs. It depends on guest OS's implementation
> which level(e.g. only "host" or all of 4-tuples or no-transform) of
> mapping/transformation will be supported.
> If guest decides to support lun transformation and in case of
> "lun1 != lun2", the guest's frontend driver should maintain LUN
> value in CDB data structure.
Wow. This seems odd. In my mind, this really is based on the abstraction
you choose between the DomU and Dom0. You're either exporting SCSI Disks,
SCSI targets, or SCSI Hosts. Each of these dictates differences in the way
the emulation is done.
I would have thought the translation always occurs on the Dom0 side.
> 3.) As for REPORT LUNS command, Dom0 performs munging.
This is in line with my last statement - it's on the Dom0 side.
> 4.) Dom0 accepts only LOGICAL UNIT RESET command.
Note: At least for Linux stacks, and I know it's true for older Windows
releases as well, the scsi stacks don't generate LOGICAL UNIT RESETS.
They are either Target Resets or Bus Resets.
> 5.) Of course, the backend driver performs sanity check of IDs that the
> guest already transformed.
And if you're checking it - why are you (the Dom0) managing the transformation ?
Sounds like the work got done twice in your proposal.
-- james
next prev parent reply other threads:[~2008-03-14 19:16 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 10:10 [Patch 0/7] pvSCSI driver Jun Kamada
2008-02-18 12:14 ` James Harper
2008-02-19 2:26 ` Jun Kamada
2008-02-19 2:28 ` James Harper
2008-02-20 3:58 ` James Harper
2008-02-20 5:09 ` Jun Kamada
2008-02-21 2:19 ` James Harper
2008-02-21 3:39 ` James Harper
2008-02-21 4:23 ` Jun Kamada
2008-02-21 5:30 ` James Harper
2008-02-25 1:53 ` Jun Kamada
2008-02-27 11:16 ` Steven Smith
2008-02-28 2:51 ` Jun Kamada
2008-02-28 11:13 ` Steven Smith
2008-02-29 4:47 ` Jun Kamada
2008-03-03 11:38 ` Steven Smith
2008-03-04 7:57 ` Jun Kamada
2008-03-04 13:05 ` Steven Smith
2008-03-05 2:34 ` James Harper
2008-03-05 9:53 ` Jun Kamada
2008-03-05 9:56 ` James Harper
2008-03-05 10:00 ` Jun Kamada
2008-03-06 23:48 ` Dan Magenheimer
2008-03-07 1:20 ` Jun Kamada
2008-03-07 2:55 ` Jun Kamada
2008-03-07 4:31 ` James Harper
2008-03-14 19:04 ` James Smart
2008-03-10 12:00 ` Steven Smith
2008-03-12 6:23 ` Jun Kamada
2008-03-13 14:30 ` Steven Smith
2008-03-17 2:33 ` Jun Kamada
2008-03-17 17:29 ` Steven Smith
2008-03-14 19:16 ` James Smart [this message]
2008-03-17 2:59 ` Jun Kamada
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=47DACF1C.9010007@emulex.com \
--to=james.smart@emulex.com \
--cc=james.harper@bendigoit.com.au \
--cc=kama@jp.fujitsu.com \
--cc=steven.smith@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/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.