Xiang Chen 99510d271b vfio/common: Fix a small boundary issue of a trace
It uses [offset, offset + size - 1] to indicate that the length of range is
size in most places in vfio trace code (such as
trace_vfio_region_region_mmap()) execpt trace_vfio_region_sparse_mmap_entry().
So change it for trace_vfio_region_sparse_mmap_entry(), but if size is zero,
the trace will be weird with an underflow, so move the trace and trace it
only if size is not zero.

Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1650100104-130737-1-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2022-05-06 09:06:50 -06:00
..
2022-04-06 20:03:26 +01:00
2022-05-02 17:03:02 +02:00
2022-03-09 18:06:40 +00:00
2022-03-09 09:13:39 +00:00
2022-05-03 15:52:33 +04:00
2022-04-20 09:36:24 +02:00
2022-05-03 09:13:17 -07:00
2022-04-20 10:51:11 -07:00
2022-05-05 15:36:17 -03:00
2022-04-26 12:25:14 +02:00
2022-04-29 10:48:48 +10:00
2022-05-02 17:03:03 +02:00
2022-05-02 17:03:03 +02:00
2022-05-02 17:03:03 +02:00
2020-08-21 06:30:33 -04:00
2022-04-06 10:50:37 +02:00