[PATCH v4 5/9] KVM: arm64: Allocate memory mapped at hyp for host sve state in pKVM

Fuad Tabba tabba at google.com
Tue Jun 4 01:24:18 PDT 2024


Hi Mark,

On Mon, Jun 3, 2024 at 3:50 PM Mark Brown <broonie at kernel.org> wrote:
>
> On Mon, Jun 03, 2024 at 01:28:47PM +0100, Fuad Tabba wrote:
>
> >  {
> >       if (system_supports_sve()) {
> >               kvm_sve_max_vl = sve_max_virtualisable_vl();
> > +             kvm_host_sve_max_vl = sve_max_vl();
> > +             kvm_nvhe_sym(kvm_host_sve_max_vl) = kvm_host_sve_max_vl;
>
> As discussed on the prior version this either needs to be the maximum
> available physical VL on any individual PE or the hypervisor needs to
> use this VL explicitly when saving/restoring host state.

Sorry it took me a while, but I understand what the issue is now. I'll
send a patch to fix this.

Thanks for being patient with me,
/fuad



More information about the linux-arm-kernel mailing list