On a Tuesday in 2022, Peter Krempa wrote:
Prepare for the upcoming refactor to use qemuFDPass for all the
network
related file descriptors:
- tapfds
- vhostfds
- slirp
- vdpa
This patch adds the private data variables and a utility function to
clear it. Clearing is useful since we don't really need the data once
the VM is running so we save some memory.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_command.c | 3 +++
src/qemu/qemu_domain.c | 15 +++++++++++++++
src/qemu/qemu_domain.h | 8 ++++++++
src/qemu/qemu_hotplug.c | 3 +++
4 files changed, 29 insertions(+)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano