All of lore.kernel.org
 help / color / mirror / Atom feed
* xm-test domain creation delay
@ 2005-11-14 15:48 Ewan Mellor
  2005-11-14 16:00 ` Dan Smith
  0 siblings, 1 reply; 10+ messages in thread
From: Ewan Mellor @ 2005-11-14 15:48 UTC (permalink / raw)
  To: Xen-devel

Here's an idea for xm-test.  Instead of waiting a full 20 seconds for the
guest domain to come up, we could instead write to the store from inside the
guest.

The easiest way to do this would be with the command line tools xenstore-read
and xenstore-write.  If you use these tools without the -s option, this should
mean that they write using the domain's implicit root, so if you don't use a
path with a / at the front, then the path will be unique per-domain.

All we would have to do is arrange so that the last thing that the busybox
guest did when it has booted up is to write a node xm-test/booted=1 or
something, and then the xm-test application could register a watch for that
path (i.e. /local/domain/<domid>/xm-test/booted), and would then be able to
detect when the domain was ready.  This should be a lot quicker than waiting
for a full 20 seconds each time, so the test should run a lot quicker in
total.

Thoughts anyone?

Ewan.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: xm-test domain creation delay
@ 2005-11-14 16:58 Ian Pratt
  2005-11-15  3:05 ` Anthony Liguori
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Pratt @ 2005-11-14 16:58 UTC (permalink / raw)
  To: Ewan Mellor, Dan Smith; +Cc: Xen-devel

 > > Right, which is why I asked if this sort of thing would be 
> needed in a 
> > generic sense.
> 
> Yes, it would be nice for more general cases, but that of 
> course means controlling the guest environment, and that 
> would mean more interaction with distro-specific aspects than 
> I personally would like to take on at the moment.
> It's not scary when we're doing it for xm-test, because we do 
> control that environment, but doing it for general guests is 
> more fiddly.  However, I'm sure somebody somewhere will want 
> to know when the guest is actually booted, as opposed to 
> merely started, and writing to xenstore seems like a good way 
> to go about it.

It's arguable that having a irtual filesystem inplemented in the kernel
for accessing xenstore would be good. Ideally, it would need to support
mkdir and creating new files which is slightly tricky. Allowing
read/write of existing nodes should be straightforward building on sys
or proc.

Ian

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

end of thread, other threads:[~2005-11-15  3:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 15:48 xm-test domain creation delay Ewan Mellor
2005-11-14 16:00 ` Dan Smith
2005-11-14 16:10   ` Ewan Mellor
2005-11-14 16:26     ` Sean Dague
2005-11-14 16:28     ` Dan Smith
2005-11-14 16:41       ` Ewan Mellor
2005-11-14 16:38   ` Nivedita Singhvi
2005-11-14 16:43     ` Nivedita Singhvi
  -- strict thread matches above, loose matches on Subject: below --
2005-11-14 16:58 Ian Pratt
2005-11-15  3:05 ` Anthony Liguori

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.