[PATCH v10 15/30] KVM: arm64: Support SME control registers

Jean-Philippe Brucker jpb at kernel.org
Wed Mar 18 10:54:42 PDT 2026


On Fri, Mar 06, 2026 at 05:01:07PM +0000, Mark Brown wrote:
> SME is configured by the system registers SMCR_EL1 and SMCR_EL2, add
> definitions and userspace access for them.  These control the SME vector
> length in a manner similar to that for SVE and also have feature enable
> bits for SME2 and FA64.  A subsequent patch will add management of them
> for guests as part of the general floating point context switch, as is
> done for the equivalent SVE registers.
> 
> Signed-off-by: Mark Brown <broonie at kernel.org>

Looks correct, but I think we also need locate_direct_register(),
read_sr_from_cpu() and write_sr_to_cpu() now?

Thanks,
Jean




More information about the linux-arm-kernel mailing list