Page MenuHomeFreeBSD

arm64/vmm: Move vttbr_el2 & vtimer into struct hypctx
ClosedPublic

Authored by kajetan.puchalski_arm.com on Apr 21 2026, 11:09 AM.
Tags
None
Referenced Files
F167664988: D56554.id176986.diff
Sun, Aug 23, 3:56 PM
F167649251: D56554.id176276.diff
Sun, Aug 23, 12:32 PM
F167642349: D56554.id176260.diff
Sun, Aug 23, 10:54 AM
F167626630: D56554.id178191.diff
Sun, Aug 23, 7:18 AM
F167621339: D56554.id176105.diff
Sun, Aug 23, 5:57 AM
F167614478: D56554.id180376.diff
Sun, Aug 23, 4:12 AM
F167610075: D56554.id179461.diff
Sun, Aug 23, 3:05 AM
F167607500: D56554.id176099.diff
Sun, Aug 23, 2:23 AM
Subscribers

Details

Summary

Move vttbr_el2 & vtimer from struct hyp into struct hypctx to streamline
the logic and handle them in the same way as other *_el2 registers are
already being handled.

Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74147
Build 71030: arc lint + arc unit

Event Timeline

Update with changes to other commits in the stack

Encode VNCR values into enum hypctx_sysreg as 64-bit offsets

Handle non-VHE, store the vncr page as a pointer

Address remaining style review comments

Use Static_assert to ensure correct struct hypctx size

This revision is now accepted and ready to land.Jun 4 2026, 2:46 PM
This revision now requires review to proceed.Jun 9 2026, 3:28 PM

Put potentially exotic registers in a separate array

Only separate out registers relevant for morello

This revision is now accepted and ready to land.Jun 30 2026, 3:02 PM