numam-dpdk/drivers/vdpa
Yajun Wu 42a8fc7daa vdpa/mlx5: support pre-creation of virtq resource
The motivation of this change is to reduce vDPA device queue creation
time by creating some queue resource in vDPA device probe stage.

In VM live migration scenario, this can reduce 0.8ms for each queue
creation, thus reduce LM network downtime.

To create queue resource(umem/counter) in advance, we need to know
virtio queue depth and max number of queue VM will use.

Introduce two new devargs: queues(max queue pair number) and queue_size
(queue depth). Two args must be both provided, if only one argument
provided, the argument will be ignored and no pre-creation.

The queues and queue_size must also be identical to vhost configuration
driver later receive. Otherwise either the pre-create resource is wasted
or missing or the resource need destroy and recreate(in case queue_size
mismatch).

Pre-create umem/counter will keep alive until vDPA device removal.

Signed-off-by: Yajun Wu <yajunw@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2022-06-21 11:17:41 +02:00
..
ifc vdpa/ifc/base: fix null pointer dereference 2022-06-17 15:19:58 +02:00
mlx5 vdpa/mlx5: support pre-creation of virtq resource 2022-06-21 11:17:41 +02:00
sfc vdpa/sfc: make MCDI memzone name unique 2022-02-15 13:22:18 +01:00
meson.build vdpa/sfc: introduce Xilinx vDPA driver 2021-11-04 13:43:23 +01:00