On Thu, 14 Sep 2023 19:45:58 -0700
<ankita@nvidia.com> wrote:
From: Ankit Agrawal <ankita@nvidia.com>
During bootup, Linux kernel parse the ACPI SRAT to determine the PXM ids.
This allows for the creation of NUMA nodes for each unique id.
Insert a series of the unique PXM ids in the VM SRAT ACPI table. The
range of nodes can be determined from the "dev_mem_pxm_start" and
"dev_mem_pxm_count" object properties associated with the device. These
nodes as made MEM_AFFINITY_HOTPLUGGABLE. This allows the kernel to create
memory-less NUMA nodes on bootup to which a subrange (or entire range) of
device memory can be added/removed.
QEMU already has 'memory devices'. perhaps this case belongs to the same class
CCing David.