On Fri, May 30, 2025 at 02:12:36PM -0700, David Matlack wrote:
On Fri, May 23, 2025 at 4:30 PM David Matlack dmatlack@google.com wrote:
...
if (access("/sys/kernel/debug/iommu/intel", F_OK))
return intel_iommu_mapping_get(bdf, iova, mapping);
Oops, this should be !access(...).
Hmm... Generally speaking that code is a hack. Is there any guarantee that debugfs mount point is fixed to /sys/kernel/debug ?
return -EOPNOTSUPP;