Skip to content

Commit e1092f7

Browse files
committed
hw/uefi-vars-sysbus: allow for loongarch virt
Allow the device being added to loongarch virt VMs. Reviewed-by: Daniel P. Berrangé <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]> Message-ID: <[email protected]>
1 parent 5807508 commit e1092f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

hw/loongarch/virt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "hw/mem/nvdimm.h"
3939
#include "hw/platform-bus.h"
4040
#include "hw/display/ramfb.h"
41+
#include "hw/uefi/var-service-api.h"
4142
#include "hw/mem/pc-dimm.h"
4243
#include "system/tpm.h"
4344
#include "system/block-backend.h"
@@ -1207,6 +1208,7 @@ static void virt_class_init(ObjectClass *oc, void *data)
12071208
object_class_property_set_description(oc, "v-eiointc",
12081209
"Enable Virt Extend I/O Interrupt Controller.");
12091210
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE);
1211+
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_UEFI_VARS_SYSBUS);
12101212
#ifdef CONFIG_TPM
12111213
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_TPM_TIS_SYSBUS);
12121214
#endif

hw/uefi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
config UEFI_VARS
22
bool
3-
default y if X86_64 || AARCH64 || RISCV64
3+
default y if X86_64 || AARCH64 || RISCV64 || LOONGARCH64

0 commit comments

Comments
 (0)