]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Prepare data for FD-passed disk image sources
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 May 2022 13:00:18 +0000 (15:00 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jan 2023 13:59:43 +0000 (14:59 +0100)
commit81cbfc2fc3144cf331a79fc964bbfa7826344b75
tree607263ad9a0ad5492b5a176a094ea85204aed26c
parent47b922f3f894ad64c71f88f79c3da06a697c4b5d
qemu: Prepare data for FD-passed disk image sources

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@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/storage_source_conf.c
src/conf/storage_source_conf.h
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_hotplug.c