acpi/pci: Move Generic Initiator object handling into acpi/pci.*
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 16 Sep 2024 17:10:11 +0000 (18:10 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 4 Nov 2024 21:03:24 +0000 (16:03 -0500)
commitf74e78220dbfec557922eb6e8ec0a78d08743e02
treec11ab922db0c49fbe9a500f4fe4ed40e137bd745
parentdf9ac7254fd943c834f9666969b0852b50e91692
acpi/pci: Move Generic Initiator object handling into acpi/pci.*

Whilst ACPI SRAT Generic Initiator Afinity Structures are able to refer to
both PCI and ACPI Device Handles, the QEMU implementation only implements
the PCI Device Handle case.  For now move the code into the existing
hw/acpi/pci.c file and header.  If support for ACPI Device Handles is
added in the future, perhaps this will be moved again.

Also push the struct AcpiGenericInitiator down into the c file as not
used outside pci.c.

Suggested-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: "Huang, Ying" <ying.huang@intel.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20240916171017.1841767-7-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/acpi_generic_initiator.c [deleted file]
hw/acpi/meson.build
hw/acpi/pci.c
hw/arm/virt-acpi-build.c
hw/i386/acpi-build.c
include/hw/acpi/acpi_generic_initiator.h [deleted file]
include/hw/acpi/pci.h