Add a file descriptor set to the QEMU private domain structure.
---
src/qemu/qemu_domain.c | 4 ++++
src/qemu/qemu_domain.h | 3 +++
2 files changed, 7 insertions(+)
Index: libvirt/src/qemu/qemu_domain.c
===================================================================
--- libvirt.orig/src/qemu/qemu_domain.c
+++ libvirt/src/qemu/qemu_domain.c
@@ -37,6 +37,7 @@
#include "domain_event.h"
#include "virtime.h"
#include "virstoragefile.h"
+#include "virintset.h"
#include <sys/time.h>
#include <fcntl.h>
@@ -220,6 +221,8 @@ static void *qemuDomainObjPrivateAlloc(v
priv->migMaxBandwidth = QEMU_DOMAIN_MIG_BANDWIDTH_MAX;
+ virIntSetInit(&priv->fdset);
+
return priv;
error:
@@ -252,6 +255,7 @@ static void qemuDomainObjPrivateFree(voi
qemuAgentClose(priv->agent);
}
VIR_FREE(priv->cleanupCallbacks);
+ virIntSetClear(&priv->fdset);
VIR_FREE(priv);
}
Index: libvirt/src/qemu/qemu_domain.h
===================================================================
--- libvirt.orig/src/qemu/qemu_domain.h
+++ libvirt/src/qemu/qemu_domain.h
@@ -32,6 +32,7 @@
# include "qemu_conf.h"
# include "qemu_capabilities.h"
# include "virchrdev.h"
+# include "virintset.h"
# define QEMU_EXPECTED_VIRT_TYPES \
((1 << VIR_DOMAIN_VIRT_QEMU) | \
@@ -160,6 +161,8 @@ struct _qemuDomainObjPrivate {
qemuDomainCleanupCallback *cleanupCallbacks;
size_t ncleanupCallbacks;
size_t ncleanupCallbacks_max;
+
+ virIntSet fdset;
};
struct qemuDomainWatchdogEvent