summaryrefslogtreecommitdiffstats
path: root/include/hw/vfio
diff options
context:
space:
mode:
authorKirti Wankhede2020-11-23 15:23:19 +0100
committerAlex Williamson2020-11-23 18:05:58 +0100
commitbb0990d1740f6dced5b50a923677034c9399c213 (patch)
tree27c13bfd5ff49d543731bb71646d89bd28d3936c /include/hw/vfio
parentvfio: Make migration support experimental (diff)
downloadqemu-bb0990d1740f6dced5b50a923677034c9399c213.tar.gz
qemu-bb0990d1740f6dced5b50a923677034c9399c213.tar.xz
qemu-bb0990d1740f6dced5b50a923677034c9399c213.zip
vfio: Change default dirty pages tracking behavior during migration
By default dirty pages tracking is enabled during iterative phase (pre-copy phase). Added per device opt-out option 'x-pre-copy-dirty-page-tracking' to disable dirty pages tracking during iterative phase. If the option 'x-pre-copy-dirty-page-tracking=off' is set for any VFIO device, dirty pages tracking during iterative phase will be disabled. Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/hw/vfio')
-rw-r--r--include/hw/vfio/vfio-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
index 2119872c8a..6141162d7a 100644
--- a/include/hw/vfio/vfio-common.h
+++ b/include/hw/vfio/vfio-common.h
@@ -130,6 +130,7 @@ typedef struct VFIODevice {
unsigned int flags;
VFIOMigration *migration;
Error *migration_blocker;
+ OnOffAuto pre_copy_dirty_page_tracking;
} VFIODevice;
struct VFIODeviceOps {