hw/acpi/viot: sort VIOT ACPI table entries by PCI host bridge min_bus
commit68f14a87291343bcec2bfcec7fdc0c8a3c01f66c
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 25 May 2022 17:32:31 +0000 (25 18:32 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Jun 2022 23:32:49 +0000 (9 19:32 -0400)
tree1acaf67ed4314a505c0ddf2b4529484140b2eddb
parent4c8f2ffff1bffcf4649c5373a50f2475c598eb0e
hw/acpi/viot: sort VIOT ACPI table entries by PCI host bridge min_bus

This ensures that the VIOT ACPI table output is always stable for a given PCI
topology by ensuring that entries are ordered according to min_bus.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220525173232.31429-6-mark.cave-ayland@ilande.co.uk>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/viot.c