From: Andrew Jones <andrew.jones@linux.dev>
To: kvm@vger.kernel.org, kvm-riscv@lists.infradead.org
Cc: pbonzini@redhat.com, thuth@redhat.com
Subject: [kvm-unit-tests PATCH 00/13] Enable EFI support
Date: Wed, 28 Feb 2024 16:04:16 +0100 [thread overview]
Message-ID: <20240228150416.248948-15-andrew.jones@linux.dev> (raw)
This series starts with some fixes for backtraces for bugs found
when tracing with riscv EFI builds. The series then brings EFI
support to riscv, basing the approach heavily on arm64's support
(including arm64's improvements[1]). It should now be possible
to launch tests from EFI-capable bootloaders.
[1] https://lore.kernel.org/all/20240227192109.487402-20-andrew.jones@linux.dev/
Thanks,
drew
Andrew Jones (13):
riscv: Call abort instead of assert on unhandled exceptions
riscv: show_regs: Prepare for EFI images
treewide: lib/stack: Fix backtrace
treewide: lib/stack: Make base_address arch specific
riscv: Import gnu-efi files
riscv: Tweak the gnu-efi imported code
riscv: Enable building for EFI
riscv: efi: Switch stack in _start
efi: Add support for obtaining the boot hartid
riscv: Refactor setup code
riscv: Enable EFI boot
riscv: efi: Add run script
riscv: efi: Use efi-direct by default
configure | 12 +-
lib/arm/stack.c | 13 +--
lib/arm64/stack.c | 29 +++--
lib/efi.c | 33 ++++++
lib/elf.h | 5 +
lib/riscv/asm/setup.h | 5 +
lib/riscv/processor.c | 11 +-
lib/riscv/setup.c | 170 +++++++++++++++++++++-------
lib/riscv/stack.c | 30 +++--
lib/s390x/stack.c | 12 +-
lib/stack.c | 19 +---
lib/stack.h | 26 +++--
lib/x86/stack.c | 29 +++--
riscv/Makefile | 24 +++-
riscv/cstart.S | 4 +
riscv/efi/crt0-efi-riscv64.S | 205 ++++++++++++++++++++++++++++++++++
riscv/efi/elf_riscv64_efi.lds | 142 +++++++++++++++++++++++
riscv/efi/reloc_riscv64.c | 91 +++++++++++++++
riscv/efi/run | 106 ++++++++++++++++++
riscv/flat.lds | 1 +
riscv/run | 2 +-
21 files changed, 859 insertions(+), 110 deletions(-)
create mode 100644 riscv/efi/crt0-efi-riscv64.S
create mode 100644 riscv/efi/elf_riscv64_efi.lds
create mode 100644 riscv/efi/reloc_riscv64.c
create mode 100755 riscv/efi/run
--
2.43.0
next reply other threads:[~2024-02-28 15:04 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-28 15:04 Andrew Jones [this message]
2024-02-28 15:04 ` [kvm-unit-tests PATCH 01/13] riscv: Call abort instead of assert on unhandled exceptions Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 02/13] riscv: show_regs: Prepare for EFI images Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 03/13] treewide: lib/stack: Fix backtrace Andrew Jones
2024-02-28 15:04 ` Andrew Jones
2024-02-28 17:33 ` Claudio Imbrenda
2024-02-28 17:33 ` Claudio Imbrenda
2024-02-29 3:31 ` Nicholas Piggin
2024-02-29 3:31 ` Nicholas Piggin
2024-02-29 11:48 ` Andrew Jones
2024-02-29 11:48 ` Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 04/13] treewide: lib/stack: Make base_address arch specific Andrew Jones
2024-02-28 15:04 ` Andrew Jones
2024-02-29 3:49 ` Nicholas Piggin
2024-02-29 3:49 ` Nicholas Piggin
2024-02-29 11:54 ` Andrew Jones
2024-02-29 11:54 ` Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 05/13] riscv: Import gnu-efi files Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 06/13] riscv: Tweak the gnu-efi imported code Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 07/13] riscv: Enable building for EFI Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 08/13] riscv: efi: Switch stack in _start Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 09/13] efi: Add support for obtaining the boot hartid Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 10/13] riscv: Refactor setup code Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 11/13] riscv: Enable EFI boot Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 12/13] riscv: efi: Add run script Andrew Jones
2024-02-28 15:04 ` [kvm-unit-tests PATCH 13/13] riscv: efi: Use efi-direct by default Andrew Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240228150416.248948-15-andrew.jones@linux.dev \
--to=andrew.jones@linux.dev \
--cc=kvm-riscv@lists.infradead.org \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.