]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/virt-acpi-build.c
acpi: add acpi=OnOffAuto machine property to x86 and arm virt
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 20 Mar 2020 10:01:36 +0000 (11:01 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Mar 2020 13:52:13 +0000 (09:52 -0400)
commit17e89077b7e3bc1d96540e21ddc7451c3e077049
tree47310cda860c2d8308496883b98b7beba9847160
parent9d283f85d755285bf1b1bfcb1ab275239dbf2c7b
acpi: add acpi=OnOffAuto machine property to x86 and arm virt

Remove the global acpi_enabled bool and replace it with an
acpi OnOffAuto machine property.

qemu throws an error now if you use -no-acpi while the machine
type you are using doesn't support acpi in the first place.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20200320100136.11717-1-kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/arm/virt-acpi-build.c
hw/arm/virt.c
hw/i386/acpi-build.c
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/x86.c
include/hw/acpi/acpi.h
include/hw/arm/virt.h
include/hw/i386/x86.h
softmmu/vl.c