Re: [PATCH v3] vfio: selftests: Remove libuuid dependency
From: Sean Christopherson
Date: Tue Nov 10 2026 - 16:13:56 EST
On Tue, Nov 03, 2026, Samiullah Khawaja wrote:
> Replace libuuid with a minimal uuid_t and uuid_parse() in libvfio, and
> drop -luuid from the build. libvfio only uses libuuid to parse VF
> tokens, so pulling in an external library is not worth it.
>
> libuuid is often missing from cross-compilation sysroots, which causes
> the VFIO selftests to fail to link:
>
> ld: cannot find -luuid: No such file or directory
>
> It also complicates building against glibc alternatives such as musl, see
> https://lore.kernel.org/kvm/c2f7e904-2646-4b01-864d-d185221c7f56@xxxxxxxxx/
>
> Reviewed-by: David Matlack <dmatlack@xxxxxxxxxx>
> Signed-off-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>
> ---
Tested-by: Sean Christopherson <seanjc@xxxxxxxxxx>