Re: [PATCH v1 03/10] KVM: arm64: nv: Don't loop on AT S12E{0,1}{R,W} with an invalid VTCR_EL2

From: Fuad Tabba

Date: Sun Oct 11 2026 - 03:26:31 EST


Hi Kajetan,

On Fri, 09 Oct 2026 17:30:59 +0100, Kajetan Puchalski
<kajetan.puchalski@xxxxxxx> wrote:
[...]
> Currently we just clear out the upper bits of an address larger
than the IA size and proceed, but
> the architecture requires that to cause a L0 translation fault.
Not that it's a particularly common case.
> That is to say, I'm suggesting something like the following:
>
> + if (input_size > 48 || input_size < 25 || (ipa >> input_size) ||
> + check_base_s2_limits(vcpu, wi, level, input_size, stride)) {

Thanks, I'll add this to v2 as its own patch, since it's a missing
check rather than the loop this patch fixes. I'll add
an at.c test for it too.

Cheers,
/fuad