All of lore.kernel.org
 help / color / mirror / Atom feed
* xenstore documentation
@ 2005-10-03 17:03 Jacob Gorm Hansen
  2005-10-04  6:27 ` Rami Rosen
  0 siblings, 1 reply; 27+ messages in thread
From: Jacob Gorm Hansen @ 2005-10-03 17:03 UTC (permalink / raw)
  To: xen-devel

hi,

it would be extremely useful for me if someone with knowledge of how
the current tools and drivers use Xenstore would be kind enough to
update the Wiki with current information. I have been spending quite a
lot of time trying to get my domU connected to a block device in dom0
using a home-brewed domain creation tool, and I am still at the
'Timeout connecting to device!' stage.

My stragegy has been to log all calls to xs_write() under Xend, and
then replay those same calls with my own tool on a freshly booted
machine, but to no avail. In general things work with Xend, at least
as long as I am not trying to restart xenstored without a reboot.

I have noticed that with the most recent Xen-unstable, the store is
now split into /vm and /local, but there seems to be some overlap,
e.g. UUIDs are in some cases referred from /local even though they
seem to only belong in /vm. Also, the amount of info in the store
seems to be growing to Windows Registry-like proportions, making it
very hard to keep up and the store hard to navigate. Perhaps we could
agree not to write any default settings to the store to save some
space and confusion?

Thanks in advance,
Jacob
--
Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/

^ permalink raw reply	[flat|nested] 27+ messages in thread
* RE: xenstore documentation
@ 2005-10-04 21:47 Neugebauer, Rolf
  0 siblings, 0 replies; 27+ messages in thread
From: Neugebauer, Rolf @ 2005-10-04 21:47 UTC (permalink / raw)
  To: NAHieu, Anthony Liguori; +Cc: Jacob Gorm Hansen, harry, Rami Rosen, xen-devel



> -----Original Message-----
> From: NAHieu [mailto:nahieu@gmail.com]
> Sent: 04 October 2005 19:00
> To: Anthony Liguori
> Cc: Neugebauer, Rolf; Rami Rosen; harry; Jacob Gorm Hansen; xen-
> devel@lists.xensource.com
> Subject: Re: [Xen-devel] xenstore documentation
> 
> On 10/5/05, Anthony Liguori <aliguori@us.ibm.com> wrote:
> > NAHieu wrote:
> >
> > >>or no ;) depending on what you want to do. so for example if you
only
> > >>ever have one backend in the system then you "could" store that
under
> a
> > >>well known name in the store and the frontends can simply read
that.
> > >>you'll also need a place for the BE to watch for FE updates in a
> similar
> > >>fashion.
> > >>
> > >>
> > >>
> > >
> > >Rolf, I am really suprised here: how can BE watch for FE updates?
BE
> > >and FE are in different domain, so they cannot access each other
> > >xenstore tree. (??)
> > >
> > >
> > Yes they can.  Permissions are currently off so technically any
domain
> > can access any other domains tree.
> >
> > When permissions are enabled, the backends will have at least read
> > permission on all the frontend domains.
> >
> 
> If so, I think we can do simply like this to exchange information
> between dom0 & domU:
> 
> - dom0 watch for @introduceDomain to detect the new domU comes up.
> Then dom0 watch for /domU/<device>/{evtchn,grant-ref}
> 
> - domU write evtchn,grant-ref,... to /domU/<device>/{evtchn,grant-ref}
> (better doesnt write it outside its home, like in Rolf's example)
> 
> - dom0 detect the updates, setup evtchn, then start to notify domU via
> this channel. Other data can be written into the share memory (like
> grant-ref above) to exchange information at this step.
> 
> This way is good (if it works - I will try it myself), since we don't
> need to mod xend, which is horrified to many.  Any ideas?

The main problem is that it doesn't work when you have multiple BE in
different domains. Something you can't do at the moment but consider
multiple NICs and device drivers in for them in multiples VMs. Which one
is dealing with it when the front end comes up. How does the FE know
which BE to connect to (ie who to grant access to the shared page to)
etc.

> But like Rolf pointed out, this solution is not good incase we want to
> save/restore(?)

Your approach above might still work with save restore etc. but you
essentially need xend to tell FE and possibly BEs which one to pick if
there are multiples out there. so xend needs to be involved as it is
parsing the VMs config file.

Basically the way it is implement for blk/net/tpm device is the right
way. I was just suggesting that of you want to prototype something you
don't necessarily need to follow this and don't initially need to
modifiy xend.

Rolf

 
> Thanks.
> Hieu
> 
> > Regards,
> >
> > Anthony Liguori
> >
> > >So exactly what did you mean?
> > >
> > >Thanks.
> > >Hieu
> > >
> > >_______________________________________________
> > >Xen-devel mailing list
> > >Xen-devel@lists.xensource.com
> > >http://lists.xensource.com/xen-devel
> > >
> > >
> > >
> >
> >

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2005-10-05 17:22 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-03 17:03 xenstore documentation Jacob Gorm Hansen
2005-10-04  6:27 ` Rami Rosen
2005-10-04 12:20   ` Jacob Gorm Hansen
2005-10-04 12:42     ` harry
2005-10-04 12:48       ` harry
2005-10-04 12:56         ` Jacob Gorm Hansen
2005-10-04 13:17           ` harry
2005-10-04 13:31             ` Jacob Gorm Hansen
2005-10-04 15:05               ` Anthony Liguori
2005-10-04 15:28                 ` Nivedita Singhvi
2005-10-04 15:46                   ` Anthony Liguori
2005-10-04 15:33                 ` Jacob Gorm Hansen
2005-10-04 15:55                   ` Anthony Liguori
2005-10-04 18:13                 ` Jacob Gorm Hansen
2005-10-04 18:20                   ` Anthony Liguori
2005-10-04 22:12                   ` Jacob Gorm Hansen
2005-10-05 17:17                   ` Anthony Liguori
2005-10-05 17:22                     ` Jacob Gorm Hansen
2005-10-04 12:55       ` NAHieu
2005-10-04 13:25         ` harry
2005-10-04 14:42           ` Rolf Neugebauer
2005-10-04 17:24             ` NAHieu
2005-10-04 17:36               ` Rolf Neugebauer
2005-10-04 17:42               ` Anthony Liguori
2005-10-04 18:00                 ` NAHieu
2005-10-04 18:06                   ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2005-10-04 21:47 Neugebauer, Rolf

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.