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
F95097491: D46078.diff
Thu, Sep 19, 8:42 AM
Unknown Object (File)
Wed, Sep 18, 9:48 AM
Unknown Object (File)
Sat, Sep 14, 4:59 AM
Unknown Object (File)
Wed, Sep 11, 4:01 AM
Unknown Object (File)
Tue, Sep 10, 4:38 PM
Unknown Object (File)
Sat, Sep 7, 1:02 PM
Unknown Object (File)
Sat, Sep 7, 10:16 AM
Unknown Object (File)
Thu, Sep 5, 1:45 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 Not Applicable
Unit
Tests Not Applicable