Skip to content

Fixes for running U-boot under QEMU/KVM

Ard Biesheuvel u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v25 patches 0 repliesSuperseded
  3. v15 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- reinstate flash write accessors (patch #5)
- rebase onto 2020.07

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5arm: enable allocate-on-read for LPAE's DCACHE_WRITEBACK/_WRITETHROUGHarch/arm/include/asm/system.h+19 -42 replies
2/5arm: qemu: enable LPAE on 32-bitconfigs/qemu_arm_defconfig+1 -01 reply
3/5arm: qemu: implement enable_caches()board/emulation/qemu-arm/qemu-arm.c+7 -03 replies
4/5arm: qemu: disable the EFI workaround for older GRUBconfigs/qemu_arm_defconfig+1 -01 reply
5/5arm: qemu: override flash accessors to use virtualizable instructionsboard/emulation/qemu-arm/qemu-arm.c include/configs/qemu-arm.h+46 -02 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchHeinrich SchuchardtAndre Przywara
1/5R-b
2/5A-b
3/5R-b R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] Fixes for running U-boot under QEMU/KVM

This series fixes a number of issues that exist in the QEMU/mach-virt port of u-boot, and that prevent it from executing correctly under virtualization (as opposed to TCG emulation)

As the Linux EFI subsystem maintainer, I am looking to increase test coverage for the EFI related changes that are under development for Linux, and one of the things I plan to do is start using U-boot as test firmware for boot testing. This can be done under TCG emulation, but given how loosely TCG implements the architecture, it is better to test under virtualization as well.

With these changes applied, u-boot can boot Linux in EFI mode under KVM.

Changes since v2:
- reinstate flash write accessors (patch #5)
- rebase onto 2020.07

Changes since v1:
- fix LPAE memory type for DCACHE_WRITETHROUGH as well, and add some comments to clarify what the values are based on (patch #1)
- only override the flash accessors that we need to (patch #5)
- add Heinrich's ack to #2 and #4

Cc Tom Rini <[email protected]>
Cc Andre Przywara <[email protected]>
Cc Heinrich Schuchardt <[email protected]>
Cc Tuomas Tynkkynen <[email protected]>

Ard Biesheuvel (5):
arm: enable allocate-on-read for LPAE's DCACHE_WRITEBACK/_WRITETHROUGH
arm: qemu: enable LPAE on 32-bit
arm: qemu: implement enable_caches()
arm: qemu: disable the EFI workaround for older GRUB
arm: qemu: override flash accessors to use virtualizable instructions

 arch/arm/include/asm/system.h       | 23 +++++++--
 board/emulation/qemu-arm/qemu-arm.c | 52 ++++++++++++++++++++
 configs/qemu_arm_defconfig          |  2 +
 include/configs/qemu-arm.h          |  1 +
 4 files changed, 74 insertions(+), 4 deletions(-)
Signature · 1 line
2.27.0