All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Olaf Hering <olaf@aepfle.de>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 4/4] libxl: add support for vscsi
Date: Mon, 2 Mar 2015 14:31:06 +0000	[thread overview]
Message-ID: <1425306666.21151.58.camel@citrix.com> (raw)
In-Reply-To: <20150302142040.GA17851@aepfle.de>

On Mon, 2015-03-02 at 15:20 +0100, Olaf Hering wrote:
> On Mon, Mar 02, Olaf Hering wrote:
> 
> > +++ b/tools/libxl/libxl_types.idl
> 
> > +libxl_vscsi_hctl = Struct("vscsi_hctl", [
> > +    ("hst", uint32),
> > +    ("chn", uint32),
> > +    ("tgt", uint32),
> > +    ("lun", uint32),
> > +    ])
> > +
> > +libxl_vscsi_dev = Struct("vscsi_dev", [
> > +    ("vscsi_dev_id",     libxl_devid),
> > +    ("remove",           bool),
> > +    ("p_devname",        string),
> > +    ("pdev",             libxl_vscsi_hctl),
> > +    ("vdev",             libxl_vscsi_hctl),
> > +    ])
> > +
> > +libxl_device_vscsi = Struct("device_vscsi", [
> > +    ("backend_domid",    libxl_domid),
> > +    ("devid",            libxl_devid),
> > +    ("v_hst",            uint32),
> > +    ("vscsi_devs",       Array(libxl_vscsi_dev, "num_vscsi_devs")),
> > +    ("feature_host",     bool),
> > +    ])
> 
> IanC, you made a comment about "vscsi_dev_id" in the pastebin.com
> comment about libxl_vscsi_hctl:
> '- devid is just "devid" in all other places, not "TYPE_dev_id".'

> Its used as <domid>/<vhost>/vscsi-devs/dev-<vscsi_dev_id>/.  What name
> should be used to reference the devices? Also just "devid" even if it
> refers to devices "private" to the vscsi host?

Not sure. PCI uses vdevfn, which by extension would be vdevid here
(assuming I've understood what you are suggesting correctly and
therefore the analogy is valid).

Or could it be the case that there is no need to expose this value to
the user in the first place and libxl could just make up the index
numbers internally? Why would they want to configure it or retrieve it?

Is it actually the same as the offset into the vscsi_devs array?

How is it intended to be different from the vdev field?

Ian.

  reply	other threads:[~2015-03-02 14:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02 10:15 [PATCH 0/4] libbxl: add support for pvscsi, iteration 2 Olaf Hering
2015-03-02 10:15 ` [PATCH 1/4] vscsiif.h: remove reference to WWN Olaf Hering
2015-03-02 10:46   ` Jan Beulich
2015-03-02 10:50     ` Andrew Cooper
2015-03-02 10:55       ` Jürgen Groß
2015-03-02 11:00         ` Andrew Cooper
2015-03-02 10:59       ` Jan Beulich
2015-03-02 10:59   ` Juergen Gross
2015-03-02 14:34     ` Olaf Hering
2015-03-02 14:40       ` Olaf Hering
2015-03-02 14:55         ` Juergen Gross
2015-03-02 10:16 ` [PATCH 2/4] docs: add vscsi to xenstore-paths.markdown Olaf Hering
2015-03-02 10:16 ` [PATCH 3/4] docs: add pvscsi.txt Olaf Hering
2015-03-02 10:49   ` Jan Beulich
2015-03-02 11:04   ` Juergen Gross
2015-03-02 15:14     ` Olaf Hering
2015-03-02 15:35       ` Juergen Gross
2015-03-02 18:24         ` Olaf Hering
2015-03-02 10:16 ` [PATCH 4/4] libxl: add support for vscsi Olaf Hering
2015-03-02 14:20   ` Olaf Hering
2015-03-02 14:31     ` Ian Campbell [this message]
2015-03-02 15:11       ` Olaf Hering
2015-03-02 14:27   ` 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=1425306666.21151.58.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.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.