Home
last modified time | relevance | path

Searched hist:d6ee2e324ec26a02776d90125e3a55454f0ca57e (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/scripts/
H A Dblock-coroutine-wrapper.pydiff d6ee2e324ec26a02776d90125e3a55454f0ca57e Thu Jan 26 11:24:20 CST 2023 Kevin Wolf <kwolf@redhat.com> 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>
/openbmc/qemu/include/block/
H A Dblock-common.hdiff d6ee2e324ec26a02776d90125e3a55454f0ca57e Thu Jan 26 11:24:20 CST 2023 Kevin Wolf <kwolf@redhat.com> 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>