]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Store and update 'fdsetindex' across libvirtd restarts
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 May 2022 13:45:55 +0000 (15:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 May 2022 07:15:45 +0000 (09:15 +0200)
commit278c630d2a3dd0c311f5f52818ca061cb58818cc
treef16ecb26d95b2f63f03f3d780bac95aff4619cc6
parent76709d4f48960365f097166c9f356526c80a5630
qemu: domain: Store and update 'fdsetindex' across libvirtd restarts

While 'add-fd' qmp command gives the possibility to find an unused fdset
ID when hot-adding fdsets, such usage is extremely inconvenient.

This patch allows us to track the used fdset id so that we can avoid the
need to check results and thus employ simpler code flow when hot-adding
devices which use FD passing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
14 files changed:
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_process.c
tests/qemustatusxml2xmldata/backup-pull-in.xml
tests/qemustatusxml2xmldata/blockjob-blockdev-in.xml
tests/qemustatusxml2xmldata/blockjob-mirror-in.xml
tests/qemustatusxml2xmldata/migration-in-params-in.xml
tests/qemustatusxml2xmldata/migration-out-nbd-bitmaps-in.xml
tests/qemustatusxml2xmldata/migration-out-nbd-out.xml
tests/qemustatusxml2xmldata/migration-out-nbd-tls-out.xml
tests/qemustatusxml2xmldata/migration-out-params-in.xml
tests/qemustatusxml2xmldata/modern-in.xml
tests/qemustatusxml2xmldata/upgrade-out.xml
tests/qemustatusxml2xmldata/vcpus-multi-in.xml