All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH] xenbus: Fix loopback event channel assuming domain 0
Date: Thu, 13 Oct 2011 14:24:26 -0400	[thread overview]
Message-ID: <20111013182426.GG15499@phenom.oracle.com> (raw)
In-Reply-To: <1318497874.21903.812.camel@zakaz.uk.xensource.com>

On Thu, Oct 13, 2011 at 10:24:34AM +0100, Ian Campbell wrote:
> > >>  but
> > >> the only Linux change required for the second case is the posted fix to the
> > >> loopback event channel.
> > > 
> > > Unless dom0 is also running Linux? In which case it has no way to talk
> > > to the xenstored in the second domain?
> > 
> > Correct; I am not addressing this problem as dom0 is not running Linux here.
> 
> Sure, my concern was that we don't paint ourselves into a corner wrt
> future moves in this direction. I think I'm now convinced that this
> isn't the case and that everything is fine (thanks!).
> 
> > The other patches you pointed to do address that possibility with the ioctl,
> > which seems a good solution if you want to also run Linux in dom0
> 
> Agreed, I think the ioctl path will fit into your
> "xenstored_local_init()" path just the same as it fits into the current
> code.
> 
> > > How does the xenstored running in the second domain get the necessary
> > > page/evtchn numbers to allow it to communicate with dom0?
> > 
> > In my setup, it doesn't ever communicate with dom0 as dom0 dies once it
> > has set up the boot domains. For a more general case, the page/evtchn
> > numbers could be passed in a normal introduce message if they are made
> > available outside dom0 (perhaps by command-line parameters or via another
> > mechanism like v4v).
> 
> That rings a bell -- I think Deigo had them on the xenstored domain
> command line.
> 
> > > I assume it is guaranteed that xen_start_info->store_evtchn == 0 (and
> > > presumably xen_start_info->store_mfn == 0) for the real dom0?
> > 
> > Yes; the start_info page is zeroed prior to filling it in for dom0, and
> > these fields are not filled in.
> 
> Great.
> 
> The representation of your changes which diff chose was not terribly
> helpful for seeing the trees in the woods but I applied it and reviewed
> the result and it looks ok to me.

Daniel,

Could you please repost these two patches with Ian's Reviewed-by and rebase
it on top of 3.1-rc9 please?

  reply	other threads:[~2011-10-13 18:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05 14:28 [PATCH] xenbus: Fix loopback event channel assuming domain 0 Daniel De Graaf
2011-10-06 17:53 ` Ian Jackson
2011-10-06 18:32   ` Daniel De Graaf
2011-10-07  7:52     ` Ian Campbell
2011-10-07 16:37       ` Daniel De Graaf
2011-10-10 12:54         ` Ian Campbell
2011-10-11 14:52           ` Daniel De Graaf
2011-10-12 16:32             ` Ian Campbell
2011-10-12 18:47               ` Daniel De Graaf
2011-10-13  9:24                 ` Ian Campbell
2011-10-13 18:24                   ` Konrad Rzeszutek Wilk [this message]
2011-10-13 20:07                     ` [PATCH 1/2] " Daniel De Graaf
2011-10-13 20:07                       ` [PATCH 2/2] xenbus: don't rely on xen_initial_domain to detect local xenstore 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=20111013182426.GG15499@phenom.oracle.com \
    --to=konrad.wilk@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=xen-devel@lists.xensource.com \
    /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.