qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

migration: Call blk_resume_after_migration() for postcopy

Commit d35ff5e6 ('block: Ignore guest dev permissions during incoming
migration') added blk_resume_after_migration() to the precopy migration
path, but neglected to add it to the duplicated code that is used for
postcopy migration. This means that the guest device doesn't request the
necessary permissions, which ultimately led to failing assertions.

Add the missing blk_resume_after_migration() to the postcopy path.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>

+8
+8
migration/savevm.c
··· 1622 1622 error_report_err(local_err); 1623 1623 } 1624 1624 1625 + /* If we get an error here, just don't restart the VM yet. */ 1626 + blk_resume_after_migration(&local_err); 1627 + if (local_err) { 1628 + error_free(local_err); 1629 + local_err = NULL; 1630 + autostart = false; 1631 + } 1632 + 1625 1633 trace_loadvm_postcopy_handle_run_cpu_sync(); 1626 1634 cpu_synchronize_all_post_init(); 1627 1635