]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add 'fdgroup' attribute for 'file' disks
authorPeter Krempa <pkrempa@redhat.com>
Mon, 2 May 2022 16:51:45 +0000 (18:51 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jan 2023 13:59:42 +0000 (14:59 +0100)
commit98bd201678dc1d29c62dd84848fe48c0c44a3a15
tree1908b33b964045fcc6176e1de36cb442e480f035
parent0fcdb512d4aed9730f082f2da7cd5b9c3694d271
conf: Add 'fdgroup' attribute for 'file' disks

The 'fdgroup' will allow users to specify a passed FD (via the
'virDomainFDAssociate()' API) to be used instead of opening a path.
This is useful in cases when e.g. the file is not accessible from inside
a container.

Since this uses the same disk type as when we open files via names this
patch also introduces a hypervisor feature which the hypervisor asserts
that code paths are ready for this possibility.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
docs/formatdomain.rst
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/domain_postparse.c
src/conf/schemas/domaincommon.rng
src/conf/storage_source_conf.c
src/conf/storage_source_conf.h
src/security/virt-aa-helper.c
tests/qemuxml2argvdata/disk-source-fd.xml [new file with mode: 0644]