hw/riscv: virt: Exit if the user provided -bios in combination with KVM
commit8f013700ebf96edb4d481e4d2471c3ed246c58ef
authorRalf Ramsauer <ralf.ramsauer@oth-regensburg.de>
Fri, 1 Apr 2022 12:18:42 +0000 (1 14:18 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 22 Apr 2022 00:35:16 +0000 (22 10:35 +1000)
tree28220e58c4211f26312dab5c17bb957740e3ebd9
parentac684717c338b82c832c2013978cb2815a3cd340
hw/riscv: virt: Exit if the user provided -bios in combination with KVM

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.

Better exit in that case to not confuse the user.

Signed-off-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Message-Id: <20220401121842.2791796-1-ralf.ramsauer@oth-regensburg.de>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c