OSDN Git Service

hw/acpi: define PIIX4 acpi pci hotplug property strings at a single place
authorAni Sinha <ani@anisinha.ca>
Mon, 16 Aug 2021 08:32:14 +0000 (14:02 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 4 Sep 2021 13:07:45 +0000 (09:07 -0400)
commitaa29466b48cdae3c42fb305f135d1bfb884b9930
treeb0a42ecadb67224c5e1d08c445b025d1302bc015
parent699f2e535d930017153423e0f326b34b29ad1f54
hw/acpi: define PIIX4 acpi pci hotplug property strings at a single place

Now that we have "acpi-pci-hotplug-with-bridge-support" PIIX4 PM property being
used for both q35 and i440fx machine types, it is better that we defined this
property string at a single place within a header file like other PIIX4
properties. We can then use this single definition at all the places that needs
it instead of duplicating the string everywhere. While at it, this change also
adds a definition for "acpi-root-pci-hotplug" PIIX4 PM property and uses
this definition at all places that were formally using the string value.

Signed-off-by: Ani Sinha <ani@anisinha.ca>
Message-Id: <20210816083214.105740-1-ani@anisinha.ca>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/ich9.c
hw/acpi/piix4.c
hw/i386/acpi-build.c
hw/i386/pc.c
hw/i386/pc_q35.c
include/hw/acpi/acpi.h