mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-04 19:11:11 +00:00
vmm: Customise PCI device name based on segment id
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
8b67298ad8
commit
a7fba8105f
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user