From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIhHL-0006uJ-RD for qemu-devel@nongnu.org; Thu, 10 Dec 2009 06:33:51 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIhHH-0006rg-3C for qemu-devel@nongnu.org; Thu, 10 Dec 2009 06:33:51 -0500 Received: from [199.232.76.173] (port=33059 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIhHG-0006rW-Rw for qemu-devel@nongnu.org; Thu, 10 Dec 2009 06:33:46 -0500 Received: from mail-px0-f189.google.com ([209.85.216.189]:43573) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NIhHG-0007Dw-KH for qemu-devel@nongnu.org; Thu, 10 Dec 2009 06:33:46 -0500 Received: by pxi27 with SMTP id 27so2046804pxi.4 for ; Thu, 10 Dec 2009 03:33:45 -0800 (PST) MIME-Version: 1.0 Date: Thu, 10 Dec 2009 12:33:44 +0100 Message-ID: <233e0fa20912100333s38992cb0w2f956016049b5b3@mail.gmail.com> From: Jan Psota Content-Type: multipart/mixed; boundary=0016e64e4c960e6034047a5e2e14 Subject: [Qemu-devel] qemu-kvm guest shutdown on signal -- patch List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0016e64e4c960e6034047a5e2e14 Content-Type: multipart/alternative; boundary=0016e64e4c960e602c047a5e2e12 --0016e64e4c960e602c047a5e2e12 Content-Type: text/plain; charset=ISO-8859-1 It would be useful if you include this addition to qemu code. I often use Windows on virtual qemu machines and I think that there is no more elegant way to shut them down (any other OS too!), than by killing qemu with signal it does not use for other purposes. // termsig_handler() is not consistent with other _handler names, // it would look better as sigterm_handler() -- Jan Psota --0016e64e4c960e602c047a5e2e12 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It would be useful if you include this addition to qemu code.
I often use Windows on virtual qemu machines and I think that there is
no more elegant way to shut them down (any other OS too!), than by<= /div>
killing qemu with signal=A0it does not use for other purposes.

// termsig_handler() is not consistent with other _handle= r names,
// it would look better as=A0sigterm_handler()

--
Jan Psota

--0016e64e4c960e602c047a5e2e12-- --0016e64e4c960e6034047a5e2e14 Content-Type: text/x-patch; charset=US-ASCII; name="acpi_poweroff_on_sigquit.patch" Content-Disposition: attachment; filename="acpi_poweroff_on_sigquit.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g31g2kr10 LS0tIHZsLmMub3JpZwkyMDA5LTA5LTIzIDA5OjMwOjAyLjAwMDAwMDAwMCArMDIwMAorKysgdmwu YwkyMDA5LTEyLTA4IDIxOjMxOjU3LjI3NTAzMzAyOSArMDEwMApAQCAtNDc0Miw2ICs0NzQyLDEx IEBACiAgICAgcWVtdV9zeXN0ZW1fc2h1dGRvd25fcmVxdWVzdCgpOwogfQogCitzdGF0aWMgdm9p ZCBzaWdxdWl0X2hhbmRsZXIoaW50IHNpZ25hbCkKK3sKKyAgICBxZW11X3N5c3RlbV9wb3dlcmRv d25fcmVxdWVzdCgpOworfQorCiBzdGF0aWMgdm9pZCBzaWdjaGxkX2hhbmRsZXIoaW50IHNpZ25h bCkKIHsKICAgICB3YWl0cGlkKC0xLCBOVUxMLCBXTk9IQU5HKTsKQEAgLTQ3NTcsNiArNDc2Miw5 IEBACiAgICAgc2lnYWN0aW9uKFNJR0hVUCwgICZhY3QsIE5VTEwpOwogICAgIHNpZ2FjdGlvbihT SUdURVJNLCAmYWN0LCBOVUxMKTsKIAorICAgIGFjdC5zYV9oYW5kbGVyID0gc2lncXVpdF9oYW5k bGVyOworICAgIHNpZ2FjdGlvbihTSUdRVUlULCAmYWN0LCBOVUxMKTsKKwogICAgIGFjdC5zYV9o YW5kbGVyID0gc2lnY2hsZF9oYW5kbGVyOwogICAgIGFjdC5zYV9mbGFncyA9IFNBX05PQ0xEU1RP UDsKICAgICBzaWdhY3Rpb24oU0lHQ0hMRCwgJmFjdCwgTlVMTCk7Cg== --0016e64e4c960e6034047a5e2e14--