Populate libxl_domain_build_info struct with bios and firmware info from virDomainLoaderDef. Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx> --- src/libxl/libxl_conf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 0db4afd..c8efeb7 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -394,6 +394,14 @@ libxlMakeDomBuildInfo(virDomainDefPtr def, return -1; #endif + if (def->os.loader && + def->os.loader->type == VIR_DOMAIN_LOADER_TYPE_PFLASH) { + b_info->u.hvm.bios = LIBXL_BIOS_TYPE_OVMF; + if (STRNEQ(def->os.loader->path, LIBXL_FIRMWARE_DIR "/ovmf.bin")) + if (VIR_STRDUP(b_info->u.hvm.firmware, def->os.loader->path) < 0) + return -1; + } + if (def->emulator) { if (!virFileExists(def->emulator)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, -- 2.1.4 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list