[PATCH v2 09/11] KVM: arm64: Trap host SVE accesses when the FPSIMD state is dirty

Marc Zyngier maz at kernel.org
Thu Mar 18 14:29:02 GMT 2021


On Thu, 18 Mar 2021 14:11:44 +0000,
Will Deacon <will at kernel.org> wrote:
> 
> On Thu, Mar 18, 2021 at 12:25:30PM +0000, Marc Zyngier wrote:
> > ZCR_EL2 controls the upper bound for ZCR_EL1, and is set to
> > a potentially lower limit when the guest uses SVE. In order
> > to restore the SVE state on the EL1 host, we must first
> > reset ZCR_EL2 to its original value.
> > 
> > To make it as lazy as possible on the EL1 host side, set
> > the SVE trapping in place when returning exiting from
> 
> "returning exiting"?

Meh. Kept the latter.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list