vdpa/mlx5: support queue update
authorMatan Azrad <matan@mellanox.com>
Mon, 29 Jun 2020 14:08:21 +0000 (14:08 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:31 +0000 (14:52 +0200)
commitc47d6e83334e656f85e4bb6881cf63da38276b0a
tree980e39e1215f77af9c044ab7d2774a091d37e0ae
parentb213af9aa4804ceb628cff7a248a8025068915cb
vdpa/mlx5: support queue update

Last changes in vDPA device management by vhost library may cause queue
ready state update after the device configuration.

So, there is chance that some queue configuration information will be
known only after the device was configured.

Add support to reconfigure a queue after the device configuration
according to the queue state update and the configuration changes.

Adjust the host notifier and the guest notification configuration to be
per queue and to be applied in the enablement process.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/mlx5/mlx5_vdpa.c
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c