qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/2] qdev: Add a no default uuid property


From: minyard
Subject: [Qemu-devel] [PATCH 1/2] qdev: Add a no default uuid property
Date: Thu, 8 Nov 2018 08:19:43 -0600

From: Corey Minyard <address@hidden>

This is for IPMI, which will behave differently if the UUID is
not set.

Signed-off-by: Corey Minyard <address@hidden>
Cc: Fam Zheng <address@hidden>
Cc: Michael S. Tsirkin <address@hidden>
Cc: Marc-André Lureau <address@hidden>
---
 include/hw/qdev-properties.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h
index 4f60cc88f3..d614f931c9 100644
--- a/include/hw/qdev-properties.h
+++ b/include/hw/qdev-properties.h
@@ -226,6 +226,13 @@ extern const PropertyInfo qdev_prop_off_auto_pcibar;
         .set_default = true,                                       \
         }
 
+#define DEFINE_PROP_UUID_NODEFAULT(_name, _state, _field) {        \
+        .name      = (_name),                                      \
+        .info      = &qdev_prop_uuid,                              \
+        .offset    = offsetof(_state, _field)                      \
+            + type_check(QemuUUID, typeof_field(_state, _field)),  \
+        }
+
 #define DEFINE_PROP_END_OF_LIST()               \
     {}
 
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]