]> git.proxmox.com Git - mirror_qemu.git/commit
acpi: pc/35: sanitize _GPE declaration order
authorIgor Mammedov <imammedo@redhat.com>
Mon, 17 Oct 2022 10:21:45 +0000 (12:21 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Nov 2022 19:08:17 +0000 (14:08 -0500)
commitd12dbd44e42fa0e851d62e0804f78bab5bd148d5
tree2fd3f62cee0c114425bc312c48e84e3d9b342d3f
parent11787b28b0e216e4b1cd9d1f76c4544a6c674f17
acpi: pc/35: sanitize _GPE declaration order

Move _GPE block declaration before it gets referenced by other
hotplug handlers. While at it move PCI hotplug (_E01) handler
after PCI tree description to avoid forward reference to
to not yet declared methods/devices.

PS:
Forward 'usage' usualy is fine as long as it's hidden within
method, however 'iasl' may print warnings. So be nice
to iasl/guest OS and do things in proper order.

PS2: Also follow up patches will move some of hotplug code
from PCI tree to _E01 and that also requires PCI Device
nodes build first, before Scope can reuse that from
global context.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20221017102146.2254096-11-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