All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Olaf Hering <olaf@aepfle.de>, Wei Liu <wei.liu2@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Chun Yan Liu <cyliu@suse.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	Ian Jackson <ian.jackson@citrix.com>
Subject: Re: [PATCH RFC v1] libxl: Introduce a template for devices with a controller
Date: Wed, 27 May 2015 12:09:30 +0200	[thread overview]
Message-ID: <556597DA.6090306@suse.com> (raw)
In-Reply-To: <CAFLBxZZWu4MQjrFsgTj2ooK8vJ39BN6fyM6mtS4GkRL-Kevc+g@mail.gmail.com>

George,

I'm on vacation this and the next week with only limited email access.
So please don't expect fast reaction on any further questions during
this time. :-)

On 05/26/2015 07:56 PM, George Dunlap wrote:
> On Fri, May 22, 2015 at 5:21 AM, Juergen Gross <jgross@suse.com> wrote:
>> On 05/21/2015 07:07 PM, George Dunlap wrote:
>>>
>>> We have several outstanding patch series which add devices that have
>>> two levels: a controller and individual devices attached to that
>>> controller.
>>>
>>> In the interest of consistency, this patch introduces a section that
>>> sketches out a template for interfaces for such devices.
>>>
>>> Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
>>> ---
>>> CC: Ian Campbell <ian.campbell@citrix.com>
>>> CC: Ian Jackson <ian.jackson@citrix.com>
>>> CC: Wei Liu <wei.liu2@citrix.com>
>>> CC: Juergen Gross <jgross@suse.com>
>>> CC: Chun Yan Liu <cyliu@suse.com>
>>> CC: Olaf Hering <olaf@aepfle.de>
>>>
>>> So, this is definitely RFC -- I tried to spec things out in a way that
>>> made sense, but I often just chose something that I thought would be a
>>> sensible starting point for discussion.
>>>
>>> This spec looks a lot more like the PVUSB spec than the PVSCSI spec,
>>> in part because I think the PVUSB spec has already had a lot more
>>> thought that's gone into it.
>>>
>>> A couple of random points to discuss:
>>>
>>> * Calling things "controllers", using <type>ctrl for the device name,
>>>     and using "ctrl" as the field name for the devid of the controller
>>>     in the individual devices.
>>
>>
>> Hmm, what about "device group" (<type>devgoup)? In the scsi world
>> "controller" would be one level higher in the hierarchy. And the scsi
>> controller is at least visible in the configuration syntax "h:c:t:l".
>> Using "controller" for the "c" in this item and for the "t" internally
>> could lead to confusion.
>
> OK, so I looked it up[1] and the full address seems to be:
> * adapter number / host
> * channel number / bus
> * id number / target
> * LUN
>
> In which case, "controller" would correspond to "adapter / host", right?
>
> In the vscsi world, what levels of what can you make?  I know you
> mentioned before that some devices have multiple LUNs, and those need
> to be grouped together, with the same LUNs as they do on real
> hardware, to work properly -- is that right?

Not all of the devices have this requirement, but some.

> The USB case actually has something somewhat similar:
> * USB controller
> * USB bus
> * USB device
> * USB function
>
> So far, there's not really a controller/bus distinction: each
> controller has exactly one bus.  When we assign a USB device to a bus,
> we automatically go through and assign each function fo that device
> individually.
>
> Would it make sense to treat vscsi the same way -- i.e., to make a
> "bus", and then attach "targets"s to it, and have the LUNs for any
> given target automatically assigned when the target is assigned?

As long as it is still possible to assign individual LUNs as well.
If dom0 is controlling e.g. a RAID system you might want to assign
one LUN of a target to domU A and one LUN of the same target to domU B.


Juergen

  reply	other threads:[~2015-05-27 10:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 17:07 [PATCH RFC v1] libxl: Introduce a template for devices with a controller George Dunlap
2015-05-21 17:11 ` George Dunlap
2015-05-21 17:28 ` George Dunlap
2015-05-22  4:21 ` Juergen Gross
2015-05-26 17:56   ` George Dunlap
2015-05-27 10:09     ` Juergen Gross [this message]
2015-05-27 13:57       ` George Dunlap
2015-06-17 11:33         ` Juergen Gross
2015-05-27 14:40 ` Ian Campbell
2015-06-17 11:06 ` Ian Campbell
2015-06-17 11:28   ` Juergen Gross
2015-06-17 13:14     ` Ian Campbell
2015-06-18  5:55       ` Olaf Hering
2015-06-18  5:18   ` Chun Yan Liu

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=556597DA.6090306@suse.com \
    --to=jgross@suse.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=cyliu@suse.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@citrix.com \
    --cc=olaf@aepfle.de \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.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.