[libvirt] [PATCH v2 04/11] conf: Add VM Generation ID to virDomainDef

John Ferlan jferlan at redhat.com
Mon Apr 23 23:59:58 UTC 2018


Add a genid[] field to be able to store a uuid-like GUID value.
Also add associated bool's to support VM Generation ID operation.

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/conf/domain_conf.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 99d1aa529a..1b61fd8c03 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2325,6 +2325,11 @@ struct _virDomainDef {
     virDomainVirtType virtType;
     int id;
     unsigned char uuid[VIR_UUID_BUFLEN];
+
+    unsigned char genid[VIR_UUID_BUFLEN];
+    bool genidRequested;
+    bool genidGenerated;
+
     char *name;
     char *title;
     char *description;
-- 
2.13.6




More information about the libvir-list mailing list