[PATCH v2 4/4] KVM: arm64: pkvm: Avoid trapping on HVC_RESET_VECTORS

Vincent Donnefort vdonnefort at google.com
Fri Oct 23 01:01:42 PDT 2026


On Thu, Oct 22, 2026 at 06:38:06PM +0100, Fuad Tabba wrote:
> Hi Vincent,
> 
> On Thu, 22 Oct 2026 15:00:48 +0100, Vincent Donnefort <vdonnefort at google.com> wrote:
> > pKVM prevents the reset of the hypervisor vector and as a consequence,
> > kvm_hyp_initialized can never be reset. Add a fast-path for this case to
> > skip unnecessary HVCs on the CPU hotplug and PM path.
> 
> Could you drop this patch? It brings back a pKVM check in the host code,
> which Marc asked to avoid on v1 [1], to save one HVC that pKVM already
> rejects.
> 
> Cheers,
> /fuad
> 
> [1] https://lore.kernel.org/all/86jynbyshv.wl-maz@kernel.org/

Exactly why I kept this patch separated :) 

It is a single documented fast-path while the series removed 5. 

But I agree this is only for the CPU resume or going out of idle path so not
really a hot path.

-- 
Vincent



More information about the linux-arm-kernel mailing list