Re: [PATCH v2 2/2] KVM: arm64: Pin the host vCPU before adjusting its PC under pKVM
From: Fuad Tabba
Date: Tue Sep 15 2026 - 07:18:44 EST
Hi Joey,
On Tue, 15 Sept 2026 at 11:48, Joey Gouly <joey.gouly@xxxxxxx> 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@xxxxxxx>
Thanks!
/fuad
>
> Thanks,
> Joey