Re: [PATCH 2/2] KVM: arm64: selftests: Test redistributor region indices above 255
From: Fuad Tabba
Date: Tue Dec 01 2026 - 12:33:23 EST
Hi Raffaele,
On Tue, 1 Dec 2026 at 08:30, Raffaele Tranfaglia via B4 Relay
<devnull+raffaele.tranfaglia.gmail.com@xxxxxxxxxx> wrote:
>
> From: Raffaele Tranfaglia <raffaele.tranfaglia@xxxxxxxxx>
>
> 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@xxxxxxxxx>
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@xxxxxxxxx>
Reviewed-by: Fuad Tabba <fuad.tabba@xxxxxxxxx>
Cheers,
/fuad