Messages in this thread | | | Date | Wed, 21 Dec 2022 13:34:38 +0000 | From | Mark Brown <> | Subject | Re: [PATCH] KVM: arm64: Synchronize SMEN on vcpu schedule out |
| |
On Tue, Dec 20, 2022 at 10:15:18AM +0000, Marc Zyngier wrote: > Dong Bo <dongbo4@huawei.com> wrote:
> > If we have VHE and need to reenable SME for host in > > kvm_arch_vcpu_put_fp, CPACR.SMEN is modified from 0 to 1. Trap > > control for reading SVCR is modified from enable to disable. > > Synchronization is needed before reading SVCR later in > > fpsimd_save, or it may cause sync exception which can not be > > handled by host.
Reviewed-by: Mark Brown <broonie@kernel.org> [unhandled content-type:application/pgp-signature] | |