All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Jackson <Ian.Jackson@eu.citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH RFC/for-4.2?] libxl: Support backend domain ID for disks
Date: Tue, 7 Aug 2012 11:38:59 +0100	[thread overview]
Message-ID: <20512.61507.837455.115256@mariner.uk.xensource.com> (raw)
In-Reply-To: <1344332203.11339.79.camel@zakaz.uk.xensource.com>

Ian Campbell writes ("Re: [PATCH RFC/for-4.2?] libxl: Support backend domain ID for disks"):
> On Mon, 2012-08-06 at 22:51 +0100, Daniel De Graaf wrote:
> > Allow specification of backend domains for disks, either in the config
> > file or via xl block-attach.
> > 
> > A version of this patch was submitted in October 2011 but was not
> > suitable at the time because libxl did not support the "script=" option
> > for disks in libxl. Now that this option exists, it is possible to
> > specify a backend domain without needing to duplicate the device tree of
> > domain providing the disk in the domain using libxl; just specify
> > script=/bin/true (or any more useful script) to prevent the block script
> > from running in the domain using libxl.

Thanks, Daniel!

> Given that this patch was originally posted so long ago, that the
> script= stuff just went in, that driver domains were on the TODO at one
> point (I think) and the relative simplicity of this patch I'm leaning
> towards taking this in 4.2.

The patch looks good to me and it improves a regression compared to
xend, the fixing of which is one of our goals for 4.2.  So I think
this is fine.

> I'm not sure if using libxl in libxlu is a layering violation or not
> (perhaps Ian J has an opinion), but I suppose it is acceptable (the
> alternative is a twisty maze of callbacks).

No, it's not a layering violation.

The only question in my mind was whether the libxl domain config
struct (in the IDL) should contain (perhaps optionally) the name, so
that the lookup is done at a slightly better time, but the result
would not be pretty at all and I think it's better this way.

> If we are going to expose libxl down to libxlu maybe we should go all
> the way and add the ctx to the XLU_Config?

Yes, I think that would be better.

Ian.

  reply	other threads:[~2012-08-07 10:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-06 21:51 [PATCH RFC/for-4.2?] libxl: Support backend domain ID for disks Daniel De Graaf
2012-08-07  9:36 ` Ian Campbell
2012-08-07 10:38   ` Ian Jackson [this message]
2012-08-07 13:56   ` Daniel De Graaf
2012-08-31  8:04 ` Ian Campbell
2012-09-05 17:05   ` [PATCH v2] " Daniel De Graaf
2012-09-06  7:26     ` Ian Campbell
2012-09-06 12:24       ` Daniel De Graaf
2012-10-09 15:23     ` Ian Jackson
2012-10-09 18:41       ` Daniel De Graaf

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=20512.61507.837455.115256@mariner.uk.xensource.com \
    --to=ian.jackson@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --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.