Page MenuHomeFreeBSD

arm64/vmm: Move host-side EL2 regs into sys_regs
ClosedPublic

Authored by kajetan.puchalski_arm.com on Apr 21 2026, 11:09 AM.
Tags
None
Referenced Files
F162951854: D56555.id176727.diff
Sat, Jul 18, 3:44 PM
F162947583: D56555.id178192.diff
Sat, Jul 18, 2:41 PM
F162904089: D56555.diff
Sat, Jul 18, 4:08 AM
F162878550: D56555.id176319.diff
Fri, Jul 17, 10:31 PM
Unknown Object (File)
Fri, Jul 17, 12:17 PM
Unknown Object (File)
Thu, Jul 16, 5:18 PM
Unknown Object (File)
Thu, Jul 16, 4:16 AM
Unknown Object (File)
Thu, Jul 16, 3:04 AM
Subscribers

Details

Summary

Move EL2 host registers that are not visible to the guest into
hypctx->sys_regs. Prefix them with HOST_ to distinguish from EL2
registers which are part of the guest's own state (e.g. in VNCR).

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 74148
Build 71031: arc lint + arc unit

Event Timeline

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

I looks like some lines might be wider than 80 characters

sys/arm64/vmm/vmm_hyp.c
170–172

Style

Put potentially exotic registers in a separate array

Only separate out registers relevant for morello

This revision is now accepted and ready to land.Wed, Jul 1, 10:51 AM