Re: [PATCH 2/4] vfio: selftests: fix map limit tests to use last available iova

From: David Matlack
Date: Mon Nov 10 2025 - 19:10:08 EST


On Mon, Nov 10, 2025 at 1:11 PM Alex Mastro <amastro@xxxxxx> wrote:
> + if (region->iova != (~(iova_t)0 & ~(region->size - 1)))
> + SKIP(return, "IOMMU address space insufficient for overflow test");
> +

If, instead, this was:

region->iova = ~(iova_t)0 & ~(region->size - 1);

then I think this test could be run on all platforms. The kernel
checks for overflow before it checks for valid iova ranges.