mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Allow assignment of PCI segments to NUMA node
Signed-off-by: Thomas Barrett <tbarrett@crusoeenergy.com>
This commit is contained in:
@@ -701,6 +701,10 @@ impl Vm {
|
||||
node.cpus.extend(cpus);
|
||||
}
|
||||
|
||||
if let Some(pci_segments) = &config.pci_segments {
|
||||
node.pci_segments.extend(pci_segments);
|
||||
}
|
||||
|
||||
if let Some(distances) = &config.distances {
|
||||
for distance in distances.iter() {
|
||||
let dest = distance.destination;
|
||||
|
||||
Reference in New Issue
Block a user