Searched hist:"0582 fb8293ad4a5d67810fb362789eba6e0ae75e" (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/block/ |
H A D | block-gen.h | diff 0582fb8293ad4a5d67810fb362789eba6e0ae75e Mon Nov 28 08:23:34 CST 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> block-coroutine-wrapper.py: support functions without bs arg
Right now, we take the first parameter of the function to get the BlockDriverState to pass to bdrv_poll_co(), that internally calls functions that figure in which aiocontext the coroutine should run.
However, it is useless to pass a bs just to get its own AioContext, so instead pass it directly, and default to the main loop if no BlockDriverState is passed as parameter.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20221128142337.657646-12-eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
/openbmc/qemu/scripts/ |
H A D | block-coroutine-wrapper.py | diff 0582fb8293ad4a5d67810fb362789eba6e0ae75e Mon Nov 28 08:23:34 CST 2022 Emanuele Giuseppe Esposito <eesposit@redhat.com> block-coroutine-wrapper.py: support functions without bs arg
Right now, we take the first parameter of the function to get the BlockDriverState to pass to bdrv_poll_co(), that internally calls functions that figure in which aiocontext the coroutine should run.
However, it is useless to pass a bs just to get its own AioContext, so instead pass it directly, and default to the main loop if no BlockDriverState is passed as parameter.
Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Message-Id: <20221128142337.657646-12-eesposit@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|