[PATCH 0/3] KVM: arm64: Stop stage-2 teardown scaling with the IPA size

Fuad Tabba fuad.tabba at linux.dev
Tue Nov 3 11:08:08 PST 2026


Hi Oliver,

On Tue, 03 Nov 2026 17:03:13 +0000, Oliver Upton <oupton at kernel.org> wrote:
[...]
> I don't see why optimized destroy walks for CCA and pKVM is
> fundamentally incompatible with driving them from a loop that
> reschedules. Non-preemptible kernels are still very much a thing, I'd
> rather not undo the fix we took for that exact use case.
>
> So unless I'm missing something completely obvious, I'd rather that CCA
> and pKVM do teardowns from that loop.

In v2, pKVM's teardown will run from that loop.
kvm_pgtable_stage2_destroy_range() will return where its walk stopped
(Suzuki's suggestion) and pkvm_pgtable_stage2_destroy_range() where
the next mapping starts, so stage2_destroy_range() resumes from there.
That replaces the pKVM path in patch 1 and the lookup in patch 2, and
I'll drop patch 3 and the Fixes: tags.

Thanks,
/fuad



More information about the linux-arm-kernel mailing list