diff options
author | Peter Xu <peterx@redhat.com> | 2025-06-13 10:07:55 -0400 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2025-07-11 10:37:35 -0300 |
commit | d7530a9682b7cdac1859dcf1e28573415d2afd56 (patch) | |
tree | de714881a92b33164aacf52354607879dc06fccf /include | |
parent | 2145f38c31e940abca19bb8a9dc0d2549a40df14 (diff) | |
download | qemu-d7530a9682b7cdac1859dcf1e28573415d2afd56.zip qemu-d7530a9682b7cdac1859dcf1e28573415d2afd56.tar.gz qemu-d7530a9682b7cdac1859dcf1e28573415d2afd56.tar.bz2 |
migration: Drop save_live_complete_postcopy hook
The hook is only defined in two vmstate users ("ram" and "block dirty
bitmap"), meanwhile both of them define the hook exactly the same as the
precopy version. Hence, this postcopy version isn't needed.
No functional change intended.
Reviewed-by: Juraj Marcin <jmarcin@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20250613140801.474264-6-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/register.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/include/migration/register.h b/include/migration/register.h index b79dc81..e022195 100644 --- a/include/migration/register.h +++ b/include/migration/register.h @@ -78,25 +78,17 @@ typedef struct SaveVMHandlers { void (*save_cleanup)(void *opaque); /** - * @save_live_complete_postcopy - * - * Called at the end of postcopy for all postcopyable devices. - * - * @f: QEMUFile where to send the data - * @opaque: data pointer passed to register_savevm_live() - * - * Returns zero to indicate success and negative for error - */ - int (*save_live_complete_postcopy)(QEMUFile *f, void *opaque); - - /** * @save_live_complete_precopy * * Transmits the last section for the device containing any - * remaining data at the end of a precopy phase. When postcopy is - * enabled, devices that support postcopy will skip this step, - * where the final data will be flushed at the end of postcopy via - * @save_live_complete_postcopy instead. + * remaining data at the end phase of migration. + * + * For precopy, this will be invoked _during_ the switchover phase + * after source VM is stopped. + * + * For postcopy, this will be invoked _after_ the switchover phase + * (except some very unusual cases, like PMEM ramblocks), while + * destination VM can be running. * * @f: QEMUFile where to send the data * @opaque: data pointer passed to register_savevm_live() |