Thread (3 messages) 3 messages, 2 authors, 16d ago

Re: [RFC PATCH 0/6] selftests/vfio: Add sPAPR TCE v2 coverage

From: David Matlack <dmatlack@google.com>
Date: 2026-07-09 15:51:40
Also in: kvm, linux-kselftest, lkml

On Thu, Jul 9, 2026 at 1:49 AM Narayana Murty N [off-list ref] wrote:
quoted
quoted
Feedback is requested from the VFIO and PowerPC communities on:
1. whether the sPAPR TCE v2 helpers should remain in the common VFIO
selftest library or move into a sPAPR-specific test helper?
Responded in the patch. Let's move to their own file.
Will do. v2 will have:

   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
Just one small thing here: You can put all the stubs in iommu_spapr.h
as static inlines, then you don't need the extra C file. e.g.

#ifdef __powerpc__

... prototypes ...

#else

... static inline stubs ...

#endif
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help