Page MenuHomeFreeBSD

arm64/vmm: Add a feature flag and use it for HCRX
ClosedPublic

Authored by andrew on Aug 8 2025, 12:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 1, 4:04 AM
Unknown Object (File)
Fri, Oct 31, 1:06 PM
Unknown Object (File)
Tue, Oct 28, 5:22 AM
Unknown Object (File)
Tue, Oct 28, 5:22 AM
Unknown Object (File)
Tue, Oct 28, 5:22 AM
Unknown Object (File)
Mon, Oct 27, 1:05 AM
Unknown Object (File)
Sun, Oct 26, 1:51 PM
Unknown Object (File)
Tue, Oct 21, 7:56 AM
Subscribers

Details

Summary

Add a field to hold the features the hardware supports that need to be
handled when switching to a guest and use it to handle FEAT_HCX that
adds the HRX_EL2 register.

This reduces the number of times we read ID registers in guest
switching which may be trapped when running under nested virtualisation.

Sponsored by: Arm Ltd

Diff Detail

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