qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC v1 2/4] qemu: patch guest SRAT for GPU memory


From: Philippe Mathieu-Daudé
Subject: Re: [RFC v1 2/4] qemu: patch guest SRAT for GPU memory
Date: Tue, 6 Jun 2023 06:58:12 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2

On 6/6/23 01:50, ankita@nvidia.com wrote:
From: Ankit Agrawal <ankita@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 <ankita@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

[Prev in Thread] Current Thread [Next in Thread]