virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "Simon Holm Thøgersen" <odie@cs.aau.dk>
Cc: lguest@ozlabs.org, virtualization@lists.linux-foundation.org
Subject: Re: [Lguest] error rebooting lguest
Date: Sat, 11 Aug 2007 12:44:49 +1000	[thread overview]
Message-ID: <1186800289.30899.45.camel@localhost.localdomain> (raw)
In-Reply-To: <1186773617.5652.18.camel@odie>

On Fri, 2007-08-10 at 21:20 +0200, Simon Holm Thøgersen wrote:
> Hey!
> 
> Trying the root disk image
> http://xm-test.xensource.com/ramdisks/initrd-1.1-i386.img
> suggested in Documentation/lguest/lguest.txt, I get the follow trace
> when rebooting the guest. Kernel is 2.6.23-rc2-ge1cf20c1.

Hi Simon,

	Implementing reboot is an interesting project.  It'd be nice to
separate "crash" from "halt" as well.  I think the steps are:

1) Override ative_machine_emergency_restart in paravirt_ops to an
lguest-specific routine.
2) Enhance the LHCALL_CRASH hypercall (and perhaps rename it) to take an
argument that says whether we've crashed, halted, or want to reboot.
Maybe set lg->dead to -EAGAIN for reboot, -EIO for crash, -ENOENT for
halt?
3) Change the launcher appropriately.  For reboot, perhaps we can just
exec ourselves.  For crash, exit with an error code, for halt exit with
0.

Patch welcome!
Rusty.

      reply	other threads:[~2007-08-11  2:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-10 19:20 [Lguest] error rebooting lguest Simon Holm Thøgersen
2007-08-11  2:44 ` Rusty Russell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1186800289.30899.45.camel@localhost.localdomain \
    --to=rusty@rustcorp.com.au \
    --cc=lguest@ozlabs.org \
    --cc=odie@cs.aau.dk \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).