vfio/container: Add dirty tracking started flag
authorAvihai Horon <avihaih@nvidia.com>
Wed, 18 Dec 2024 13:40:16 +0000 (15:40 +0200)
committerCédric Le Goater <clg@redhat.com>
Thu, 26 Dec 2024 06:23:38 +0000 (07:23 +0100)
commitd77e85dbd7655cc41af51df74c077d8b31aee93c
tree5800a4b95ebccf6ccfd2489fcc5170fc7fe47ed3
parent37f05a59e8695df3d1206e7100190e48ec0af847
vfio/container: Add dirty tracking started flag

Add a flag to VFIOContainerBase that indicates whether dirty tracking
has been started for the container or not.

This will be used in the following patches to allow dirty page syncs
only if dirty tracking has been started.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Tested-by: Joao Martins <joao.m.martins@oracle.com>
Link: https://lore.kernel.org/r/20241218134022.21264-2-avihaih@nvidia.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container-base.c
include/hw/vfio/vfio-container-base.h