[PATCH v2 2/2] KVM: arm64: Pin the host vCPU before adjusting its PC under pKVM

Fuad Tabba fuad.tabba at linux.dev
Tue Sep 15 04:00:00 PDT 2026


Hi Joey,

On Tue, 15 Sept 2026 at 11:48, Joey Gouly <joey.gouly at arm.com> wrote:
[...]
> * A pin only fails if the memory was never shared, drop the request if
> * it is a bad host pointer.
>
> Or something like the commit message says.

Ack.


> > +      */
> > +     host_vcpu = kern_hyp_va(vcpu);
> > +     if (hyp_pin_shared_mem(host_vcpu, host_vcpu + 1))
> > +             return;
> > +
> > +     __kvm_adjust_pc(host_vcpu);
> > +     hyp_unpin_shared_mem(host_vcpu, host_vcpu + 1);
> >  }
> >
> >  static void handle___kvm_flush_vm_context(struct kvm_cpu_context *host_ctxt)
>
> Reviewed-by: Joey Gouly <joey.gouly at arm.com>

Thanks!
/fuad

>
> Thanks,
> Joey



More information about the linux-arm-kernel mailing list