diff mbox series

[v2,14/16] bhyve: fill in virCapsEnum 'report'

Message ID 5635495511dbb75da3a81418c686621845cd35ab.1551914794.git.crobinso@redhat.com
State Accepted
Commit 8645a13decd1d876203c2ae6f99c8c5a0c255031
Headers show
Series domcaps: use virTristateBool | expand

Commit Message

Cole Robinson March 6, 2019, 11:38 p.m. UTC
Set report=true for all enums currently formatted in the XML

Signed-off-by: Cole Robinson <crobinso@redhat.com>

---
 src/bhyve/bhyve_capabilities.c | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.20.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff mbox series

Patch

diff --git a/src/bhyve/bhyve_capabilities.c b/src/bhyve/bhyve_capabilities.c
index ff78023895..27fa8ee5ef 100644
--- a/src/bhyve/bhyve_capabilities.c
+++ b/src/bhyve/bhyve_capabilities.c
@@ -76,6 +76,9 @@  virBhyveDomainCapsFill(virDomainCapsPtr caps,
                        virDomainCapsStringValuesPtr firmwares)
 {
     caps->disk.supported = VIR_TRISTATE_BOOL_YES;
+    caps->disk.diskDevice.report = true;
+    caps->disk.bus.report = true;
+    caps->disk.model.report = true;
     VIR_DOMAIN_CAPS_ENUM_SET(caps->disk.diskDevice,
                              VIR_DOMAIN_DISK_DEVICE_DISK,
                              VIR_DOMAIN_DISK_DEVICE_CDROM);
@@ -88,6 +91,8 @@  virBhyveDomainCapsFill(virDomainCapsPtr caps,
 
     caps->os.loader.supported = VIR_TRISTATE_BOOL_NO;
     if (bhyvecaps & BHYVE_CAP_LPC_BOOTROM) {
+        caps->os.loader.type.report = true;
+        caps->os.loader.readonly.report = true;
         caps->os.loader.supported = VIR_TRISTATE_BOOL_YES;
         VIR_DOMAIN_CAPS_ENUM_SET(caps->os.loader.type,
                                  VIR_DOMAIN_LOADER_TYPE_PFLASH);
@@ -103,7 +108,9 @@  virBhyveDomainCapsFill(virDomainCapsPtr caps,
     caps->video.supported = VIR_TRISTATE_BOOL_NO;
     if (bhyvecaps & BHYVE_CAP_FBUF) {
         caps->graphics.supported = VIR_TRISTATE_BOOL_YES;
+        caps->graphics.type.report = true;
         caps->video.supported = VIR_TRISTATE_BOOL_YES;
+        caps->video.modelType.report = true;
         VIR_DOMAIN_CAPS_ENUM_SET(caps->graphics.type, VIR_DOMAIN_GRAPHICS_TYPE_VNC);
         VIR_DOMAIN_CAPS_ENUM_SET(caps->video.modelType, VIR_DOMAIN_VIDEO_TYPE_GOP);
     }