Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH v2 0/3] updates for "OvmfPkg/RiscVVirt/README.md" -- push #4830

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

lersek
Copy link
Member

@lersek lersek commented Sep 14, 2023

Original posting: [PATCH 0/3] updates for "OvmfPkg/RiscVVirt/README.md"
http://mid.mail-archive.com/20230913105551.12680-1-lersek@redhat.com
https://edk2.groups.io/g/devel/message/108575
https://listman.redhat.com/archives/edk2-devel-archive/2023-September/067875.html

This v2 has never been posted to the list, but it only incorporates a small fix, addressing Drew's comment under patch#1. The change is noted in the commit message of patch#1. The interdiff is:

1:  f99c0f999a47 ! 1:  4c8053b787ca OvmfPkg/RiscVVirt/README: explain that "-bios" is only useful with TCG
    @@ Commit message
         Cc: Jordan Justen <jordan.l.justen@intel.com>
         Cc: Sunil V L <sunilvl@ventanamicro.com>
         Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    +    [lersek@redhat.com: '-bios' is rejected with KVM accel (Drew)]
    +    Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
    +    Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
     
      ## OvmfPkg/RiscVVirt/README.md ##
     @@ OvmfPkg/RiscVVirt/README.md: then specify that binary for QEMU, with the following additional command line
    @@ OvmfPkg/RiscVVirt/README.md: then specify that binary for QEMU, with the followi
     +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 externally loaded OpenSBI binary is ignored.
    ++any OpenSBI binary specified with `-bios` is rejected.

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 <andrei.warkentin@intel.com>
Cc: Andrew Jones <ajones@ventanamicro.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
[lersek@redhat.com: '-bios' is rejected with KVM accel (Drew)]
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
"acpi=off" is arguably unusual with UEFI guest OSes; add a note to explain
it. Original explanation by Drew Jones.

Cc: Andrei Warkentin <andrei.warkentin@intel.com>
Cc: Andrew Jones <ajones@ventanamicro.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Direct (fw_cfg) kernel boot works on the RiscVVirt firmware platform too;
I've tested it after extracting the kernel, initrd, and kernel command
line from "openSUSE-Tumbleweed-RISC-V-E20-efi.riscv64.raw". Document this
type of boot, because at least historically, fw_cfg kernel boot was
implemented differently between OVMF and ArmVirtQemu. Thanks: Drew, Sunil.

Cc: Andrei Warkentin <andrei.warkentin@intel.com>
Cc: Andrew Jones <ajones@ventanamicro.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
@lersek lersek added the push Auto push patch series in PR if all checks pass label Sep 14, 2023
@mergify mergify bot merged commit 29cce33 into tianocore:master Sep 14, 2023
103 checks passed
@lersek lersek deleted the riscv-readme-v2 branch September 14, 2023 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
push Auto push patch series in PR if all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant