aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/main-loop.h
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@gmail.com>2022-08-19 22:27:55 +0900
committerGerd Hoffmann <kraxel@redhat.com>2022-09-23 14:36:33 +0200
commit2dc7f90a835a4cd2362ace5e2388687afd296b85 (patch)
tree62cbfe0a9dc87a1c6e6def625feb59cfa6c6767e /include/qemu/main-loop.h
parentbab6a301c58286229ca8fbc36728d1469f243260 (diff)
downloadqemu-2dc7f90a835a4cd2362ace5e2388687afd296b85.zip
qemu-2dc7f90a835a4cd2362ace5e2388687afd296b85.tar.gz
qemu-2dc7f90a835a4cd2362ace5e2388687afd296b85.tar.bz2
Revert "main-loop: Disable block backend global state assertion on Cocoa"
This reverts commit 47281859f66bdab1974fb122cab2cbb4a1c9af7f. Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com> Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220819132756.74641-3-akihiko.odaki@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/qemu/main-loop.h')
-rw-r--r--include/qemu/main-loop.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/qemu/main-loop.h b/include/qemu/main-loop.h
index c50d1b7..aac707d 100644
--- a/include/qemu/main-loop.h
+++ b/include/qemu/main-loop.h
@@ -284,23 +284,10 @@ bool qemu_in_main_thread(void);
* Please refer to include/block/block-global-state.h for more
* information about GS API.
*/
-#ifdef CONFIG_COCOA
-/*
- * When using the Cocoa UI, addRemovableDevicesMenuItems() is called from
- * a thread different from the QEMU main thread and can not take the BQL,
- * triggering this assertions in the block layer (commit 0439c5a462).
- * As the Cocoa fix is not trivial, disable this assertion for the v7.0.0
- * release (when using Cocoa); we will restore it immediately after the
- * release.
- * This issue is tracked as https://gitlab.com/qemu-project/qemu/-/issues/926
- */
-#define GLOBAL_STATE_CODE()
-#else
#define GLOBAL_STATE_CODE() \
do { \
assert(qemu_in_main_thread()); \
} while (0)
-#endif /* CONFIG_COCOA */
/*
* Mark and check that the function is part of the I/O API.