[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 14/23] hw: i386: Export the i386 ACPI SRAT build
From: |
Samuel Ortiz |
Subject: |
[Qemu-devel] [PATCH v4 14/23] hw: i386: Export the i386 ACPI SRAT build method |
Date: |
Thu, 1 Nov 2018 11:22:54 +0100 |
This is the standard way of building SRAT on x86 platfoms. But future
machine types could decide to define their own custom SRAT build method
through the ACPI builder methods.
Moreover, we will also need to reach build_srat() from outside of
acpi-build in order to use it as the ACPI builder SRAT build method.
Signed-off-by: Samuel Ortiz <address@hidden>
---
hw/i386/acpi-build.c | 2 +-
hw/i386/acpi-build.h | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 1ef1a38441..673c5dfafc 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -1615,7 +1615,7 @@ build_tpm2(GArray *table_data, BIOSLinker *linker, GArray
*tcpalog)
#define HOLE_640K_START (640 * KiB)
#define HOLE_640K_END (1 * MiB)
-static void
+void
build_srat(GArray *table_data, BIOSLinker *linker,
MachineState *machine, AcpiConfiguration *acpi_conf)
{
diff --git a/hw/i386/acpi-build.h b/hw/i386/acpi-build.h
index 065a1d8250..d73c41fe8f 100644
--- a/hw/i386/acpi-build.h
+++ b/hw/i386/acpi-build.h
@@ -4,6 +4,11 @@
#include "hw/acpi/acpi.h"
+/* ACPI SRAT (Static Resource Affinity Table) build method for x86 */
+void
+build_srat(GArray *table_data, BIOSLinker *linker,
+ MachineState *machine, AcpiConfiguration *acpi_conf);
+
void acpi_setup(MachineState *machine, AcpiConfiguration *acpi_conf);
#endif
--
2.19.1
- Re: [Qemu-devel] [PATCH v4 05/23] hw: arm: Switch to the AML build RSDP building routine, (continued)
- [Qemu-devel] [PATCH v4 11/23] hw: acpi: Export the MCFG getter, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 08/23] hw: i386: Move PCI host definitions to pci_host.h, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 12/23] hw: acpi: Do not create hotplug method when handler is not defined, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 13/23] hw: i386: Make the hotpluggable memory size property more generic, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 09/23] hw: acpi: Export the PCI host and holes getters, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 10/23] hw: acpi: Export and generalize the PCI host AML API, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 07/23] hw: acpi: Factorize _OSC AML across architectures, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 14/23] hw: i386: Export the i386 ACPI SRAT build method,
Samuel Ortiz <=
- [Qemu-devel] [PATCH v4 15/23] hw: acpi: Fix memory hotplug AML generation error, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 06/23] hw: acpi: Generalize AML build routines, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 16/23] hw: acpi: Export the PCI hotplug API, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 17/23] hw: i386: Export the MADT build method, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 21/23] hw: pci-host: piix: Return PCI host pointer instead of PCI bus, Samuel Ortiz, 2018/11/01
- [Qemu-devel] [PATCH v4 18/23] hw: acpi: Retrieve the PCI bus from AcpiPciHpState, Samuel Ortiz, 2018/11/01