mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
vfio/migration: Rename vfio_devices_all_dirty_tracking()
vfio_devices_all_dirty_tracking() is used to check if dirty page log sync is needed. However, besides checking the dirty page tracking status, it also checks the pre_copy_dirty_page_tracking flag. Rename it to vfio_devices_log_sync_needed() which reflects its purpose more accurately and makes the code clearer as there are already several helpers with similar names. 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-5-avihaih@nvidia.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
6e9df66e8a
commit
1f21670ec0
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ bool vfio_devices_all_dirty_tracking_started(
|
|||
bcontainer->dirty_pages_started;
|
||||
}
|
||||
|
||||
static bool vfio_devices_all_dirty_tracking(VFIOContainerBase *bcontainer)
|
||||
static bool vfio_log_sync_needed(const VFIOContainerBase *bcontainer)
|
||||
{
|
||||
VFIODevice *vbasedev;
|
||||
|
||||
|
@ -1364,7 +1364,7 @@ static void vfio_listener_log_sync(MemoryListener *listener,
|
|||
return;
|
||||
}
|
||||
|
||||
if (vfio_devices_all_dirty_tracking(bcontainer)) {
|
||||
if (vfio_log_sync_needed(bcontainer)) {
|
||||
ret = vfio_sync_dirty_bitmap(bcontainer, section, &local_err);
|
||||
if (ret) {
|
||||
error_report_err(local_err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue