qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] MIPS, io-thread, icount and wfi
@ 2011-01-17 10:03 Edgar E. Iglesias
  2011-01-18  0:19 ` [Qemu-devel] " Edgar E. Iglesias
  0 siblings, 1 reply; 7+ messages in thread
From: Edgar E. Iglesias @ 2011-01-17 10:03 UTC (permalink / raw)
  To: qemu-devel

Hi,

I'm running an io-thread enabled qemu-system-mipsel with icount.
When the guest (linux) goes to sleep through the wait insn (waiting
to be woken up by future timer interrupts), the thing deadlocks.

IIUC, this is because vm timers are driven by icount, but the CPU is
halted so icount makes no progress and time stands still.

I've locally disabled vcpu halting when icount is enabled, that
works around my problem but of course makes qemu consume 100% host cpu.

I don't know why I only see this problem with io-thread builds?
Could be related timing and luck.

Would be interesting to know if someone has any info on how this was
intended to work (if it was)? And if there are ideas for better
workarounds or fixes that don't disable vcpu halting entirely.

Cheers

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

end of thread, other threads:[~2011-01-23  4:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17 10:03 [Qemu-devel] MIPS, io-thread, icount and wfi Edgar E. Iglesias
2011-01-18  0:19 ` [Qemu-devel] " Edgar E. Iglesias
2011-01-18 10:00   ` Jan Kiszka
2011-01-18 10:17     ` Jan Kiszka
2011-01-19 17:02     ` Marcelo Tosatti
2011-01-19 19:02       ` Edgar E. Iglesias
2011-01-23  4:09         ` Edgar E. Iglesias

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).