Page MenuHomeFreeBSD

arm64/vmm: Teach the switcher about new registers
ClosedPublic

Authored by andrew on Jul 23 2024, 11:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 3:55 AM
Unknown Object (File)
Wed, Oct 15, 3:55 AM
Unknown Object (File)
Wed, Oct 15, 3:55 AM
Unknown Object (File)
Tue, Oct 14, 6:37 PM
Unknown Object (File)
Sat, Oct 11, 11:14 AM
Unknown Object (File)
Thu, Oct 9, 4:46 AM
Unknown Object (File)
Thu, Oct 2, 4:58 PM
Unknown Object (File)
Sep 17 2025, 11:12 PM
Subscribers

Details

Summary

To support booting the kernel in EL2 some of the EL0 and EL1 registers
are changed to point to an EL2 version. To get access to the EL0/EL1
version of these registers we need to use the new EL02 and EL12
registers, e.g. to access elr_el1 from the host we would use elr_el12.

Add macros that can be different on VHE vs non-VHE code so these
registers can be accessed in the correct way.

Sponsored by: Arm Ltd

Diff Detail

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