* [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
@ 2008-06-10 11:53 Tomasz Chmielewski
2008-06-10 13:18 ` Jamie Lokier
2008-06-10 13:35 ` Paul Brook
0 siblings, 2 replies; 8+ messages in thread
From: Tomasz Chmielewski @ 2008-06-10 11:53 UTC (permalink / raw)
To: qemu-devel
I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB
machine emulation, with a self-compiled 2.6.20 kernel.
Everything works fine, except that I can't shutdown the guest properly.
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.
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
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
2008-06-10 13:35 ` Paul Brook
1 sibling, 1 reply; 8+ messages in thread
From: Jamie Lokier @ 2008-06-10 13:18 UTC (permalink / raw)
To: qemu-devel
Tomasz Chmielewski wrote:
> I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB
> machine emulation, with a self-compiled 2.6.20 kernel.
>
> Everything works fine, except that I can't shutdown the guest properly.
>
> 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.
-- Jamie
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
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:35 ` Paul Brook
2008-06-10 13:40 ` Tomasz Chmielewski
1 sibling, 1 reply; 8+ messages in thread
From: Paul Brook @ 2008-06-10 13:35 UTC (permalink / raw)
To: qemu-devel; +Cc: Tomasz Chmielewski
On Tuesday 10 June 2008, Tomasz Chmielewski wrote:
> I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB
> machine emulation, with a self-compiled 2.6.20 kernel.
>
> Everything works fine, except that I can't shutdown the guest properly.
>
> 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.
AFAIK the versatile/pb hardware doesn't have any mechanism for powering off.
You have to kill it manually.
Paul
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
2008-06-10 13:18 ` Jamie Lokier
@ 2008-06-10 13:38 ` Tomasz Chmielewski
0 siblings, 0 replies; 8+ messages in thread
From: Tomasz Chmielewski @ 2008-06-10 13:38 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
2008-06-10 13:35 ` Paul Brook
@ 2008-06-10 13:40 ` Tomasz Chmielewski
2008-06-10 20:58 ` andrzej zaborowski
0 siblings, 1 reply; 8+ messages in thread
From: Tomasz Chmielewski @ 2008-06-10 13:40 UTC (permalink / raw)
To: Paul Brook; +Cc: qemu-devel
Paul Brook schrieb:
> On Tuesday 10 June 2008, Tomasz Chmielewski wrote:
>> I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB
>> machine emulation, with a self-compiled 2.6.20 kernel.
>>
>> Everything works fine, except that I can't shutdown the guest properly.
>>
>> 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.
>
> AFAIK the versatile/pb hardware doesn't have any mechanism for powering off.
> You have to kill it manually.
Does anyone know if any of other ARM flavour emulated by Qemu is able to
power off?
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
2008-06-10 13:40 ` Tomasz Chmielewski
@ 2008-06-10 20:58 ` andrzej zaborowski
2008-06-10 21:09 ` Tomasz Chmielewski
0 siblings, 1 reply; 8+ messages in thread
From: andrzej zaborowski @ 2008-06-10 20:58 UTC (permalink / raw)
To: qemu-devel; +Cc: Paul Brook
On 10/06/2008, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
> Paul Brook schrieb:
>
>
> > On Tuesday 10 June 2008, Tomasz Chmielewski wrote:
> >
> > > I'm trying to run Debian Etch with Qemu 0.9.1, using ARM Versatile/PB
> > > machine emulation, with a self-compiled 2.6.20 kernel.
> > >
> > > Everything works fine, except that I can't shutdown the guest properly.
> > >
> > > 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.
> > >
> >
> > AFAIK the versatile/pb hardware doesn't have any mechanism for powering
> off. You have to kill it manually.
> >
>
> Does anyone know if any of other ARM flavour emulated by Qemu is able to
> power off?
If you mean any other ARM-based machine, the N800 and Palm T|E can and
also the Neo1973 (in svn.openmoko.org). They lack other features that
versatile/PB has, though. They are all embedded systems and Versatile
may be the most pc-like machine with an ARM cpu in qemu.
You can modify the versatile kernel to issue some signal to shut down
but that will only work in qemu.
--
Please do not print this email unless absolutely necessary. Spread
environmental awareness.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
2008-06-10 20:58 ` andrzej zaborowski
@ 2008-06-10 21:09 ` Tomasz Chmielewski
2008-06-10 21:31 ` andrzej zaborowski
0 siblings, 1 reply; 8+ messages in thread
From: Tomasz Chmielewski @ 2008-06-10 21:09 UTC (permalink / raw)
To: qemu-devel; +Cc: Paul Brook
andrzej zaborowski schrieb:
>> Does anyone know if any of other ARM flavour emulated by Qemu is able to
>> power off?
>
> If you mean any other ARM-based machine, the N800 and Palm T|E can and
> also the Neo1973 (in svn.openmoko.org). They lack other features that
> versatile/PB has, though. They are all embedded systems and Versatile
> may be the most pc-like machine with an ARM cpu in qemu.
I meant any of the ARM machines which can be emulated by Qemu:
$ qemu-system-arm -M ?
Supported machines are:
integratorcp ARM Integrator/CP (ARM926EJ-S) (default)
versatilepb ARM Versatile/PB (ARM926EJ-S)
versatileab ARM Versatile/AB (ARM926EJ-S)
realview ARM RealView Emulation Baseboard (ARM926EJ-S)
akita Akita PDA (PXA270)
spitz Spitz PDA (PXA270)
borzoi Borzoi PDA (PXA270)
terrier Terrier PDA (PXA270)
cheetah Palm Tungsten|E aka. Cheetah PDA (OMAP310)
lm3s811evb Stellaris LM3S811EVB
lm3s6965evb Stellaris LM3S6965EVB
connex Gumstix Connex (PXA255)
verdex Gumstix Verdex (PXA270)
mainstone Mainstone II (PXA27x)
According to what you say, "cheetah" should be able to power off? Does
it have any network interface? I don't see it mentioned here:
http://bellard.org/qemu/qemu-doc.html#SEC63
--
Tomasz Chmielewski
http://wpkg.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] what is needed to shutdown a guest (including Qemu process)?
2008-06-10 21:09 ` Tomasz Chmielewski
@ 2008-06-10 21:31 ` andrzej zaborowski
0 siblings, 0 replies; 8+ messages in thread
From: andrzej zaborowski @ 2008-06-10 21:31 UTC (permalink / raw)
To: qemu-devel
On 10/06/2008, Tomasz Chmielewski <mangoo@wpkg.org> wrote:
> According to what you say, "cheetah" should be able to power off?
Yes.
> Does it
> have any network interface? I don't see it mentioned here:
No, it doesn't. The PDA has infrared as the only communications port
(on first -serial in qemu).
N800 emulation has host usb and we use it with the usb networking
patch successfully. You will still like versatile/PB more.
--
Please do not print this email unless absolutely necessary. Spread
environmental awareness.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-06-10 21:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).