Add logging to vfio code
[vpp.git] / src / vlib / linux / vfio.h
index e23cee1..7fe3ef8 100644 (file)
@@ -27,6 +27,7 @@ typedef struct
 {
   u32 flags;
 #define LINUX_VFIO_F_HAVE_IOMMU                (1 << 0)
+#define LINUX_VFIO_F_HAVE_NOIOMMU      (1 << 1)
   int container_fd;
 
   /* VFIO */
@@ -38,6 +39,8 @@ typedef struct
   /* iommu group pool index by group id  hash */
   uword *iommu_pool_index_by_group;
 
+  /* logging */
+  vlib_log_class_t log_default;
 } linux_vfio_main_t;
 
 extern linux_vfio_main_t vfio_main;