]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/acpi-build: Use AcpiPciHpState::root in acpi_set_pci_info
authorEric Auger <eric.auger@redhat.com>
Mon, 14 Jul 2025 08:04:59 +0000 (10:04 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Jul 2025 06:56:40 +0000 (02:56 -0400)
commitb9dc4e04c807ad3860a9ba8773b3b0e7057c31aa
treedbcc5b71e273d437a1c5c524f4327e4a5da7c078
parente87ab64e8f614ae8702209dd801ac08ca5897ff1
hw/i386/acpi-build: Use AcpiPciHpState::root in acpi_set_pci_info

pcihp acpi_set_pci_info() generic code currently uses
acpi_get_i386_pci_host() to retrieve the pci host bridge.

To make it work also on ARM we get rid of that call and
directly use AcpiPciHpState::root.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Message-Id: <20250714080639.2525563-16-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/pcihp.c