mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
migration: Rename res_{postcopy,precopy}_only
Once that res_compatible is removed, they don't make sense anymore. We remove the _only preffix. And to make things clearer we rename them to must_precopy and can_postcopy. Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
24f254ed79
commit
24beea4efe
9 changed files with 59 additions and 66 deletions
|
@ -456,9 +456,8 @@ static void vfio_save_cleanup(void *opaque)
|
|||
trace_vfio_save_cleanup(vbasedev->name);
|
||||
}
|
||||
|
||||
static void vfio_state_pending(void *opaque,
|
||||
uint64_t *res_precopy_only,
|
||||
uint64_t *res_postcopy_only)
|
||||
static void vfio_state_pending(void *opaque, uint64_t *must_precopy,
|
||||
uint64_t *can_postcopy)
|
||||
{
|
||||
VFIODevice *vbasedev = opaque;
|
||||
VFIOMigration *migration = vbasedev->migration;
|
||||
|
@ -469,10 +468,9 @@ static void vfio_state_pending(void *opaque,
|
|||
return;
|
||||
}
|
||||
|
||||
*res_precopy_only += migration->pending_bytes;
|
||||
*must_precopy += migration->pending_bytes;
|
||||
|
||||
trace_vfio_state_pending(vbasedev->name, *res_precopy_only,
|
||||
*res_postcopy_only);
|
||||
trace_vfio_state_pending(vbasedev->name, *must_precopy, *can_postcopy);
|
||||
}
|
||||
|
||||
static int vfio_save_iterate(QEMUFile *f, void *opaque)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue