[PATCH v2 2/4] arm64/fpsimd: Discover maximum vector length implemented by any CPU

Catalin Marinas catalin.marinas at arm.com
Thu Jul 4 07:18:56 PDT 2024


On Thu, Jun 06, 2024 at 04:21:44PM +0100, Mark Brown wrote:
> When discovering the vector lengths for SVE and SME we do not currently
> record the maximum VL supported on any individual CPU.  This is expected
> to be the same for all CPUs but the architecture allows asymmetry, if we
> do encounter an asymmetric system then some CPUs may support VLs higher
> than the maximum Linux will use.  Since the pKVM hypervisor needs to
> support saving and restoring anything the host can physically set it
> needs to know the maximum value any CPU could have, add support for
> enumerating it and validation for late CPUs.
> 
> Signed-off-by: Mark Brown <broonie at kernel.org>

Acked-by: Catalin Marinas <catalin.marinas at arm.com>

I guess the %lu suggested by Fuad can be done when applying the patch.



More information about the linux-arm-kernel mailing list