summary refs log tree commit diff stats
path: root/python/qemu/utils/qom.py
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2023-01-26 18:24:20 +0100
committerKevin Wolf <kwolf@redhat.com>2023-02-17 11:22:19 +0100
commitd6ee2e324ec26a02776d90125e3a55454f0ca57e (patch)
tree05a2db277d24d721903a5474c308160a59b8f2c1 /python/qemu/utils/qom.py
parent1e84cf79573e364075d6e63a4b00f7dc5f8aa924 (diff)
downloadfocaccia-qemu-d6ee2e324ec26a02776d90125e3a55454f0ca57e.tar.gz
focaccia-qemu-d6ee2e324ec26a02776d90125e3a55454f0ca57e.zip
block-coroutine-wrapper: Introduce no_co_wrapper
Some functions must not be called from coroutine context. The common
pattern to use them anyway from a coroutine is running them in a BH and
letting the calling coroutine yield to be woken up when the BH is
completed.

Instead of manually writing such wrappers, add support for generating
them to block-coroutine-wrapper.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230126172432.436111-2-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 'python/qemu/utils/qom.py')
0 files changed, 0 insertions, 0 deletions