Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 9c58104ba8732747f0238a178dfe99c6d59b37f7
      
https://github.com/tianocore/edk2/commit/9c58104ba8732747f0238a178dfe99c6d59b37f7
  Author: Ard Biesheuvel <a...@kernel.org>
  Date:   2025-05-27 (Tue, 27 May 2025)

  Changed paths:
    M ArmPlatformPkg/Sec/AArch64/Helper.S

  Log Message:
  -----------
  ArmPlatformPkg/Sec: Deal with entry at EL2 with VHE enabled

The architecture now permits HCR_EL2.E2H to be RES1, and so even though
the UEFI spec is silent on the matter, entering at EL2 with VHE enabled
is a condition that needs to be dealt with. In particular, virtual
machines running under nested virtualization on Apple M2 or newer will
enter in this manner

In this case, the CPTR_EL2 system register needs to be treated as if its
layout is identical to CPACR_EL1. Not doing so may result in all kinds
of surprises, but the most noticeable is an early crash on the use of
FP/SIMD registers, which get disabled inadvertently by this code.

Signed-off-by: Ard Biesheuvel <a...@kernel.org>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to