The -bios option is silently ignored if used in combination with -enable-kvm. The reason is that the machine starts in S-Mode, and the bios typically runs in M-Mode.
Warn the user that the bios won't be loaded. Signed-off-by: Ralf Ramsauer <ralf.ramsa...@oth-regensburg.de> --- hw/riscv/virt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 4496a15346..a4d13114ee 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -1312,6 +1312,9 @@ static void virt_machine_init(MachineState *machine) * when KVM is enabled. */ if (kvm_enabled()) { + if (machine->firmware && strcmp(machine->firmware, "none")) + warn_report("BIOS is not supported in combination with KVM. " + "Ignoring BIOS."); g_free(machine->firmware); machine->firmware = g_strdup("none"); } -- 2.32.0