Re: [libvirt] [PATCH 1/2] add --crash support to "virsh dump"

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

 



On 11/30/2009 03:27 PM, Daniel P. Berrange wrote:
Shouldn't we be setting 'resume=0' here otherwise....

>        /* Since the monitor is always attached to a pty for libvirt, it
>           will support synchronous operations so we always get here after
>           the migration is complete.  */
>  -    if (resume&&  paused) {
>  +    else if (resume&&  paused) {
>            qemuDomainObjEnterMonitor(vm);
>            if (qemuMonitorStartCPUs(priv->mon, dom->conn)<  0) {
>                if (virGetLastError() == NULL)

....this will try to resume CPUs on a guest we just shutdown

That's why I changed "if" to "else if".

Paolo

--
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]