]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/uefi-vars-sysbus: allow for loongarch virt
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 19 Mar 2025 14:11:57 +0000 (15:11 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 21 Mar 2025 11:01:12 +0000 (12:01 +0100)
Allow the device being added to loongarch virt VMs.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-ID: <20250319141159.1461621-6-kraxel@redhat.com>

hw/loongarch/virt.c
hw/uefi/Kconfig

index a5840ff96857eccb24e685a52364cb0ba0db692b..b6f5f6a3b546e429ab9ae1c177db54524abfa429 100644 (file)
@@ -38,6 +38,7 @@
 #include "hw/mem/nvdimm.h"
 #include "hw/platform-bus.h"
 #include "hw/display/ramfb.h"
+#include "hw/uefi/var-service-api.h"
 #include "hw/mem/pc-dimm.h"
 #include "system/tpm.h"
 #include "system/block-backend.h"
@@ -1207,6 +1208,7 @@ static void virt_class_init(ObjectClass *oc, void *data)
     object_class_property_set_description(oc, "v-eiointc",
                             "Enable Virt Extend I/O Interrupt Controller.");
     machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE);
+    machine_class_allow_dynamic_sysbus_dev(mc, TYPE_UEFI_VARS_SYSBUS);
 #ifdef CONFIG_TPM
     machine_class_allow_dynamic_sysbus_dev(mc, TYPE_TPM_TIS_SYSBUS);
 #endif
index f139008b632bede96cf552c2d008e6ec78e2bcf3..046d55320e1662fb59ad35a1b7252108f496e643 100644 (file)
@@ -1,3 +1,3 @@
 config UEFI_VARS
        bool
-        default y if X86_64 || AARCH64 || RISCV64
+        default y if X86_64 || AARCH64 || RISCV64 || LOONGARCH64