On 6/6/23 01:50, ank...@nvidia.com wrote:
From: Ankit Agrawal <ank...@nvidia.com>

The guest VM adds the GPU memory as (upto 8) separate memory-less NUMA
nodes. ACPI SRAT need to thus insert proximity domains and tag them as
MEM_AFFINITY_HOTPLUGGABLE. The VM kernel can then parse the SRAT and
create NUMA nodes.

Signed-off-by: Ankit Agrawal <ank...@nvidia.com>
---
  hw/arm/virt-acpi-build.c | 54 ++++++++++++++++++++++++++++++++++++++++
  1 file changed, 54 insertions(+)

diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c


  /*
   * ACPI spec, Revision 5.1
   * 5.2.16 System Resource Affinity Table (SRAT)
@@ -568,6 +620,8 @@ build_srat(GArray *table_data, BIOSLinker *linker, 
VirtMachineState *vms)

There is a x86 build_srat() equivalent.

So some abstraction in hw/acpi/srat.c is possible.

      }
+ build_srat_devmem(table_data);
+
      acpi_table_end(linker, &table);
  }


Reply via email to