]> git.proxmox.com Git - mirror_qemu.git/commit
vdi: Fix .bdrv_co_create(_opts) to open images with no_co_wrapper
authorKevin Wolf <kwolf@redhat.com>
Thu, 26 Jan 2023 17:24:27 +0000 (18:24 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 17 Feb 2023 10:22:19 +0000 (11:22 +0100)
commit13dd6327efb565678bcfe14270dc3b6f7859237c
treecef8dc7ebc4a7951b2124b3ab2743623d51af87c
parent0b1e95cf46f7f43a39b5c4043b399b8ec29bd440
vdi: Fix .bdrv_co_create(_opts) to open images with no_co_wrapper

.bdrv_co_create implementations run in a coroutine. Therefore they are
not allowed to open images directly. Fix the calls to use the
corresponding no_co_wrappers instead.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230126172432.436111-9-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>
block/vdi.c