summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMark Cave-Ayland2022-05-25 19:32:29 +0200
committerMichael S. Tsirkin2022-06-10 01:32:49 +0200
commite5f73c8397dddef8fc4b2fca76ffc153070a5db1 (patch)
tree5cb97dfecd4a6923cfbfd82894aab9b63ea0a042 /python
parenthw/acpi/viot: move the individual PCI host bridge entry generation to a new f... (diff)
downloadqemu-e5f73c8397dddef8fc4b2fca76ffc153070a5db1.tar.gz
qemu-e5f73c8397dddef8fc4b2fca76ffc153070a5db1.tar.xz
qemu-e5f73c8397dddef8fc4b2fca76ffc153070a5db1.zip
hw/acpi/viot: build array of PCI host bridges before generating VIOT ACPI table
Perform the generation of the VIOT ACPI table in 2 separate passes: the first pass enumerates all of the PCI host bridges and adds the min_bus and max_bus information to an array. Once this is done the VIOT table header is generated using the size of the array to calculate the node count, which means it is no longer necessary to use a sub-array to hold the PCI host bridge range information along with viommu_off. Finally the PCI host bridge array is iterated again to add the required entries to the final VIOT ACPI table. 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-4-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>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions