pci: move acpi-index uniqueness check to generic PCI device code
commit041b1c40f38a63baff7c375d1e3df6f365aa5882
authorIgor Mammedov <imammedo@redhat.com>
Thu, 2 Mar 2023 16:15:38 +0000 (2 17:15 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Mar 2023 17:39:00 +0000 (7 12:39 -0500)
tree8bd1aa91fce2343345a7212e61a7f5ceff2b7fa3
parent0a7044eb643d035e6c235ca94760a1e61d165cd6
pci: move acpi-index uniqueness check to generic PCI device code

acpi-index is now working with non-hotpluggable buses
(pci/q35 machine hostbridge), it can be used even if
ACPI PCI hotplug is disabled and as result acpi-index
uniqueness check will be omitted (since the check is
done by ACPI PCI hotplug handler, which isn't wired
when ACPI PCI hotplug is disabled).
Move check and related code to generic PCIDevice so it
would be independent of ACPI PCI hotplug.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20230302161543.286002-30-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/pcihp.c
hw/pci/pci.c