[PATCH] KVM: arm64: Synchronize SMEN on vcpu schedule out
Oliver Upton
oliver.upton at linux.dev
Mon Jan 23 12:26:16 PST 2023
On Tue, 20 Dec 2022 18:50:24 +0800, Dong Bo wrote:
> From: Nianyao Tang <tangnianyao at huawei.com>
>
> 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.
>
> [...]
Applied to kvmarm/next, thanks!
[1/1] KVM: arm64: Synchronize SMEN on vcpu schedule out
https://git.kernel.org/kvmarm/kvmarm/c/59d78a2ec0e9
--
Best,
Oliver
More information about the linux-arm-kernel
mailing list