diff options
author | Kevin Wolf <kwolf@redhat.com> | 2023-01-26 18:24:21 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-02-17 11:22:19 +0100 |
commit | 4bee90e9da3c58b09d4df949d9c64043133e4181 (patch) | |
tree | 1ec9929d742ff21e2898946fc5c80ec5132b51db /block | |
parent | d6ee2e324ec26a02776d90125e3a55454f0ca57e (diff) | |
download | qemu-4bee90e9da3c58b09d4df949d9c64043133e4181.zip qemu-4bee90e9da3c58b09d4df949d9c64043133e4181.tar.gz qemu-4bee90e9da3c58b09d4df949d9c64043133e4181.tar.bz2 |
block: Create no_co_wrappers for open functions
Images can't be opened in coroutine context because opening needs to
change the block graph. Add no_co_wrappers so that coroutines have a
simple way of opening images in a BH instead.
At the same time, mark the wrapped functions as no_coroutine_fn.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230126172432.436111-3-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/meson.build b/block/meson.build index 3662852..382bec0 100644 --- a/block/meson.build +++ b/block/meson.build @@ -141,6 +141,7 @@ block_gen_c = custom_target('block-gen.c', '../include/block/dirty-bitmap.h', '../include/block/block_int-io.h', '../include/block/block-global-state.h', + '../include/sysemu/block-backend-global-state.h', '../include/sysemu/block-backend-io.h', 'coroutines.h' ), |