mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
hw/uefi-vars-sysbus: allow for loongarch virt
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>
This commit is contained in:
parent
5807508fad
commit
e1092f765d
2 changed files with 3 additions and 1 deletions
|
@ -38,6 +38,7 @@
|
||||||
#include "hw/mem/nvdimm.h"
|
#include "hw/mem/nvdimm.h"
|
||||||
#include "hw/platform-bus.h"
|
#include "hw/platform-bus.h"
|
||||||
#include "hw/display/ramfb.h"
|
#include "hw/display/ramfb.h"
|
||||||
|
#include "hw/uefi/var-service-api.h"
|
||||||
#include "hw/mem/pc-dimm.h"
|
#include "hw/mem/pc-dimm.h"
|
||||||
#include "system/tpm.h"
|
#include "system/tpm.h"
|
||||||
#include "system/block-backend.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",
|
object_class_property_set_description(oc, "v-eiointc",
|
||||||
"Enable Virt Extend I/O Interrupt Controller.");
|
"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_RAMFB_DEVICE);
|
||||||
|
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_UEFI_VARS_SYSBUS);
|
||||||
#ifdef CONFIG_TPM
|
#ifdef CONFIG_TPM
|
||||||
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_TPM_TIS_SYSBUS);
|
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_TPM_TIS_SYSBUS);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
config UEFI_VARS
|
config UEFI_VARS
|
||||||
bool
|
bool
|
||||||
default y if X86_64 || AARCH64 || RISCV64
|
default y if X86_64 || AARCH64 || RISCV64 || LOONGARCH64
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue