]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/common: Allow disabling device dirty page tracking
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 22 Jul 2024 21:13:26 +0000 (22:13 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 23 Jul 2024 15:14:53 +0000 (17:14 +0200)
commit30b9167785177ac43d11b881fe321918124aeb88
treece2e1c93f5f7e1667a7ba1180177f77ddeb06488
parentf48b472450efd086dec2e32dc93c882a62a53649
vfio/common: Allow disabling device dirty page tracking

The property 'x-pre-copy-dirty-page-tracking' allows disabling the whole
tracking of VF pre-copy phase of dirty page tracking, though it means
that it will only be used at the start of the switchover phase.

Add an option that disables the VF dirty page tracking, and fall
back into container-based dirty page tracking. This also allows to
use IOMMU dirty tracking even on VFs with their own dirty
tracker scheme.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
hw/vfio/common.c
hw/vfio/migration.c
hw/vfio/pci.c
include/hw/vfio/vfio-common.h