]> git.proxmox.com Git - mirror_qemu.git/commit
pc: acpi-build: drop template patching and create Device(SMC) dynamically
authorIgor Mammedov <imammedo@redhat.com>
Fri, 20 Feb 2015 18:22:12 +0000 (18:22 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 1 Mar 2015 11:33:22 +0000 (12:33 +0100)
commit8ac6f7a6d64386426daa6c34676d296cafe19a80
tree8eb0555d22458061982d3f59d137529cd8dd28d8
parent1142e45ffdc5bf76ae920a25495e13223f5d5ed2
pc: acpi-build: drop template patching and create Device(SMC) dynamically

patch moves SMC device into SSDT and creates it only
when device is present, which makes ACPI tables smaller
in default case when device is not present.

Also it fixes wrong IO range in CRS if "iobase"
property is set to a non default value.

PS:
Testing with XP shows that current default "iobase"
used SMC device conflicts with floppy controller IO,
but it's topic for another patch and I'd leave it
to SMC device author for resolving conflict.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
CC: agraf@suse.de
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/i386/acpi-dsdt-isa.dsl
hw/i386/acpi-dsdt.dsl
hw/i386/q35-acpi-dsdt.dsl