[PATCH v19 16/26] vhost: remove group-related API from driver
David Marchand
david.marchand at redhat.com
Wed Oct 7 09:31:54 CEST 2026
From: Anatoly Burakov <anatoly.burakov at intel.com>
The vDPA driver API has "get_vfio_group_fd" in its ops structure, but no
driver is using it any more, as better API's were added and implemented.
Remove this API from vDPA ops structure.
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
Changes since v18:
- squashed vdpa/mlx5 update,
---
doc/guides/prog_guide/vhost_lib.rst | 4 ----
doc/guides/rel_notes/deprecation.rst | 4 ----
doc/guides/rel_notes/release_26_11.rst | 3 +++
drivers/vdpa/mlx5/mlx5_vdpa.c | 1 -
lib/vhost/vdpa_driver.h | 3 ---
5 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/doc/guides/prog_guide/vhost_lib.rst b/doc/guides/prog_guide/vhost_lib.rst
index 345a621716..99355b8afd 100644
--- a/doc/guides/prog_guide/vhost_lib.rst
+++ b/doc/guides/prog_guide/vhost_lib.rst
@@ -471,10 +471,6 @@ Finally, a set of device ops is defined for device specific operations:
Called to allow the device to respond to RARP sending.
-* ``get_vfio_group_fd``
-
- Called to get the VFIO group fd of the device.
-
* ``get_vfio_device_fd``
Called to get the VFIO device fd of the device.
diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
index fad4ffc72c..49ee85fa4e 100644
--- a/doc/guides/rel_notes/deprecation.rst
+++ b/doc/guides/rel_notes/deprecation.rst
@@ -29,10 +29,6 @@ Deprecation Notices
Use the ``-S <service-corelist>`` parameter instead
to specify the cores to be used for background services in DPDK.
-* vdpa: The vDPA driver API will no longer offer ``get_vfio_group_fd``
- as part of its internal API. All drivers will be adjusted
- to use the new unified VFIO container device assignment API.
-
* rte_smp_*mb: These APIs provide full barrier functionality. However, many
use cases do not require full barriers. To support such use cases, DPDK has
adopted atomic operations from
diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst
index dd9c7bf514..39d36b2279 100644
--- a/doc/guides/rel_notes/release_26_11.rst
+++ b/doc/guides/rel_notes/release_26_11.rst
@@ -317,6 +317,9 @@ API Changes
``rte_reorder_seqn``, ``rte_reorder_drain_up_to_seqn``,
``rte_reorder_min_seqn_set`` and ``rte_reorder_memory_footprint_get``.
+* vhost: Removed ``get_vfio_group_fd`` from ``struct rte_vdpa_dev_ops``.
+ vDPA drivers should now use the VFIO container device assignment API.
+
* telemetry: Promoted the following API from experimental to stable:
* ``rte_tel_data_add_array_uint_hex``
diff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c
index 11708e2005..1bb5de51b6 100644
--- a/drivers/vdpa/mlx5/mlx5_vdpa.c
+++ b/drivers/vdpa/mlx5/mlx5_vdpa.c
@@ -523,7 +523,6 @@ static struct rte_vdpa_dev_ops mlx5_vdpa_ops = {
.set_vring_state = mlx5_vdpa_set_vring_state,
.set_features = mlx5_vdpa_features_set,
.migration_done = NULL,
- .get_vfio_group_fd = NULL,
.get_vfio_device_fd = mlx5_vdpa_get_device_fd,
.get_notify_area = mlx5_vdpa_get_notify_area,
.get_stats_names = mlx5_vdpa_get_stats_names,
diff --git a/lib/vhost/vdpa_driver.h b/lib/vhost/vdpa_driver.h
index 42392a0d14..c7b9be09fb 100644
--- a/lib/vhost/vdpa_driver.h
+++ b/lib/vhost/vdpa_driver.h
@@ -50,9 +50,6 @@ struct rte_vdpa_dev_ops {
/** Destination operations when migration done */
int (*migration_done)(int vid);
- /** Get the vfio group fd */
- int (*get_vfio_group_fd)(int vid);
-
/** Get the vfio device fd */
int (*get_vfio_device_fd)(int vid);
--
2.54.0
More information about the dev
mailing list