Re: [RFC PATCH 0/6] selftests/vfio: Add sPAPR TCE v2 coverage
From: Narayana Murty N
Date: Fri Jul 10 2026 - 01:16:07 EST
On 09/07/26 9:21 PM, David Matlack wrote:
On Thu, Jul 9, 2026 at 1:49 AM Narayana Murty N <nnmlinux@xxxxxxxxxxxxx> wrote:Sure, will follow the same.
Just one small thing here: You can put all the stubs in iommu_spapr.hWill do. v2 will have:Feedback is requested from the VFIO and PowerPC communities on:Responded in the patch. Let's move to their own file.
1. whether the sPAPR TCE v2 helpers should remain in the common VFIO
selftest library or move into a sPAPR-specific test helper?
lib/iommu_spapr.c — all sPAPR logic, compiled only on powerpc
lib/iommu_spapr_stub.c — empty stubs returning -EOPNOTSUPP,
compiled on all other architectures
lib/include/libvfio/iommu_spapr.h — declarations
as static inlines, then you don't need the extra C file. e.g.
#ifdef __powerpc__
... prototypes ...
#else
... static inline stubs ...
#endif
regards,
Narayana