summary refs log tree commit diff stats
path: root/hw/core/machine.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2025-01-24 12:25:48 +0100
committerThomas Huth <thuth@redhat.com>2025-01-30 10:39:37 +0100
commita4cda3f5df2e693893aa076403867fda8dec5584 (patch)
treea3c7fa4bc0cfa795d57a51bd4093921acaa7d2bf /hw/core/machine.c
parentb497b0376cb60ae786ec12cffb259641ec1314eb (diff)
downloadfocaccia-qemu-a4cda3f5df2e693893aa076403867fda8dec5584.tar.gz
focaccia-qemu-a4cda3f5df2e693893aa076403867fda8dec5584.zip
hw/s390x/s390-virtio-ccw: Fix a record/replay deadlock
Booting an s390x VM in record/replay mode hangs due to a deadlock
between rr_cpu_thread_fn() and s390_machine_reset(). The former needs
the record/replay mutex held by the latter, and the latter waits until
the former completes its run_on_cpu() request.

Fix by temporarily dropping the record/replay mutex, like it's done in
pause_all_vcpus().

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20250124112625.23050-1-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/core/machine.c')
0 files changed, 0 insertions, 0 deletions