tests/acpi: unit test exercising global pci hotplug off for i440fx
commit5645f996909d42e1878a434b8352c61463349d9f
authorAni Sinha <ani@anisinha.ca>
Tue, 29 Sep 2020 12:30:10 +0000 (29 18:00 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 30 Sep 2020 08:10:51 +0000 (30 04:10 -0400)
tree769ba32094961b827e6418b5ed881de3c669bafe
parentf142e4ede72853aaa7d306bc79b099caed45769b
tests/acpi: unit test exercising global pci hotplug off for i440fx

This change adds a unit test to exercise the case when hotplug is disabled
both for pci root bus and the pci bridges by passing the following two
switches to qemu:

  -global PIIX4_PM.acpi-root-pci-hotplug=off
  -global PIIX4_PM.acpi-pci-hotplug-with-bridge-support=off

bios-tables-test-allowed-diff.h documents the fact that a new DSDT acpi gold
master binary blob we need to be added to test this. We will do the actual
addition in the next patch in the series.

Signed-off-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200929123011.31836-2-ani@anisinha.ca>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/qtest/bios-tables-test-allowed-diff.h
tests/qtest/bios-tables-test.c