[PATCH 28/36] qemu: Prepare data for FD-passed disk image sources

Pavel Hrdina phrdina at redhat.com
Fri Jan 6 13:29:33 UTC 2023


On Thu, Jan 05, 2023 at 05:30:17PM +0100, Peter Krempa wrote:
> When starting up a VM with FD-passed images we need to look up the
> corresponding named FD set and associate it with the virStorageSource
> based on the name.
> 
> The association is brought into virStorageSource as security labelling
> code will need to access the FD to perform selinux labelling.
> 
> Similarly when startup is complete in certain cases we no longer need to
> keep the copy of FDs and thus can close them.
> 
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
>  src/conf/storage_source_conf.c |  5 ++
>  src/conf/storage_source_conf.h |  2 +
>  src/qemu/qemu_domain.c         | 86 ++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_domain.h         |  5 ++
>  src/qemu/qemu_hotplug.c        |  1 +
>  5 files changed, 99 insertions(+)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230106/ca686790/attachment.sig>


More information about the libvir-list mailing list