From a7fba8105f1cc9004f425ec04d259d12132511dc Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 5 Oct 2021 11:09:54 +0100 Subject: [PATCH] vmm: Customise PCI device name based on segment id Signed-off-by: Rob Bradford --- vmm/src/pci_segment.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vmm/src/pci_segment.rs b/vmm/src/pci_segment.rs index 8cc15a1ee..5796c7b08 100644 --- a/vmm/src/pci_segment.rs +++ b/vmm/src/pci_segment.rs @@ -393,6 +393,10 @@ impl Aml for PciSegment { let prt = aml::Name::new("_PRT".into(), &aml::Package::new(prt_package_list)); pci_dsdt_inner_data.push(&prt); - aml::Device::new("_SB_.PCI0".into(), pci_dsdt_inner_data).to_aml_bytes() + aml::Device::new( + format!("_SB_.PCI{:X}", self.id).as_str().into(), + pci_dsdt_inner_data, + ) + .to_aml_bytes() } }