hw/pci: switch to a generic hotplug handling for PCIDevice
make qdev_unplug()/device_set_realized() to call hotplug handler'splug/unplug methods if available and remove not needed anymorehot(un)plug handling from PCIDevice.
In case if hotplug handler is not available, revert to the legacy...
acpi-test: update expected AML since recent changes
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
acpi unit-test: compare DSDT and SSDT tables against expected values
This test will run only if iasl is installed on the host machine.The test plan: 1. Dumps the ACPI tables as AML on the disk. 2. Runs iasl to disassembly the tables into ASL files. 3. Runs iasl to disassembly the offline AML files into ASL files....
acpi unit-test: extract iasl executable from configuration
The test checked if iasl is installed by running "iasl" and checking the error output.It is better to use the iasl executable as appearsin configuration.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>...
acpi unit-test: added script to rebuild the expected aml files
Acpi unit-test will fail every time the acpi tables change.This script rebuild the expected aml files, so the testwill pass. It also validates the modifications.
acpi unit-test: hook to rebuild expected aml files
When running the test with TEST_ACPI_REBUILD_AML=y environmentvariable, the test will rebuild and validate the expected amlfiles.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests: fix acpi to work on bigendian host
Double endianness convertion make this test failing on POWERPC machinerunning in big-endian.
This fixes the test to success on big-endian host.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
acpi unit-test: renamed ssdt_tables to tables
Just a refactoring, ssdt_tables name was confusing asit included other tables as well.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
acpi unit-test: resolved iasl crash
It seems that iasl has an issue when disassemblessome ACPI tables using the command line:iasl -e DSDT -e SSDT -d HPET
Modified the iasl command line to "iasl -d HPET" until the problem is solved. The command lineremained the same for DSDT and SSDT tables....
acpi unit-test: do not fail on asl mismatch
The asl comparison will break every time the ACPItables are updated. This may break the git bisect.Instead of failing print a warning on stderrincluding the retained asl files, so they can becompared offline....
View revisions
Also available in: Atom