]> git.proxmox.com Git - mirror_qemu.git/commit
acpi: serial: don't use _STA method
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 15 May 2020 15:04:09 +0000 (17:04 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jun 2020 16:46:45 +0000 (12:46 -0400)
commit4b8e369b91deff3ae7d8ae1067d336a66464f472
tree9573c7a91f219871eebbd698af52e60571486571
parentf592b94f3cbd5325bcf5142509b60cb6ab252770
acpi: serial: don't use _STA method

The _STA method dates back to the days where we had a static DSDT.  The
device is listed in the DSDT table unconditionally and the _STA method
checks a bit in the isa bridge pci config space to figure whenever a
given is isa device is present or not, then evaluates to 0x0f (present)
or 0x00 (absent).

These days the DSDT is generated by qemu anyway, so if a device is not
present we can simply drop it from the DSDT instead.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200515150421.25479-5-kraxel@redhat.com>
hw/i386/acpi-build.c