]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_fd: Don't rely on fdset id allocation by qemu
authorPeter Krempa <pkrempa@redhat.com>
Thu, 5 May 2022 14:34:52 +0000 (16:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 May 2022 07:15:45 +0000 (09:15 +0200)
commit1e925d1c171e8eb7893f4f6b2aa948a66742b784
treef9a86f4f0a14bf3711556767e01ffc36a4baef30
parent278c630d2a3dd0c311f5f52818ca061cb58818cc
qemu_fd: Don't rely on fdset id allocation by qemu

If we use our own fdset ID when hot-adding a fdset we can vastly
simplify our internals.

As a stop-gap when a fdset would be added behind libvirt's back we'll
validated that the fdset to be added is not yet used.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_fd.c
src/qemu/qemu_fd.h
tests/qemuhotplugtest.c
tests/qemumonitorjsontest.c