]> git.ipfire.org Git - thirdparty/libvirt.git/commit
backup: Add support for passing server socket file descriptor to backup NBD server
authorPeter Krempa <pkrempa@redhat.com>
Tue, 25 Mar 2025 16:46:45 +0000 (17:46 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Apr 2025 14:18:30 +0000 (16:18 +0200)
commiteb768a556db75040f7b518d198a18bd0f5d6faad
treedf212880afccd2e8528d83469fb90ed4e862b10a
parent2e014dfae6da3af2dbea796dc731052cc86ca791
backup: Add support for passing server socket file descriptor to backup NBD server

In deployments where libvirt is containerized together with the VM it
may be hard for the management application to access listening sockets
inside the container from the outside.

This patch implements "transport='fd'" for the NBD server definition for
backups which allows to use the existing "virDomainFDAssociate()" to
pass FD to a pre-opened server socket to qemu instead of trying to
create it by qemu.

Add schema, enable the parser, add formatter and implement the actual
passing for the qemu backup code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Spellchecked-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/formatbackup.rst
src/conf/backup_conf.c
src/conf/schemas/domainbackup.rng
src/qemu/qemu_backup.c