[libvirt] [PATCH v2] Allow destroying QEMU VM even if a job is active
Eric Blake
eblake at redhat.com
Tue May 10 14:51:02 UTC 2011
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 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/20110510/1819c9bd/attachment-0001.sig>
More information about the libvir-list
mailing list