summaryrefslogtreecommitdiffstats
path: root/hw/vfio/trace-events
diff options
context:
space:
mode:
authorKirti Wankhede2020-10-26 10:36:24 +0100
committerAlex Williamson2020-11-01 20:30:51 +0100
commit9a04fe09576b0399646e80e57ff2d2324f7cf64d (patch)
tree3d2387bb9ee1ec10a2163c481f7df7f80f34a9db /hw/vfio/trace-events
parentvfio: Add vfio_listener_log_sync to mark dirty pages (diff)
downloadqemu-9a04fe09576b0399646e80e57ff2d2324f7cf64d.tar.gz
qemu-9a04fe09576b0399646e80e57ff2d2324f7cf64d.tar.xz
qemu-9a04fe09576b0399646e80e57ff2d2324f7cf64d.zip
vfio: Dirty page tracking when vIOMMU is enabled
When vIOMMU is enabled, register MAP notifier from log_sync when all devices in container are in stop and copy phase of migration. Call replay and get dirty pages from notifier callback. Suggested-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com> Reviewed-by: Yan Zhao <yan.y.zhao@intel.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/vfio/trace-events')
-rw-r--r--hw/vfio/trace-events1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vfio/trace-events b/hw/vfio/trace-events
index dd991bd8f2..c0e75f24b7 100644
--- a/hw/vfio/trace-events
+++ b/hw/vfio/trace-events
@@ -164,3 +164,4 @@ vfio_load_state(const char *name, uint64_t data) " (%s) data 0x%"PRIx64
vfio_load_state_device_data(const char *name, uint64_t data_offset, uint64_t data_size) " (%s) Offset 0x%"PRIx64" size 0x%"PRIx64
vfio_load_cleanup(const char *name) " (%s)"
vfio_get_dirty_bitmap(int fd, uint64_t iova, uint64_t size, uint64_t bitmap_size, uint64_t start) "container fd=%d, iova=0x%"PRIx64" size= 0x%"PRIx64" bitmap_size=0x%"PRIx64" start=0x%"PRIx64
+vfio_iommu_map_dirty_notify(uint64_t iova_start, uint64_t iova_end) "iommu dirty @ 0x%"PRIx64" - 0x%"PRIx64