From: Ian Campbell Subject: Re: Guest knowledge of own domid [was: docs: initial documentation for xenstore paths] Date: Thu, 16 Aug 2012 15:36:54 +0100 Message-ID: <1345127814.30865.11.camel@zakaz.uk.xensource.com> References: <1343657037-28495-1-git-send-email-ian.campbell@citrix.com> <50242583.3010201@tycho.nsa.gov> <1345116486.27489.92.camel@zakaz.uk.xensource.com> <502D04B2.6080203@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <502D04B2.6080203@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel De Graaf Cc: Jean Guyader , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2012-08-16 at 15:33 +0100, Daniel De Graaf wrote: > >> and if two domains are attempting to > >>> set up communication such as V4V or vchan, they need to be able to tell > >>> their peer what domain ID to use. > > > > That's trickier. > > > > I suppose they could rendezvous via /vm/$UUID? Although there has been > > talk of removing that path in the future. > > The /vm/$UUID path isn't currently useful for this, since it doesn't maintain > domain IDs (just names) and doesn't contain writable sub-keys for a domain > to use. I also don't think such a sub-key should be added; it makes more > sense to keep all of a domain's modifiable keys under its home path. > > Perhaps this could be changed to another identifier-to-domid mapping, like > the proposed addition of a location to map name to domid? > > The toolstack would maintain something like: > /local/by-name/$name == domid > /local/by-uuid/$uuid == domid This second one is a bit like the existing /vm/$uuid/domid. I think I would go with: /local/by-name/$name == /local/domain/$domid /local/by-uuid/$uuid == /local/domain/$domid though, So that you can just read it and use it without interpreting it. > /local/domain/$domid/name - same as existing > /local/domain/$domid/uuid - ? maybe unneeded, as it's available from Xen. Is it available for other domains via xen, or just yourself? Ian.