On Wed, 13 Aug 2025 10:08:18 -0700Yes, will add more details about the uapi. My thinking was based on how we expose some other vfio device information on s390x, such as SCHIB for vfio-ccw device.
Farhan Ali <alifm@xxxxxxxxxxxxx> wrote:
diff --git a/include/uapi/linux/vfio_zdev.h b/include/uapi/linux/vfio_zdev.hIf this is uapi it would hopefully include some description, but if
index 77f2aff1f27e..bcd06f334a42 100644
--- a/include/uapi/linux/vfio_zdev.h
+++ b/include/uapi/linux/vfio_zdev.h
@@ -82,4 +82,9 @@ struct vfio_device_info_cap_zpci_pfip {
__u8 pfip[];
};
+struct vfio_device_zpci_err_region {
+ __u16 pec;
+ int pending_errors;
+};
+
#endif
this is the extent of what can be read from the device specific region,
why not just return it via a DEVICE_FEATURE ioctl? Thanks,
Alex