]> git.proxmox.com Git - mirror_qemu.git/blobdiff - blockdev.c
migration/postcopy: discard_length must not be 0
[mirror_qemu.git] / blockdev.c
index a9dd73eafcde7f614529a0000cfcb5702269eaa5..4d141e9a1fba68a40a5ad69f43ef270d279d025f 100644 (file)
@@ -1774,7 +1774,7 @@ static void drive_backup_prepare(BlkActionState *common, Error **errp)
     assert(common->action->type == TRANSACTION_ACTION_KIND_DRIVE_BACKUP);
     backup = common->action->u.drive_backup.data;
 
-    bs = qmp_get_root_bs(backup->device, errp);
+    bs = bdrv_lookup_bs(backup->device, backup->device, errp);
     if (!bs) {
         return;
     }
@@ -3260,7 +3260,7 @@ void qmp_block_stream(bool has_job_id, const char *job_id, const char *device,
         goto out;
     }
 
-    trace_qmp_block_stream(bs, bs->job);
+    trace_qmp_block_stream(bs);
 
 out:
     aio_context_release(aio_context);