[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] xenstore and "my domid" on hvm guest
I think xenstore accesses in a domU have a 'current working directory' of /local/domain/<domid>/. What happens if you try accesses without an initial / in the path? -- Keir On 21/5/08 21:03, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote: > It appears that if an hvm guest has /proc/xen/xenbus, the > xenstore-* tools can be made to work inside this guest. > For example, inside an hvm guest which (according to > "xm list" in domain0) has a domid of 2, I can do: > > # xenstore-ls /local/domain/2 > > and it works fine, whereas: > > # xenstore-ls /local/domain/0 > > fails properly with "Permission denied". > > So I can use xenstore-read and xenstore-write inside the > guest but I need to know "my" domid to do so. > > Is there any way from inside the guest to determine > its domid? Alternately, is there any syntax for the > xenstore tools that allows me to refer to "self"? > > By using xenstore-exists repeatedly marching through the > numerals, I can figure it out, but is there a better > way? > > Thanks, > Dan > > =================================== > Thanks... for the memory > I really could use more / My throughput's on the floor > The balloon is flat / My swap disk's fat / I've OOM's in store > Overcommitted so much > (with apologies to the late great Bob Hope) > _______________________________________________ > Xen-devel mailing list > Xen-devel@xxxxxxxxxxxxxxxxxxx > http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |