[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/10] hw/riscv/virt.c: Initialize the ACPI tables
From: |
Sunil V L |
Subject: |
[PATCH 09/10] hw/riscv/virt.c: Initialize the ACPI tables |
Date: |
Thu, 2 Feb 2023 10:22:22 +0530 |
When the "acpi=on", ACPI tables need to be added. Detect the option
and initialize the ACPI tables.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
---
hw/riscv/virt.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
index 26caea59ff..f1f5612c69 100644
--- a/hw/riscv/virt.c
+++ b/hw/riscv/virt.c
@@ -1324,6 +1324,10 @@ static void virt_machine_done(Notifier *notifier, void
*data)
if (kvm_enabled()) {
riscv_setup_direct_kernel(kernel_entry, fdt_load_addr);
}
+
+ if (virt_is_acpi_enabled(s)) {
+ virt_acpi_setup(s);
+ }
}
static void virt_machine_init(MachineState *machine)
--
2.38.0
- Re: [PATCH 04/10] hw/riscv/virt: virt-acpi-build.c: Add basic ACPI tables, (continued)
- [PATCH 05/10] hw/riscv/virt: virt-acpi-build.c: Add RINTC in MADT, Sunil V L, 2023/02/01
- [PATCH 06/10] hw/riscv/virt: virt-acpi-build.c: Add RHCT Table, Sunil V L, 2023/02/01
- [PATCH 08/10] hw/riscv/Kconfig: virt: Enable ACPI config options, Sunil V L, 2023/02/01
- [PATCH 07/10] hw/riscv: meson.build: Build virt-acpi-build.c, Sunil V L, 2023/02/01
- [PATCH 09/10] hw/riscv/virt.c: Initialize the ACPI tables,
Sunil V L <=
- [PATCH 10/10] MAINTAINERS: Add entry for RISC-V ACPI, Sunil V L, 2023/02/01