[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/15] qdev: Add a no default uuid property
From: |
minyard |
Subject: |
[PATCH 05/15] qdev: Add a no default uuid property |
Date: |
Thu, 19 Sep 2019 16:39:14 -0500 |
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 2e98dd60db..c6a8cb5516 100644
--- a/include/hw/qdev-properties.h
+++ b/include/hw/qdev-properties.h
@@ -238,6 +238,13 @@ extern const PropertyInfo qdev_prop_pcie_link_width;
#define DEFINE_PROP_AUDIODEV(_n, _s, _f) \
DEFINE_PROP(_n, _s, _f, qdev_prop_audiodev, QEMUSoundCard)
+#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
- [PATCH 00/15] ipmi: Bug fixes, add new interfaces, minyard, 2019/09/19
- [PATCH 03/15] ipmi: Generate an interrupt on watchdog pretimeout expiry, minyard, 2019/09/19
- [PATCH 04/15] tests:ipmi: Fix IPMI BT tests, minyard, 2019/09/19
- [PATCH 05/15] qdev: Add a no default uuid property,
minyard <=
- [PATCH 02/15] ipmi: Fix the get watchdog command, minyard, 2019/09/19
- [PATCH 06/15] ipmi: Add a UUID device property, minyard, 2019/09/19
- [PATCH 09/15] ipmi: Allow a size value to be passed for I/O space, minyard, 2019/09/19
- [PATCH 07/15] ipmi: Split out KCS-specific code from ISA KCS code, minyard, 2019/09/19
- [PATCH 11/15] ipmi: Add PCI IPMI interfaces, minyard, 2019/09/19
- [PATCH 14/15] ipmi: Fix SSIF ACPI handling to use the right CRS, minyard, 2019/09/19
- [PATCH 10/15] smbios:ipmi: Ignore IPMI devices with no fwinfo function, minyard, 2019/09/19