]> www.infradead.org Git - users/dwmw2/qemu.git/commit
hw/s390x/s390-virtio-ccw: Fix a record/replay deadlock
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 24 Jan 2025 11:25:48 +0000 (12:25 +0100)
committerThomas Huth <thuth@redhat.com>
Thu, 30 Jan 2025 09:39:37 +0000 (10:39 +0100)
commita4cda3f5df2e693893aa076403867fda8dec5584
treea3c7fa4bc0cfa795d57a51bd4093921acaa7d2bf
parentb497b0376cb60ae786ec12cffb259641ec1314eb
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>
hw/s390x/s390-virtio-ccw.c