@@ -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)
{
@@ -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
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 <sameo@linux.intel.com> --- hw/i386/acpi-build.c | 2 +- hw/i386/acpi-build.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)