Received: from eggs.gnu.org ([2001:4830:134:3::10]:37171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7Hsy-0004ld-Ib for qemu-devel@nongnu.org; Thu, 17 Nov 2016 03:17:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7Hsx-0001E9-OK for qemu-devel@nongnu.org; Thu, 17 Nov 2016 03:17:32 -0500 Received: from mail-1.server.selfnet.de ([2001:7c0:e701:126::65]:34744 helo=mail.wh-stuttgart.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7Hsx-0001DU-HX for qemu-devel@nongnu.org; Thu, 17 Nov 2016 03:17:31 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.wh-stuttgart.net (Postfix) with ESMTP id A7630183EFB for ; Thu, 17 Nov 2016 09:17:29 +0100 (CET) Received: from mail.wh-stuttgart.net ([127.0.0.1]) by localhost (mail-1.server.selfnet.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Cw6KQsblcYeA for ; Thu, 17 Nov 2016 09:17:29 +0100 (CET) Received: from roundcube.wh-stuttgart.net (localhost [127.0.0.1]) by mail.wh-stuttgart.net (Postfix) with ESMTPSA for ; Thu, 17 Nov 2016 09:17:29 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 17 Nov 2016 09:17:29 +0100 From: Dirk Braunschweiger In-Reply-To: References: <6c0fc6ddc028e24c7e4d5ec409f53d99@wh-stuttgart.net> Message-ID: <0d2646292539552ddd4f4a5fd2f8ea9b@wh-stuttgart.net> Subject: Re: [Qemu-devel] QMP event on reboot when -no-reboot is set List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 2016-11-16 17:29, John Snow wrote: > On 11/16/2016 09:01 AM, Dirk Braunschweiger wrote: >> Hey Guys, >> >> I want to get a qmp event when the qemu does a shutdown due to the >> -no-reboot flag. Looking at the code I realized that the -no-reboot >> flag >> just changes any reset request to a shutdown request. >> Does anybody already patched qemu to emit some kind of reboot event to >> the qmp socket? >> >> If no one already patched it, would you accept such a patch? Or is a >> non-wanted feature? >> >> Best regards, >> Dirk Braunschweiger >> > > Is the existing "STOP" event insufficient for some reason? Is it > important to distinguish between a 'real' stop and a stop that was > originally intended to be a reboot? > > If you can elaborate on that case, you have a good chance of amending > the event spec to add some new events. > > --js Hi John, the stop event is not sufficient. I want to restart the VM if the guest initiates a reboot. The user of the VM expects that the VM is startet again after he/she clicks on reboot ;) I want to use the --no-reboot flag to stop qemu and restart it on another vm host or to start it with another configuration (more/less RAM/CPU, a bigger HDD, etc...) Best regards, Dirk