Skip to content

Commit 5807508

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

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

hw/riscv/virt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
#include "hw/acpi/aml-build.h"
5858
#include "qapi/qapi-visit-common.h"
5959
#include "hw/virtio/virtio-iommu.h"
60+
#include "hw/uefi/var-service-api.h"
6061

6162
/* KVM AIA only supports APLIC MSI. APLIC Wired is always emulated by QEMU. */
6263
static bool virt_use_kvm_aia_aplic_imsic(RISCVVirtAIAType aia_type)
@@ -1935,6 +1936,7 @@ static void virt_machine_class_init(ObjectClass *oc, void *data)
19351936
hc->plug = virt_machine_device_plug_cb;
19361937

19371938
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_RAMFB_DEVICE);
1939+
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_UEFI_VARS_SYSBUS);
19381940
#ifdef CONFIG_TPM
19391941
machine_class_allow_dynamic_sysbus_dev(mc, TYPE_TPM_TIS_SYSBUS);
19401942
#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
3+
default y if X86_64 || AARCH64 || RISCV64

0 commit comments

Comments
 (0)