Page MenuHomeFreeBSD

arm64: Boot into VHE mode when able
ClosedPublic

Authored by andrew on Jul 23 2024, 11:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 5:58 PM
Unknown Object (File)
Fri, Jan 24, 5:05 PM
Unknown Object (File)
Thu, Jan 23, 6:39 PM
Unknown Object (File)
Sat, Jan 11, 5:49 PM
Unknown Object (File)
Dec 26 2024, 7:05 PM
Unknown Object (File)
Dec 1 2024, 10:08 PM
Unknown Object (File)
Nov 24 2024, 10:46 AM
Unknown Object (File)
Oct 19 2024, 12:11 PM
Subscribers

Details

Summary

When FEAT_VHE is present the HCR_EL2 E2H field will be implemented. Try
setting this and checking if it's still set to decide if we can boot
into VHE mode or not.

When it is implemented the kernel will boot into EL2 rather than EL1
it currently boots to. The parts of the kernel that need to know if
they are in EL1 or EL2 have been updated other than the CoreSight
driver as there doesn't appear to be any way to currently use it and
it will be updated soon with the new HWT framework.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Aug 21 2024, 8:48 AM
This revision was automatically updated to reflect the committed changes.