From b59f1d90ddd807cc5e3429ae9b696ee2e6872666 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 5 Oct 2021 11:14:28 +0100 Subject: [PATCH] vmm: Expose _SEG with segment ID for PCI bus Signed-off-by: Rob Bradford --- vmm/src/pci_segment.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/pci_segment.rs b/vmm/src/pci_segment.rs index 5796c7b08..404f80541 100644 --- a/vmm/src/pci_segment.rs +++ b/vmm/src/pci_segment.rs @@ -311,7 +311,7 @@ impl Aml for PciSegment { pci_dsdt_inner_data.push(&cid); let adr = aml::Name::new("_ADR".into(), &aml::ZERO); pci_dsdt_inner_data.push(&adr); - let seg = aml::Name::new("_SEG".into(), &aml::ZERO); + let seg = aml::Name::new("_SEG".into(), &self.id); pci_dsdt_inner_data.push(&seg); let uid = aml::Name::new("_UID".into(), &aml::ZERO); pci_dsdt_inner_data.push(&uid);