]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove stale comment outlining how to extend qemuDomainBlockPivot
authorPeter Krempa <pkrempa@redhat.com>
Tue, 12 Feb 2019 14:12:03 +0000 (15:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 25 Jul 2019 11:21:32 +0000 (13:21 +0200)
With -blockdev:

- we track the job and check it after restart
- have the ability to ask qemu to persist it to collect result
- have the ability to report errors.

This solves all points the comment outlined so remove it. Also all jobs
handle the disk state modification along with the event so there's
nothing special the comment says.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c

index df3ce843f68e2c202951fb7f2bfd70631822c52c..e85485a012f1a3a4f41b5b721e28f60ea4733dfb 100644 (file)
@@ -17007,16 +17007,6 @@ qemuDomainBlockPivot(virQEMUDriverPtr driver,
         goto cleanup;
     }
 
-    /* Attempt the pivot.  Record the attempt now, to prevent duplicate
-     * attempts; but the actual disk change will be made when emitting
-     * the event.
-     * XXX On libvirtd restarts, if we missed the qemu event, we need
-     * to double check what state qemu is in.
-     * XXX We should be using qemu's rerror flag to make sure the job
-     * remains alive until we know its final state.
-     * XXX If the abort command is synchronous but the qemu event says
-     * that pivot failed, we need to reflect that failure into the
-     * overall return value.  */
     qemuDomainObjEnterMonitor(driver, vm);
     if (blockdev)
         ret = qemuMonitorJobComplete(priv->mon, job->name);