All of lore.kernel.org
 help / color / mirror / Atom feed
* Find out if domU's kernel is done loading, from dom0?
@ 2013-03-14 13:52 Razvan Cojocaru
  2013-03-14 13:57 ` Alex Bligh
  0 siblings, 1 reply; 2+ messages in thread
From: Razvan Cojocaru @ 2013-03-14 13:52 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

Hello,

is there any way to figure out if the kernel of a domU guest machine has 
finished loading? I've looked at what xm list prints out and it doesn't 
seem to help much. I've also tried to see what's being printed out by 
code such as:

xc_domain_getinfo(xch, domain_id, 1, &info);

/* ... */

printf("Domain state: %c%c%c%c%c%c%c%c\n",
         info.dying    ? 'd' : '-',
         info.crashed  ? 'c' : '-',
         info.shutdown ? 's' : '-',
         info.paused   ? 'p' : '-',
         info.blocked  ? 'b' : '-',
         info.running  ? 'r' : '-',
         info.hvm      ? 'h' : '-',
         info.debugged ? 'd' : '-');

but that's not been much use either. Is this possible to do (without 
actually inspecting what's going on with the machine myself)?


Thanks,
Razvan Cojocaru

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

* Re: Find out if domU's kernel is done loading, from dom0?
  2013-03-14 13:52 Find out if domU's kernel is done loading, from dom0? Razvan Cojocaru
@ 2013-03-14 13:57 ` Alex Bligh
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Bligh @ 2013-03-14 13:57 UTC (permalink / raw)
  To: Razvan Cojocaru, xen-devel; +Cc: Alex Bligh



--On 14 March 2013 15:52:11 +0200 Razvan Cojocaru <rzvncj@gmail.com> wrote:

> is there any way to figure out if the kernel of a domU guest machine has
> finished loading? I've looked at what xm list prints out and it doesn't
> seem to help much. I've also tried to see what's being printed out by
> code such as:

In HVM at least I think this is largely unknowable.

A particularly good heuristic would be to look at the disk transfer stats.
The kernel itself will only read the partition table on each device IIRC.

-- 
Alex Bligh

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

end of thread, other threads:[~2013-03-14 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-14 13:52 Find out if domU's kernel is done loading, from dom0? Razvan Cojocaru
2013-03-14 13:57 ` Alex Bligh

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.