aboutsummaryrefslogtreecommitdiff
path: root/include/hw/vfio
diff options
context:
space:
mode:
authorJoao Martins <joao.m.martins@oracle.com>2023-03-07 12:54:45 +0000
committerAlex Williamson <alex.williamson@redhat.com>2023-03-07 10:21:11 -0700
commit5255bbf4ec16bb352265d9ce131076212730a621 (patch)
treec76c49d826d5c45809b9f4485435a26f821c65b0 /include/hw/vfio
parent62c1b0024b3a4ac95deded14541c428f8fc662fa (diff)
downloadqemu-5255bbf4ec16bb352265d9ce131076212730a621.zip
qemu-5255bbf4ec16bb352265d9ce131076212730a621.tar.gz
qemu-5255bbf4ec16bb352265d9ce131076212730a621.tar.bz2
vfio/common: Add device dirty page tracking start/stop
Add device dirty page tracking start/stop functionality. This uses the device DMA logging uAPI to start and stop dirty page tracking by device. Device dirty page tracking is used only if all devices within a container support device dirty page tracking. Signed-off-by: Avihai Horon <avihaih@nvidia.com> Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Link: https://lore.kernel.org/r/20230307125450.62409-11-joao.m.martins@oracle.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/hw/vfio')
-rw-r--r--include/hw/vfio/vfio-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
index 87524c6..9551d2d 100644
--- a/include/hw/vfio/vfio-common.h
+++ b/include/hw/vfio/vfio-common.h
@@ -143,6 +143,8 @@ typedef struct VFIODevice {
VFIOMigration *migration;
Error *migration_blocker;
OnOffAuto pre_copy_dirty_page_tracking;
+ bool dirty_pages_supported;
+ bool dirty_tracking;
} VFIODevice;
struct VFIODeviceOps {