arch: Add optional distance-map node to FDT

The optional device tree node distance-map describes the relative
distance (memory latency) between all NUMA nodes.

Signed-off-by: Henry Wang <Henry.Wang@arm.com>
This commit is contained in:
Henry Wang
2021-08-06 19:41:33 -04:00
committed by Sebastien Boeuf
parent 165364e08b
commit 5a0a4bc505
3 changed files with 51 additions and 3 deletions

View File

@@ -1102,6 +1102,7 @@ impl Vm {
&initramfs_config,
&pci_space,
&*gic_device,
&self.numa_nodes,
)
.map_err(Error::ConfigureSystem)?;
@@ -2632,6 +2633,7 @@ mod tests {
&*gic,
&None,
&(0x1_0000_0000, 0x1_0000),
&BTreeMap::new(),
)
.is_ok())
}