SbsaQemu can configure with numa-related arguments, but OS cannot identify the numa architecture without SRAT tables. We add supporting for generating SRAT tables at runtime to solve this issue.
Changes in v2: - get the information of numa via SMC calls rather than parse DT.
Changes in v3 - Considering the combination of CPU and memory nodes when counting numa nodes.
Xiong Yining (1): SbsaQemu: AcpiDxe: Create SRAT table at runtime
.../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.c | 91 +++++++++++++++++++ .../Drivers/SbsaQemuAcpiDxe/SbsaQemuAcpiDxe.h | 28 ++++++ .../SbsaQemu/Include/Library/QemuSbsaSmc.h | 10 ++ .../Library/SbsaQemuSmc/SbsaQemuSmc.c | 31 +++++++ .../Library/SbsaQemuSmc/SbsaQemuSmc.inf | 1 + 5 files changed, 161 insertions(+)