As discussed on-list, this may be a necessary building block for a run-time flag that prevents us from getting into any situations where we configure a non-migratable QEMU.
I'd like extra attention to be paid to the virtio-gpu, vhost, and ivshmem changes as I am not perfectly confident in those. Sorry for the wide CC distributions. V3: Rebased from a version I sent about a year ago. Changed the migration function names a bit, Changed new calls to migrate_add_blocker. John Snow (1): migration: disallow migrate_add_blocker during migration block/qcow.c | 6 +++++- block/vdi.c | 6 +++++- block/vhdx.c | 24 ++++++++++++++---------- block/vmdk.c | 7 ++++++- block/vpc.c | 10 +++++++--- block/vvfat.c | 20 ++++++++++++-------- hw/9pfs/9p.c | 16 ++++++++++++---- hw/display/virtio-gpu.c | 29 ++++++++++++++++------------- hw/misc/ivshmem.c | 11 +++++++---- hw/scsi/vhost-scsi.c | 25 +++++++++++++++++++------ hw/virtio/vhost.c | 8 +++++++- include/migration/migration.h | 6 +++++- migration/migration.c | 35 +++++++++++++++++++++++++++++++++-- stubs/migr-blocker.c | 3 ++- target-i386/kvm.c | 16 +++++++++++++--- 15 files changed, 163 insertions(+), 59 deletions(-) -- 2.9.3