]> Git Repo - qemu.git/commit
fix 100% cpu utilization when cpu is stopped
authorPaolo Bonzini <[email protected]>
Tue, 6 Apr 2010 22:11:09 +0000 (00:11 +0200)
committermalc <[email protected]>
Tue, 6 Apr 2010 22:24:58 +0000 (02:24 +0400)
commit55274a30522d0f542c1659386f01096b78669455
treeb93a86df16744380626aea1cdce897696d4e285d
parentf7e2aca83419dde3c94fa1d5e615581bb4ded9c0
fix 100% cpu utilization when cpu is stopped

> Hello,
>
d6f4ade (disentangle tcg and deadline calculation, 2010-03-10)
> introduces following regression(s):
>
> 100% cpu utilization when QEMU is invoked like:
> qemu -S -s ...
>
> ditto when gdb takes control over the session via gdb-stub
> (i.e. the breakpoint is hit or C-c is pressed inside gdb to
>   interrupt the attached qemu instance)

The bug is that env->stopped is not really as comprehensive as it seems to
be (and cpu_has_work thinks); it is only valid with iothread basically,
and even then it is cleared by reset and it is not set when starting
qemu with -S.

Signed-off-by: Paolo Bonzini <[email protected]>
Cc: malc <[email protected]>
Signed-off-by: malc <[email protected]>
cpus.c
This page took 0.027048 seconds and 4 git commands to generate.