Re: [PATCH 19/21] vfio: selftests: Expose low-level helper routines for setting up struct vfio_pci_device

From: Yanjun.Zhu
Date: Mon Jan 05 2026 - 19:09:08 EST



On 1/5/26 9:54 AM, David Matlack wrote:
On Sat, Dec 27, 2025 at 8:04 PM Zhu Yanjun <yanjun.zhu@xxxxxxxxx> wrote:
在 2025/11/26 11:36, David Matlack 写道:
@@ -349,9 +351,20 @@ struct vfio_pci_device *__vfio_pci_device_init(const char *bdf,
device->bdf = bdf;
device->iommu = iommu;

+ return device;
+}
+
In the latest kernel, this part changes too much.
Can you clarify what you mean by "changes too much"? What is the issue?

I tried to apply this commit to the linux and linux-next repositories and run tests.

However, I’m unable to apply [PATCH 19/21] vfio: selftests: Expose low-level helper routines for setting up struct vfio_pci_device, because the related source code has changed significantly in both linux and linux-next.

If you plan to resend this patch series based on the latest linux or linux-next, please feel free to ignore this comment.

I look forward to testing the updated patch series once it is available.

Best Regards,

Yanjun.Zhu