]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/mlx5: Init QP based resources for dirty tracking
authorYishai Hadas <yishaih@nvidia.com>
Thu, 8 Sep 2022 18:34:44 +0000 (21:34 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 8 Sep 2022 18:59:00 +0000 (12:59 -0600)
commit9f35984e43cf8ccbf9b0f636e371a440257b4a70
tree9e36ee505d7d09a64a462faa01157a3b4aa305a0
parentb6f1f901ac60cec08d40f19fd8f43c805cd7981c
vfio/mlx5: Init QP based resources for dirty tracking

Init QP based resources for dirty tracking to be used upon start
logging.

It includes:
Creating the host and firmware RC QPs, move each of them to its expected
state based on the device specification, etc.

Creating the relevant resources which are needed by both QPs as of UAR,
PD, etc.

Creating the host receive side resources as of MKEY, CQ, receive WQEs,
etc.

The above resources are cleaned-up upon stop logging.

The tracker object that will be introduced by next patches will use
those resources.

Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20220908183448.195262-7-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/cmd.c
drivers/vfio/pci/mlx5/cmd.h