mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
cpus: tcg: fix never exiting loop on unplug
Commit9b0605f983
("cpus: tcg: unregister thread with RCU, fix exiting of loop on unplug") changed the exit condition of the loop in the vCPU thread function but forgot to remove the beginning 'while (1)' statement. The resulting code : while (1) { ... } while (!cpu->unplug || cpu_can_run(cpu)); is a sequence of two distinct two while() loops, the first not exiting in case of an unplug event. Remove the first while (1) to fix CPU unplug. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20180425131828.15604-1-clg@kaod.org> Cc: qemu-stable@nongnu.org Fixes:9b0605f983
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
f056158d69
commit
54961aac19
Loading…
Reference in New Issue
Block a user