[libvirt] [PATCH] qemu: avoid double shutdown
Eric Blake
eblake at redhat.com
Thu Feb 3 16:04:08 UTC 2011
On 02/03/2011 06:14 AM, Jiri Denemark wrote:
> On Wed, Feb 02, 2011 at 11:37:37 -0700, Eric Blake wrote:
>> * src/qemu/qemu_driver.c (qemudShutdownVMDaemon): Check that vm is
>> still active.
>> Reported by Wen Congyang as follows:
>>
>> ---
>> +++ b/src/qemu/qemu_driver.c
>> @@ -2991,6 +2991,11 @@ static void qemudShutdownVMDaemon(struct qemud_driver *driver,
>> VIR_DEBUG("Shutting down VM '%s' pid=%d migrated=%d",
>> vm->def->name, vm->pid, migrated);
>>
>> + if (!virDomainObjIsActive(vm)) {
>> + VIR_DEBUG("VM '%s' not active", vm->def->name);
>> + return;
>> + }
>> +
>
> Looks like the solution Dan was asking for... ACK
Thanks; pushed.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110203/e59e8e3d/attachment-0001.sig>
More information about the libvir-list
mailing list