[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V2 09/10] hw/riscv/virt.c: Initialize the ACPI tables
From: |
Andrew Jones |
Subject: |
Re: [PATCH V2 09/10] hw/riscv/virt.c: Initialize the ACPI tables |
Date: |
Wed, 15 Feb 2023 14:24:37 +0100 |
On Mon, Feb 13, 2023 at 08:10:37PM +0530, Sunil V L wrote:
> 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>
> Reviewed-by: Bin Meng <bmeng@tinylab.org>
> ---
> hw/riscv/virt.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c
> index 5017ba62ec..43c201c8cf 100644
> --- a/hw/riscv/virt.c
> +++ b/hw/riscv/virt.c
> @@ -1316,6 +1316,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.34.1
>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
- [PATCH V2 06/10] hw/riscv/virt: virt-acpi-build.c: Add RHCT Table, (continued)
- [PATCH V2 06/10] hw/riscv/virt: virt-acpi-build.c: Add RHCT Table, Sunil V L, 2023/02/13
- [PATCH V2 07/10] hw/riscv: meson.build: Build virt-acpi-build.c, Sunil V L, 2023/02/13
- [PATCH V2 08/10] hw/riscv/Kconfig: virt: Enable ACPI config option, Sunil V L, 2023/02/13
- [PATCH V2 10/10] MAINTAINERS: Add entry for RISC-V ACPI, Sunil V L, 2023/02/13
- [PATCH V2 09/10] hw/riscv/virt.c: Initialize the ACPI tables, Sunil V L, 2023/02/13
- Re: [PATCH V2 09/10] hw/riscv/virt.c: Initialize the ACPI tables,
Andrew Jones <=