]> git.proxmox.com Git - mirror_qemu.git/commit
hw/i386/acpi-build: Determine SMI command port just once
authorBernhard Beschow <shentey@gmail.com>
Fri, 8 Sep 2023 08:42:32 +0000 (10:42 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 22:15:05 +0000 (18:15 -0400)
commit5cdb639d25f9951a90b6b7ba31d376d8ab132a61
treece71f7168ad0b76bb55ff31423637f101e1e01e3
parentc9c8ba69d5dbe5c1c6370e1f09ebd7531509d075
hw/i386/acpi-build: Determine SMI command port just once

The SMI command port is currently hardcoded by means of the ACPI_PORT_SMI_CMD
macro. This hardcoding is Intel specific and doesn't match VIA, for example.
There is already the AcpiFadtData::smi_cmd attribute which is used when building
the FADT. Let's also use it when building the DSDT which confines SMI command
port determination to just one place. This allows it to become a property later,
thus resolving the Intel assumption.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230908084234.17642-7-shentey@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c