diff options
author | Alex Bennée | 2020-05-20 16:05:39 +0200 |
---|---|---|
committer | Alex Bennée | 2020-05-27 15:26:49 +0200 |
commit | 1f81ce90e31ef338ee53a0cea02344237bc470cc (patch) | |
tree | 2931e6981e6e6c3ec15c693e9efc5c92215eaa95 /scripts/qemugdb | |
parent | cpus-common: ensure auto-assigned cpu_indexes don't clash (diff) | |
download | qemu-1f81ce90e31ef338ee53a0cea02344237bc470cc.tar.gz qemu-1f81ce90e31ef338ee53a0cea02344237bc470cc.tar.xz qemu-1f81ce90e31ef338ee53a0cea02344237bc470cc.zip |
linux-user: properly "unrealize" vCPU object
We shouldn't be messing around with the CPU list in linux-user save
for the very special case of do_fork(). When threads end we need to
properly follow QOM object lifetime handling and allow the eventual
cpu_common_unrealizefn to both remove the CPU and ensure any clean-up
actions are taken place, for example calling plugin exit hooks.
There is still a race condition to avoid so use the linux-user
specific clone_lock instead of the cpu_list_lock to avoid it.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Nikolay Igotti <igotti@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Daniel P. Berrange <berrange@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200520140541.30256-14-alex.bennee@linaro.org>
Diffstat (limited to 'scripts/qemugdb')
0 files changed, 0 insertions, 0 deletions