Re: [PATCH v2] KVM: arm64: Constrain the host to the maximum shared SVE VL with pKVM
From: Marc Zyngier
Date: Tue Oct 01 2024 - 10:28:59 EST
On Thu, 12 Sep 2024 12:39:35 +0100, Mark Brown wrote:
> When pKVM saves and restores the host floating point state on a SVE system
> it programs the vector length in ZCR_EL2.LEN to be whatever the maximum VL
> for the PE is but uses a buffer allocated with kvm_host_sve_max_vl, the
> maximum VL shared by all PEs in the system. This means that if we run on a
> system where the maximum VLs are not consistent we will overflow the buffer
> on PEs which support larger VLs.
>
> [...]
Applied to fixes, thanks!
[1/1] KVM: arm64: Constrain the host to the maximum shared SVE VL with pKVM
commit: a9f41588a902f386b48f021f56a4c14735cd9371
Cheers,
M.
--
Without deviation from the norm, progress is not possible.