pcihp: move PCI _DSM function 0 prolog into separate function
commit0a4584fca3b255fb75437d8b95491533512ed515
authorIgor Mammedov <imammedo@redhat.com>
Thu, 2 Mar 2023 16:15:23 +0000 (2 17:15 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Mar 2023 17:39:00 +0000 (7 12:39 -0500)
tree221170b859130e88afd0888721adb49335dc212f
parentbd95cd5323293091d2edb168a8571f06aae40a4a
pcihp: move PCI _DSM function 0 prolog into separate function

it will be reused by follow up patches that will implement
static _DSM for non-hotpluggable devices.

no functional AML change, only context one, where 'cap' (Local1)
initialization is moved after UUID/revision checks.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20230302161543.286002-15-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c