From: Tomasz Chmielewski <mangoo@wpkg.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
Date: Tue, 10 Jun 2008 15:38:59 +0200 [thread overview]
Message-ID: <484E83F3.1020005@wpkg.org> (raw)
In-Reply-To: <20080610131815.GD28565@shareable.org>
Jamie Lokier schrieb:
(...)
>> When I want to halt the guest system, it shutdowns just fine up to:
>>
>> Will now halt.
>> Synchronizing SCSI cache for disk sda:
>> System halted.
>>
>> But the qemu-system-arm process continues to run.
>>
>> Is there a workaround to that? I would expect qemu process to exit as well.
>
> Try poweroff instead of halt.
No, it doesn't make a difference.
Note that it shutdowns fine (including qemu process) when the guest is x86.
With an ARM guest, qemu keeps running. Perhaps the guest needs something
in the kernel? I added APM, but it didn't make a difference.
When the guest is halted, this is what I get when I strace the
qemu-system-arm process (endlessly in a loop):
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [])
clock_gettime(CLOCK_MONOTONIC, {7954727, 280679359}) = 0
clock_gettime(CLOCK_MONOTONIC, {7954727, 280821359}) = 0
clock_gettime(CLOCK_MONOTONIC, {7954727, 280954359}) = 0
clock_gettime(CLOCK_MONOTONIC, {7954727, 281085359}) = 0
clock_gettime(CLOCK_MONOTONIC, {7954727, 281215359}) = 0
timer_gettime(0, {it_interval={0, 0}, it_value={0, 0}}) = 0
timer_settime(0, 0, {it_interval={0, 0}, it_value={0, 2381000}}, NULL) = 0
select(8, [5 7], [], [], {0, 0}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {7954727, 281824359}) = 0
clock_gettime(CLOCK_MONOTONIC, {7954727, 281955359}) = 0
select(8, [5 7], [], [], {0, 10000}) = ? ERESTARTNOHAND (To be restarted)
--
Tomasz Chmielewski
http://wpkg.org
next prev parent reply other threads:[~2008-06-10 13:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 11:53 [Qemu-devel] what is needed to shutdown a guest (including Qemu process)? Tomasz Chmielewski
2008-06-10 13:18 ` Jamie Lokier
2008-06-10 13:38 ` Tomasz Chmielewski [this message]
2008-06-10 13:35 ` Paul Brook
2008-06-10 13:40 ` Tomasz Chmielewski
2008-06-10 20:58 ` andrzej zaborowski
2008-06-10 21:09 ` Tomasz Chmielewski
2008-06-10 21:31 ` andrzej zaborowski
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=484E83F3.1020005@wpkg.org \
--to=mangoo@wpkg.org \
--cc=qemu-devel@nongnu.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).