mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +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));
|
let prt = aml::Name::new("_PRT".into(), &aml::Package::new(prt_package_list));
|
||||||
pci_dsdt_inner_data.push(&prt);
|
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…
x
Reference in New Issue
Block a user