From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jose A. Lopes" Subject: Qmp signal event Date: Tue, 26 Nov 2013 15:17:41 +0100 Message-ID: <20131126141741.GA15008@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from mail-bk0-f54.google.com ([209.85.214.54]:59871 "EHLO mail-bk0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753486Ab3KZORp (ORCPT ); Tue, 26 Nov 2013 09:17:45 -0500 Received: by mail-bk0-f54.google.com with SMTP id v16so2660161bkz.27 for ; Tue, 26 Nov 2013 06:17:44 -0800 (PST) Received: from google.com ([2620:0:1046:0:8a51:fbff:fe3f:7355]) by mx.google.com with ESMTPSA id on10sm51500040bkb.13.2013.11.26.06.17.42 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 26 Nov 2013 06:17:43 -0800 (PST) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Hi, We're connecting to an instance using the Qmp socket and listening on the events in order to determine whether the shutdown came from inside the VM or it was issued by the host, for example, by piping 'system_powerdown'. However, we're unable to distinguish between a host shutdown issued through Qmp and a TERM signal issued by kill, for example. Is there a way to determine if KVM received a TERM signal? Is it possible to send an event, just like the ones used for 'SHUTDOWN' and 'POWERDOWN', through Qmp? Cheers, Jose --=20 Jose Antonio Lopes Ganeti Engineering Google Germany GmbH Dienerstr. 12, 80331, M=FCnchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Gesch=E4ftsf=FChrer: Graham Law, Christine Elizabeth Flores Steuernummer: 48/725/00206 Umsatzsteueridentifikationsnummer: DE813741370