Skip to content
GitLab
    • Why GitLab
    • Pricing
    • Contact Sales
    • Explore
  • Why GitLab
  • Pricing
  • Contact Sales
  • Explore
  • Sign in
  • Get free trial
  • QEMUQEMU
  • QEMUQEMU
  • Repository
  • qemu
  • migration
  • migration.c
Find file Blame History Permalink
  • Avihai Horon's avatar
    migration: Add .save_prepare() handler to struct SaveVMHandlers · 08fc4cb5
    Avihai Horon authored Sep 06, 2023 and Cédric Le Goater's avatar Cédric Le Goater committed Sep 11, 2023
    
    
    Add a new .save_prepare() handler to struct SaveVMHandlers. This handler
    is called early, even before migration starts, and can be used by
    devices to perform early checks.
    
    Refactor migrate_init() to be able to return errors and call
    .save_prepare() from there.
    
    Suggested-by: Peter Xu's avatarPeter Xu <peterx@redhat.com>
    Signed-off-by: default avatarAvihai Horon <avihaih@nvidia.com>
    Reviewed-by: Peter Xu's avatarPeter Xu <peterx@redhat.com>
    Reviewed-by: Cédric Le Goater's avatarCédric Le Goater <clg@redhat.com>
    Signed-off-by: Cédric Le Goater's avatarCédric Le Goater <clg@redhat.com>
    08fc4cb5