From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSWa-00069g-7p for qemu-devel@nongnu.org; Mon, 04 Mar 2013 05:21:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCSWZ-0001Mr-8D for qemu-devel@nongnu.org; Mon, 04 Mar 2013 05:21:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCSWY-0001Mh-VK for qemu-devel@nongnu.org; Mon, 04 Mar 2013 05:21:39 -0500 Message-ID: <51347597.8070406@redhat.com> Date: Mon, 04 Mar 2013 11:21:11 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <5134730A.2050406@de.ibm.com> In-Reply-To: <5134730A.2050406@de.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v13 6/8] introduce a new qom device to deal with panicked event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: Peter Maydell , Gleb Natapov , "Michael S. Tsirkin" , Hu Tao , qemu-devel , Luiz Capitulino , Blue Swirl , Orit Wasserman , kvm list , Juan Quintela , Markus Armbruster , Jens Freimann , Jan Kiszka , Andrew Jones , Viktor Mihajlovski , Alex Williamson , Sasha Levin , Stefan Hajnoczi , KAMEZAWA Hiroyuki , Kevin Wolf , Alexander Graf , Anthony Liguori , Marcelo Tosatti , "linux-kernel@vger.kernel.org" , Einar Lueck Il 04/03/2013 11:10, Christian Borntraeger ha scritto: > + //disabled wait: we either > + //do a > + //monitor_protocol_event(QEVENT_GUEST_PANICKED, whatever); > + //or > + //or call into pvevent > r = EXCP_HALTED; > break; > case ICPT_CPU_STOP: > > > I would prefer to just use the monitor_protocol_event, on the other hand > a call into pvent could make it configurable. I asked in my review to make pvevent not configurable, So monitor_protocol_event(QEVENT_GUEST_PANICKED); vm_stop(RUNSTATE_GUEST_PANICKED); would do I guess. Feel free to submit a patch to qemu-devel. Hu, please take any patch that Christian submits and incorporate it in your series for future posting. Paolo