All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Wei Liu <wei.liu2@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v8 3/5] libxl: add support for vscsi
Date: Wed, 17 Feb 2016 12:17:12 +0100	[thread overview]
Message-ID: <20160217111712.GA14513@aepfle.de> (raw)
In-Reply-To: <22211.24830.194740.502651@mariner.uk.xensource.com>

On Tue, Feb 16, Ian Jackson wrote:

> Olaf Hering writes ("Re: [PATCH v8 3/5] libxl: add support for vscsi"):
> > On Mon, Feb 15, Ian Jackson wrote:
> > > One reason you might define a virtual controller with no devices yet
> > > is so that you have a stable and pre-expected device path for any
> > > actual targets you choose to hotplug later.
> > 
> > Would it be acceptable to reuse the devid as the "group index"?
> > The various vdev in vscsi=['pdev,vdev'] will be assigned to the same
> > vscsictrl if the host part in host:chn:target:lun matches. Right now an
> > empty vscsictrl has no property to store the "host" part. This could be
> > handled by either reusing devid, or by introducing a new xenstore
> > property such as "libxl_vscsictrl_index". The value itself has no
> > meaning other than being an index or label.
> 
> I haven't been following this design in detail, but: why is the
> vscictrl `host' number not part of the xenstore path for the
> controller, which in turn contains the devices ?

Thats exactly what I'm asking, see patch #4 of this series. Each
libxl__device has a devid, which is essentially just an unique counter.
A vscsictrl is a libxl__device, a vscsidev is something below a
vscsictrl. To describe which vscsidev belongs to which vscsictrl the
hctl notation is used. The frontend uses 'ctl', the toolstack 'h'.
The hctl is stored in vscsi-devs/N/v-dev. An empty vscsictrl has no
vscsidev and as a result no 'v-dev' to indicate which 'h' it represents.

During scsi-attach the code has to collect a list of existing
vscsictrls. If an existing vscslctrl with the requested group number 'h'
exists its clear where the new vscsidev belongs to. Otherwise a new
empty vscsictrl has to be created. It needs some property to hold 'h'.
This can be either the devid, or a new xenstore property.


I will use a new xenstore property.

Olaf

  reply	other threads:[~2016-02-17 11:17 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-11 15:43 [PATCH v8 0/5] libbxl: add support for pvscsi, iteration 8 Olaf Hering
2016-02-11 15:43 ` [PATCH v8 1/5] vscsiif.h: fix WWN notation for p-dev property Olaf Hering
2016-02-12 17:28   ` Wei Liu
2016-02-11 15:43 ` [PATCH v8 2/5] docs: add vscsi to xenstore-paths.markdown Olaf Hering
2016-02-12 17:28   ` Wei Liu
2016-02-11 15:43 ` [PATCH v8 3/5] libxl: add support for vscsi Olaf Hering
2016-02-12 17:27   ` Wei Liu
2016-02-12 18:24     ` Olaf Hering
2016-02-15 15:16       ` Wei Liu
2016-02-15 15:24         ` Olaf Hering
2016-02-15 15:52           ` Wei Liu
2016-02-15 17:09         ` Ian Jackson
2016-02-16 15:23           ` Olaf Hering
2016-02-16 17:48             ` Ian Jackson
2016-02-17 11:17               ` Olaf Hering [this message]
2016-02-11 15:43 ` [PATCH v8 4/5] vscsiif.h: add some notes about xenstore layout Olaf Hering
2016-02-12 17:28   ` Wei Liu
2016-02-11 15:43 ` [PATCH v8 5/5] Scripts to create and delete xen-scsiback nodes in Linux target framework Olaf Hering
2016-02-12 17:28   ` Wei Liu
2016-02-12 18:36     ` Olaf Hering
2016-02-15  5:51       ` Juergen Gross

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=20160217111712.GA14513@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --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.