mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-01 22:42:13 -06:00
microvm/acpi: use seabios with acpi=on
With acpi=off continue to use qboot. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Sergio Lopez <slp@redhat.com> Message-id: 20200915120909.20838-12-kraxel@redhat.com
This commit is contained in:
parent
55c4b06997
commit
67eb6a4007
1 changed files with 4 additions and 1 deletions
|
@ -52,6 +52,7 @@
|
||||||
#include "hw/xen/start_info.h"
|
#include "hw/xen/start_info.h"
|
||||||
|
|
||||||
#define MICROVM_QBOOT_FILENAME "qboot.rom"
|
#define MICROVM_QBOOT_FILENAME "qboot.rom"
|
||||||
|
#define MICROVM_BIOS_FILENAME "bios-microvm.bin"
|
||||||
|
|
||||||
static void microvm_set_rtc(MicrovmMachineState *mms, ISADevice *s)
|
static void microvm_set_rtc(MicrovmMachineState *mms, ISADevice *s)
|
||||||
{
|
{
|
||||||
|
@ -174,7 +175,9 @@ static void microvm_devices_init(MicrovmMachineState *mms)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bios_name == NULL) {
|
if (bios_name == NULL) {
|
||||||
bios_name = MICROVM_QBOOT_FILENAME;
|
bios_name = x86_machine_is_acpi_enabled(x86ms)
|
||||||
|
? MICROVM_BIOS_FILENAME
|
||||||
|
: MICROVM_QBOOT_FILENAME;
|
||||||
}
|
}
|
||||||
x86_bios_rom_init(get_system_memory(), true);
|
x86_bios_rom_init(get_system_memory(), true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue