Skip to content

hw/arm/boot.c: Set EL3 HXen, vector lengths when direct booting kernel

Peter Maydell qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/arm/boot: Set SME and SVE EL3 vector lengths when booting kernelhw/arm/boot.c+2 -01 reply
2/2hw/arm/boot: Set SCR_EL3.HXEn when booting kernelhw/arm/boot.c+3 -01 reply

Reviews trailers per patch

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

PatchRichard Henderson
1/2R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] hw/arm/boot.c: Set EL3 HXen, vector lengths when direct booting kernel

When we direct boot a kernel on a CPU which emulates EL3, we need to set up the EL3 system registers as the Linux kernel documentation specifies:
https://www.kernel.org/doc/Documentation/arm64/booting.rst

Mostly we get this right, but working through the list of config bits that need to be set, I found that we'd missed a few things:

- FEAT_HCX: SCR_EL3.HXEn (bit 38) must be initialised to 0b1
- SVE: ZCR_EL3.LEN should be initialized to a sensible value. We leave it at 0, which means the guest can only use the minimum vector length supported by the CPU, not the full range.
- SME: ditto for SMCR_EL3.LEN

This series fixes those.

thanks
-- PMM

Peter Maydell (2):
hw/arm/boot: Set SME and SVE EL3 vector lengths when booting kernel hw/arm/boot: Set SCR_EL3.HXEn when booting kernel

 hw/arm/boot.c | 5 +++++
 1 file changed, 5 insertions(+)
Signature · 1 line
2.25.1