OSDN Git Service

vfio/common: Add device dirty page tracking start/stop
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 7 Mar 2023 12:54:45 +0000 (12:54 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 7 Mar 2023 17:21:11 +0000 (10:21 -0700)
commit5255bbf4ec16bb352265d9ce131076212730a621
treec76c49d826d5c45809b9f4485435a26f821c65b0
parent62c1b0024b3a4ac95deded14541c428f8fc662fa
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>
hw/vfio/common.c
hw/vfio/trace-events
include/hw/vfio/vfio-common.h