Re: [PATCH v2] Allow destroying QEMU VM even if a job is active

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

 



On 05/09/2011 10:58 AM, Daniel P. Berrange wrote:
> Introduce a virProcessKill function that can be safely called
> even when the job mutex is held. This allows virDomainDestroy
> to kill any VM even if it is asleep in a monitor job. The PID
> will die and the thread asleep on the monitor will then wake
> up releasing the job mutex.
> 
> * src/qemu/qemu_driver.c: Kill process before using qemuProcessStop
>   to ensure job is released
> * src/qemu/qemu_process.c: Add virProcessKill for killing off
>   QEMU processes
> ---
>  src/qemu/qemu_driver.c  |    7 ++++++
>  src/qemu/qemu_process.c |   49 +++++++++++++++++++++++++++++++++++++++-------
>  src/qemu/qemu_process.h |    2 +
>  3 files changed, 50 insertions(+), 8 deletions(-)

ACK.

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

Attachment: signature.asc
Description: OpenPGP digital signature

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