From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brice Waegeneire Subject: bug#34276: =?UTF-8?Q?=E2=80=98guix?= system disk-im =?UTF-8?Q?age=E2=80=99?= successfully builds a bad image Date: Sat, 21 Mar 2020 16:44:02 +0000 Message-ID: References: <877eejfqmb.fsf@nckx> <7a36cb1fc7c68f5d63a324df49170cdc@waegenei.re> <875zex1z05.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51158) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFhF9-0001Ey-6w for bug-guix@gnu.org; Sat, 21 Mar 2020 12:45:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFhF7-00026F-PF for bug-guix@gnu.org; Sat, 21 Mar 2020 12:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41924) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFhF7-00026A-Lr for bug-guix@gnu.org; Sat, 21 Mar 2020 12:45:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFhF7-00073H-K5 for bug-guix@gnu.org; Sat, 21 Mar 2020 12:45:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <875zex1z05.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 34276@debbugs.gnu.org Hello Ludo, On 2020-03-21 15:58, Ludovic Courtès wrote: > Any idea how to implement it? Is QMP a request/reply kind of interface > like the monitor? Not really or I would have sent a patch instead. QMP is similar to the the monitor in the sense that you can send a command and receive a reply but it give us access to more features; in our case asynchronous events. To get notified by the pvpanic device that a panic occured on the guest it is needed to do the following: 1. Connect to the socket 2. Receive the server greetings 3. Respond with the capabilites request 4. Receive the capabilites respond 5. Listen on GUEST_PANICKED events The QMP specifications are available here[0]. [0]: https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/interop/qmp-spec.txt;hb=HEAD Brice.