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
F99147737: D46078.id141259.diff
Sun, Oct 6, 8:06 PM
Unknown Object (File)
Fri, Oct 4, 7:02 PM
Unknown Object (File)
Fri, Oct 4, 7:02 PM
Unknown Object (File)
Thu, Oct 3, 8:23 PM
Unknown Object (File)
Wed, Oct 2, 6:45 PM
Unknown Object (File)
Wed, Oct 2, 11:54 AM
Unknown Object (File)
Tue, Oct 1, 12:59 PM
Unknown Object (File)
Tue, Oct 1, 6:40 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58776
Build 55664: arc lint + arc unit