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

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



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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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