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

John Ferlan jferlan at redhat.com
Wed Apr 11 20:09:59 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 4ca22d3617..9da3b23393 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -2322,6 +2322,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