vfio/mlx5: Fix range size calculation upon tracker creation
authorYishai Hadas <yishaih@nvidia.com>
Wed, 8 Feb 2023 15:22:34 +0000 (17:22 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 9 Feb 2023 18:43:06 +0000 (11:43 -0700)
commitce06a7000f0e9ad1ea5f55129ed964a7888d6e1c
treee796e2629fda0cb43e65293399a4b905d6389849
parentb0d2d5697e4c12589ef536b2a824f6549fdb2c01
vfio/mlx5: Fix range size calculation upon tracker creation

Fix range size calculation to include the last byte of each range.

In addition, log round up the length of the total ranges to be stricter.

Fixes: c1d050b0d169 ("vfio/mlx5: Create and destroy page tracker object")
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20230208152234.32370-1-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/mlx5/cmd.c