Re: [PATCH] qemu: Allow domain reboot after core dump

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/20/2011 05:34 AM, Michal Privoznik wrote:
This patch introduces possibility to reboot domain after core dump
finishes. The new flag VIR_DUMP_REBOOT was added to
virDomainCoreDumpFlags. The new functionality is accessible via virsh
too: virsh dump --reboot<domain>

@@ -3189,6 +3190,11 @@ cleanup:
      if (event)
          qemuDomainEventQueue(driver, event);
      qemuDriverUnlock(driver);
+
+    if ((ret == 0)&&  (flags&  VIR_DUMP_REBOOT)) {
+        qemuDomainReboot(dom, 0);

You need to check for failure, and propagate that back to the caller.

I like the idea, but the patch needs v2, and this is too risky to push until after we settle whether there will be a quick 0.9.6.

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]