qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hw/arm/boot.c: Set EL3 HXen, vector lengths when direct booting kernel
@ 2022-10-27 14:02 Peter Maydell
  2022-10-27 14:02 ` [PATCH 1/2] hw/arm/boot: Set SME and SVE EL3 vector lengths when " Peter Maydell
  2022-10-27 14:02 ` [PATCH 2/2] hw/arm/boot: Set SCR_EL3.HXEn " Peter Maydell
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Maydell @ 2022-10-27 14:02 UTC (permalink / raw)
  To: qemu-arm, qemu-devel; +Cc: Jerome Forissier

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(+)

-- 
2.25.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-27 20:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-27 14:02 [PATCH 0/2] hw/arm/boot.c: Set EL3 HXen, vector lengths when direct booting kernel Peter Maydell
2022-10-27 14:02 ` [PATCH 1/2] hw/arm/boot: Set SME and SVE EL3 vector lengths when " Peter Maydell
2022-10-27 20:22   ` Richard Henderson
2022-10-27 14:02 ` [PATCH 2/2] hw/arm/boot: Set SCR_EL3.HXEn " Peter Maydell
2022-10-27 20:23   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).