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(a)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(a)redhat.com>