[libvirt] [PATCH go] Add back compat constants for iothreads

Daniel P. Berrangé berrange at redhat.com
Wed Nov 21 16:35:48 UTC 2018


Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 domain_compat.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Pushed as a build break fix for old libvirt

diff --git a/domain_compat.h b/domain_compat.h
index 371bcc4..19a3e24 100644
--- a/domain_compat.h
+++ b/domain_compat.h
@@ -917,4 +917,20 @@ struct _virDomainInterface {
 #define VIR_DOMAIN_SHUTOFF_DAEMON 8
 #endif
 
+#ifndef VIR_DOMAIN_STATS_IOTHREAD
+#define VIR_DOMAIN_STATS_IOTHREAD (1 << 7)
+#endif
+
+#ifndef VIR_DOMAIN_IOTHREAD_POLL_GROW
+#define VIR_DOMAIN_IOTHREAD_POLL_GROW "poll_grow"
+#endif
+
+#ifndef VIR_DOMAIN_IOTHREAD_POLL_SHRINK
+#define VIR_DOMAIN_IOTHREAD_POLL_SHRINK "poll_shrink"
+#endif
+
+#ifndef VIR_DOMAIN_IOTHREAD_POLL_MAX_NS
+#define VIR_DOMAIN_IOTHREAD_POLL_MAX_NS "poll_max_ns"
+#endif
+
 #endif /* LIBVIRT_GO_DOMAIN_COMPAT_H__ */
-- 
2.19.1




More information about the libvir-list mailing list