All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Juergen Gross <jgross@suse.com>
Cc: Olaf Hering <olaf@aepfle.de>, Wei Liu <wei.liu2@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	George Dunlap <george.dunlap@eu.citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Chunyan Liu <cyliu@suse.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v5 3/5] libxl: add support for vscsi
Date: Fri, 15 May 2015 10:46:50 +0100	[thread overview]
Message-ID: <1431683210.8943.51.camel@citrix.com> (raw)
In-Reply-To: <5555BDCF.1050001@suse.com>

On Fri, 2015-05-15 at 11:35 +0200, Juergen Gross wrote:
> On 05/15/2015 10:47 AM, Ian Campbell wrote:
> > On Fri, 2015-05-15 at 07:58 +0200, Olaf Hering wrote:
> >> On Fri, May 15, Jürgen Groß wrote:
> >>
> >>> Multi-LUN devices do exist and they are required to be presented as
> >>> those to the guest.
> >>
> >> Ok, this means we need the bus concept. I will see if the API for
> >> add/remove can be changed that only devices get passed to the libxl.
> >
> > Does a multi-LUN device require it's own bus or something?
> >
> > Or do the LUN numbers need to be passed through to the guest because
> > things get upset otherwise?
> >
> > IOW why does multi-LUN imply multi-bus, and even if so why does that
> > need to be exposed to the user?
> 
> These are e.g. RAID-systems or tape libraries. In most cases one LUN
> is a control LUN via which the other LUNs can be configured and/or
> administrated. This implies that all of those LUNs have to share the
> same target and they need to have the same LUN numbers in the guest as
> on the real device.

That makes sense, thanks.

So it seems we do need to expose some concept of the bus itself to
users.

My preference would be for the API for such devices (currently USB and
PVSCSI) to have broadly speaking the same shape, much like how the API
for the existing "busless" devices all look mostly the same.

(NB: Lets ignore the fact for now that PCI is in the wrong bucket...)

I'd like to start with seeing an expanded version of the comment in
libxl.h which begins:

/*
 * Devices
 * =======

which covers this new style API alongside the existing one and sets out
the expected pattern of naming (both struct and function) in the same
way.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-05-15  9:46 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 13:28 [PATCH v5 0/5] libbxl: add support for pvscsi, iteration 5 Olaf Hering
2015-05-06 13:28 ` [PATCH v5 1/5] vscsiif.h: fix WWN notation for p-dev property Olaf Hering
2015-05-13 14:11   ` Ian Campbell
2015-05-06 13:28 ` [PATCH v5 2/5] docs: add vscsi to xenstore-paths.markdown Olaf Hering
2015-05-13 14:12   ` Ian Campbell
2015-05-06 13:28 ` [PATCH v5 3/5] libxl: add support for vscsi Olaf Hering
2015-05-13 14:23   ` Ian Campbell
2015-05-15  6:29     ` Olaf Hering
2015-05-13 14:44   ` Ian Campbell
2015-05-13 15:12     ` Ian Campbell
2015-05-13 17:31       ` Olaf Hering
2015-05-15  4:11         ` Jürgen Groß
2015-05-15  5:58           ` Olaf Hering
2015-05-15  8:47             ` Ian Campbell
2015-05-15  9:35               ` Juergen Gross
2015-05-15  9:46                 ` Ian Campbell [this message]
2015-05-15  9:48                   ` Ian Campbell
2015-05-13 17:56       ` George Dunlap
2015-05-13 15:24     ` Olaf Hering
2015-05-06 13:28 ` [PATCH v5 4/5] vscsiif.h: add some notes about xenstore layout Olaf Hering
2015-05-13 14:14   ` Ian Campbell
2015-05-06 13:28 ` [PATCH v5 5/5] Scripts to create and delete xen-scsiback nodes in Linux target framework Olaf Hering
2015-05-13 14:18   ` Ian Campbell
2015-05-13 14:37     ` Olaf Hering

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=1431683210.8943.51.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=cyliu@suse.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jgross@suse.com \
    --cc=olaf@aepfle.de \
    --cc=stefano.stabellini@eu.citrix.com \
    --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.