public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* kvm-29 failing to exit or reboot
@ 2007-07-17  2:19 Charles Duffy
  2007-07-17  3:17 ` [RESOLVED] " Charles Duffy
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Duffy @ 2007-07-17  2:19 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Per subject. Running 2.6.20-gentoo-r6 with the kvm-29 kernel module on
an Intel chip; both host and guest are 64-bit.

The end of the installer I'm trying to test goes like this:
=== snip
+ sync
+ reboot -f
md: stopping all md devices.
Restarting system.
machine restart
=== snip

...and there it sits (eating no CPU time, at least) until I kill the
process. I'm running with -nographic, and "ctrl+a x" [like the other
console commands] is nonresponsive after the child goes into this state
(though it works fine beforehand).

Normally, this wouldn't be particularly annoying -- but since I'm trying
to use qemu scriptably, this means I may need to use an expect script to
monitor output, figure out when the guest is intended to shut down or
reboot, and forcefully kill the process -- not exactly my preferred way
of doing things.

Is this known behavior? If not, is there something I can do to help
diagnose its cause?


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* [RESOLVED] Re: kvm-29 failing to exit or reboot
  2007-07-17  2:19 kvm-29 failing to exit or reboot Charles Duffy
@ 2007-07-17  3:17 ` Charles Duffy
  2007-07-17  8:34   ` Avi Kivity
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Duffy @ 2007-07-17  3:17 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On rereading this post, I find that I forgot to mention my use of
-no-reboot. As I wish the VM to exit on a reboot attempt (and "kvm
--help" documents -no-reboot as "exit instead of rebooting"), I am using
said flag.

If I leave out -no-reboot, "reboot -f" causes kvm to exit rather than
hang. Not the behavior described by the documentation -- but it works!


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

* Re: [RESOLVED] Re: kvm-29 failing to exit or reboot
  2007-07-17  3:17 ` [RESOLVED] " Charles Duffy
@ 2007-07-17  8:34   ` Avi Kivity
  0 siblings, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2007-07-17  8:34 UTC (permalink / raw)
  To: charles-7s4ginpmXnFeoWH0uzbU5w; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Charles Duffy wrote:
> On rereading this post, I find that I forgot to mention my use of
> -no-reboot. As I wish the VM to exit on a reboot attempt (and "kvm
> --help" documents -no-reboot as "exit instead of rebooting"), I am using
> said flag.
>
> If I leave out -no-reboot, "reboot -f" causes kvm to exit rather than
> hang. Not the behavior described by the documentation -- but it works!
>
>   

That's broken.

Can you add printfs() to the pio and mmio code in qemu/qemu-kvm.c and 
see how the guest is trying to reboot?


-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

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

end of thread, other threads:[~2007-07-17  8:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-17  2:19 kvm-29 failing to exit or reboot Charles Duffy
2007-07-17  3:17 ` [RESOLVED] " Charles Duffy
2007-07-17  8:34   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox