[PATCH] bhyve: Default to ROM type for loader

Andrea Bolognani via Devel posted 1 patch 6 days, 13 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20260224121055.808358-1-abologna@redhat.com
src/bhyve/bhyve_domain.c | 6 ++++++
1 file changed, 6 insertions(+)
[PATCH] bhyve: Default to ROM type for loader
Posted by Andrea Bolognani via Devel 6 days, 13 hours ago
A previous commit had moved this logic from the generic
postparse code to drivers but failed to update the bhyve driver
accordingly in the process.

Fixes: 1504b7f687bdfc679377e605d076776b18533468
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
---
Pushed under the build breaker rule.

 src/bhyve/bhyve_domain.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bhyve/bhyve_domain.c b/src/bhyve/bhyve_domain.c
index 8fc9733756..85960c6e12 100644
--- a/src/bhyve/bhyve_domain.c
+++ b/src/bhyve/bhyve_domain.c
@@ -135,6 +135,12 @@ bhyveDomainDefPostParse(virDomainDef *def,
         }
     }
 
+    if (def->os.loader &&
+        def->os.loader->path &&
+        !def->os.loader->type) {
+        def->os.loader->type = VIR_DOMAIN_LOADER_TYPE_ROM;
+    }
+
     return 0;
 }
 
-- 
2.53.0