Re: [PATCH 5.10 38/58] KVM: arm64: Allow indirect vectors to be used without SPECTRE_V3A

From: Greg Kroah-Hartman
Date: Fri Mar 11 2022 - 01:42:15 EST


On Fri, Mar 11, 2022 at 12:48:59AM +0100, Pavel Machek wrote:
> Hi!
>
> What is going on here?
>
> > commit 5bdf3437603d4af87f9c7f424b0c8aeed2420745 upstream.
>
> Upstream commit 5bdf is very different from this. In particular,
>
> > arch/arm64/kvm/hyp/smccc_wa.S | 66 +++++++++++++++++++++++++++++++++++++++
>
> I can't find smccc_wa.S, neither in mainline, nor in -next. And it
> looks buggy. I suspect loop_k24 should loop 24 times, but it does 8
> loops AFAICT. Same problem with loop_k32.

The kvm portion of these patches is the "trickiest" portions. I'll let
James explain them, as he did so to me when sending the backports.

thanks,

greg k-h