]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Always assume QEMU_CAPS_SPLASH_TIMEOUT
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Aug 2021 11:15:11 +0000 (13:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 Sep 2021 10:26:07 +0000 (12:26 +0200)
Supported since qemu commit 3d3b8303c6 ("showing a splash picture when
start") released in qemu-v1.0 and can't be compiled out.

Assume that it's present and remove the validation code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_validate.c
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c

index 8d5995057ebb99ac3614e25f5472e334f6e45d30..8b5b292f542f69c73ca1cb168281c7dbcab60ea9 100644 (file)
@@ -566,8 +566,7 @@ qemuValidateDomainDefPM(const virDomainDef *def,
 
 
 static int
-qemuValidateDomainDefBoot(const virDomainDef *def,
-                          virQEMUCaps *qemuCaps)
+qemuValidateDomainDefBoot(const virDomainDef *def)
 {
     if (def->os.loader &&
         def->os.loader->secure == VIR_TRISTATE_BOOL_YES) {
@@ -598,15 +597,6 @@ qemuValidateDomainDefBoot(const virDomainDef *def,
         }
     }
 
-    if (def->os.bm_timeout_set) {
-        if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SPLASH_TIMEOUT)) {
-            virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                           _("splash timeout is not supported "
-                             "by this QEMU binary"));
-            return -1;
-        }
-    }
-
     return 0;
 }
 
@@ -1218,7 +1208,7 @@ qemuValidateDomainDef(const virDomainDef *def,
     if (qemuValidateDomainDefPM(def, qemuCaps) < 0)
         return -1;
 
-    if (qemuValidateDomainDefBoot(def, qemuCaps) < 0)
+    if (qemuValidateDomainDefBoot(def) < 0)
         return -1;
 
     if (qemuValidateDomainVCpuTopology(def, qemuCaps) < 0)
index 1a2b4fda8c9e2cb898f1a35ebe5117a4cd6e2ef5..d8ff18771f0c58767b5524c1484a61737733ae38 100644 (file)
@@ -1068,10 +1068,8 @@ mymain(void)
             QEMU_CAPS_ICH9_AHCI);
     DO_TEST_NOCAPS("boot-multi");
     DO_TEST_NOCAPS("boot-menu-enable");
-    DO_TEST("boot-menu-enable-with-timeout",
-            QEMU_CAPS_SPLASH_TIMEOUT);
-    DO_TEST_PARSE_ERROR("boot-menu-enable-with-timeout-invalid",
-                        QEMU_CAPS_SPLASH_TIMEOUT);
+    DO_TEST_NOCAPS("boot-menu-enable-with-timeout");
+    DO_TEST_PARSE_ERROR_NOCAPS("boot-menu-enable-with-timeout-invalid");
     DO_TEST_NOCAPS("boot-menu-disable");
     DO_TEST_NOCAPS("boot-menu-disable-drive");
     DO_TEST_PARSE_ERROR("boot-dev+order",
index 3e51533f85a77f83064918b78d302adeb996e10a..f9d20242fc3b43877e50a05892e5fc974eac75c9 100644 (file)
@@ -228,7 +228,7 @@ mymain(void)
             QEMU_CAPS_DEVICE_IOH3420,
             QEMU_CAPS_ICH9_AHCI);
     DO_TEST_NOCAPS("boot-multi");
-    DO_TEST("boot-menu-enable-with-timeout", QEMU_CAPS_SPLASH_TIMEOUT);
+    DO_TEST_NOCAPS("boot-menu-enable-with-timeout");
     DO_TEST_NOCAPS("boot-menu-disable");
     DO_TEST_NOCAPS("boot-menu-disable-with-timeout");
     DO_TEST_NOCAPS("boot-order");