summary refs log tree commit diff stats
path: root/scripts/block-coroutine-wrapper.py
diff options
context:
space:
mode:
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>2022-11-28 09:23:28 -0500
committerKevin Wolf <kwolf@redhat.com>2022-12-15 16:07:43 +0100
commitf7f93a478a0c5d134d80afff7203e0aef788e5cd (patch)
treea6e7dad4c59a157ee6f0caf6dba9086293b58579 /scripts/block-coroutine-wrapper.py
parentff7e261bb91ecf44df12a551582187ddf6b187fe (diff)
downloadfocaccia-qemu-f7f93a478a0c5d134d80afff7203e0aef788e5cd.tar.gz
focaccia-qemu-f7f93a478a0c5d134d80afff7203e0aef788e5cd.zip
block/vmdk: add coroutine_fn annotations
These functions end up calling bdrv_create() implemented as generated_co_wrapper
functions.
In addition, they also happen to be always called in coroutine context,
meaning all callers are coroutine_fn.
This means that the g_c_w function will enter the qemu_in_coroutine()
case and eventually suspend (or in other words call qemu_coroutine_yield()).
Therefore we can mark such functions coroutine_fn too.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-Id: <20221128142337.657646-6-eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/block-coroutine-wrapper.py')
0 files changed, 0 insertions, 0 deletions