From 5242bae5ddbb1acc1369a94ecab8ee62b6a54d77 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 13 Sep 2023 11:08:14 +0200 Subject: OvmfPkg/RiscVVirt/README: explain that "-bios" is only useful with TCG Riscv64 KVM services SBI calls internally, so OpenSBI is not used in such setups. Restrict the "-bios" flag accordingly. Thanks: Andrei, Drew. Cc: Andrei Warkentin Cc: Andrew Jones Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Jordan Justen Cc: Sunil V L Signed-off-by: Laszlo Ersek [lersek@redhat.com: '-bios' is rejected with KVM accel (Drew)] Reviewed-by: Andrew Jones Reviewed-by: Sunil V L --- OvmfPkg/RiscVVirt/README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OvmfPkg') diff --git a/OvmfPkg/RiscVVirt/README.md b/OvmfPkg/RiscVVirt/README.md index dbb40bb..598e4e3 100644 --- a/OvmfPkg/RiscVVirt/README.md +++ b/OvmfPkg/RiscVVirt/README.md @@ -86,3 +86,8 @@ then specify that binary for QEMU, with the following additional command line option: -bios $OPENSBI_DIR/build/platform/generic/firmware/fw_dynamic.bin + +Note that the above only makes a difference with software emulation (which you +can force with `-M accel=tcg`). With hardware virtualization (`-M accel=kvm`), +KVM services the SBI (Supervisor Binary Interface) calls internally, therefore +any OpenSBI binary specified with `-bios` is rejected. -- cgit v1.1