I was doing some tests with 'add-fd' and 'getfd' and made this to help
me.
v2:
- add API support for passing FDs back, but for now we don't have
use for it
Peter Krempa (4):
virnetmessage: Introduce virNetMessageClearFDs
lib: Introduce 'virDomainQemuMonitorCommandWithFiles'
virsh: Implement support for virDomainQemuMonitorCommandWithFiles
qemu: Implement qemuDomainQemuMonitorCommandWithFiles
docs/manpages/virsh.rst | 6 +-
include/libvirt/libvirt-qemu.h | 8 +++
src/driver-hypervisor.h | 10 ++++
src/libvirt-qemu.c | 89 +++++++++++++++++++++++++++++
src/libvirt_qemu.syms | 5 ++
src/libvirt_remote.syms | 1 +
src/qemu/qemu_driver.c | 42 ++++++++++++--
src/qemu/qemu_monitor.c | 7 ++-
src/qemu/qemu_monitor.h | 1 +
src/qemu/qemu_monitor_json.c | 6 +-
src/qemu/qemu_monitor_json.h | 2 +
src/qemu/qemu_monitor_text.c | 8 +--
src/qemu_protocol-structs | 9 +++
src/remote/qemu_protocol.x | 20 ++++++-
src/remote/remote_daemon_dispatch.c | 62 ++++++++++++++++++++
src/remote/remote_driver.c | 57 ++++++++++++++++++
src/rpc/virnetmessage.c | 9 ++-
src/rpc/virnetmessage.h | 1 +
tools/virsh-domain.c | 19 +++++-
19 files changed, 345 insertions(+), 17 deletions(-)
--
2.35.1