[Intel-gfx] [PATCH v6 07/10] vfio: Mark cdev usage in vfio_device
Yi Liu
yi.l.liu at intel.com
Mon May 22 11:57:48 UTC 2023
This can be used to differentiate whether to report group_id or devid in
the revised VFIO_DEVICE_GET_PCI_HOT_RESET_INFO ioctl. At this moment, no
cdev path yet, so the vfio_device_cdev_opened() helper always returns false.
Reviewed-by: Kevin Tian <kevin.tian at intel.com>
Tested-by: Terrence Xu <terrence.xu at intel.com>
Signed-off-by: Yi Liu <yi.l.liu at intel.com>
---
include/linux/vfio.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/linux/vfio.h b/include/linux/vfio.h
index 2c137ea94a3e..2a45853773a6 100644
--- a/include/linux/vfio.h
+++ b/include/linux/vfio.h
@@ -139,6 +139,11 @@ int vfio_iommufd_emulated_attach_ioas(struct vfio_device *vdev, u32 *pt_id);
((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL)
#endif
+static inline bool vfio_device_cdev_opened(struct vfio_device *device)
+{
+ return false;
+}
+
/**
* struct vfio_migration_ops - VFIO bus device driver migration callbacks
*
--
2.34.1
More information about the Intel-gfx
mailing list