[PATCH 2/2] KVM: arm64: selftests: Test redistributor region indices above 255

Fuad Tabba fuad.tabba at linux.dev
Tue Dec 1 09:32:34 PST 2026


Hi Raffaele,

On Tue, 1 Dec 2026 at 08:30, Raffaele Tranfaglia via B4 Relay
<devnull+raffaele.tranfaglia.gmail.com at kernel.org> wrote:
>
> From: Raffaele Tranfaglia <raffaele.tranfaglia at gmail.com>
>
> Check that KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION uses the whole 12-bit
> index field: registering the first region with index 256 must fail with
> -EINVAL, and reading the characteristics of the non-existent region 256
> must fail with -ENOENT. Before the fix, index 256 aliased index 0 in
> both cases.
>
> Signed-off-by: Raffaele Tranfaglia <raffaele.tranfaglia at gmail.com>

nit: you could also test the third case in patch 1's message,
registering region 256 once regions 0 to 255 exist, which is the one a
VMM with more than 256 regions hits.

Tested-by: Fuad Tabba <fuad.tabba at linux.dev>
Reviewed-by: Fuad Tabba <fuad.tabba at linux.dev>

Cheers,
/fuad



More information about the linux-arm-kernel mailing list