From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT5Qx-0003Xc-8K for qemu-devel@nongnu.org; Fri, 19 Apr 2013 03:08:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UT5Qs-0004aq-JN for qemu-devel@nongnu.org; Fri, 19 Apr 2013 03:08:35 -0400 Received: from [222.73.24.84] (port=16505 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UT5Qs-0004ab-90 for qemu-devel@nongnu.org; Fri, 19 Apr 2013 03:08:30 -0400 Date: Fri, 19 Apr 2013 15:07:56 +0800 From: Hu Tao Message-ID: <20130419070756.GJ11385@localhost.localdomain> References: <87obdcgpjx.fsf@blackfin.pond.sub.org> <516FD339.3080201@redhat.com> MIME-Version: 1.0 In-Reply-To: <516FD339.3080201@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Subject: Re: [Qemu-devel] [PATCH v19 3/7] introduce a new qom device to deal with panicked event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Gleb Natapov , "Michael S. Tsirkin" , Jan Kiszka , qemu-devel , Markus Armbruster , Blue Swirl , Orit Wasserman , Juan Quintela , Alexander Graf , Christian Borntraeger , Andrew Jones , Alex Williamson , Sasha Levin , Stefan Hajnoczi , Luiz Capitulino , KAMEZAWA Hiroyuki , Anthony Liguori , Marcelo Tosatti On Thu, Apr 18, 2013 at 01:04:25PM +0200, Paolo Bonzini wrote: > Il 18/04/2013 11:23, Markus Armbruster ha scritto: > > Hu Tao writes: > > > >> pvpanic device is used to send guest panic event from guest to qemu. > >> > >> When guest panic happens, pvpanic device driver will write a event > >> number to IO port 0x505(which is the IO port occupied by pvpanic device, > >> by default). On receiving the event, pvpanic device will pause guest > >> cpu(s), and send a qmp event QEVENT_GUEST_PANICKED. > >> > >> Signed-off-by: Wen Congyang > >> Signed-off-by: Hu Tao > >> --- > >> hw/misc/Makefile.objs | 2 + > >> hw/misc/pvpanic.c | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++ > >> 2 files changed, 125 insertions(+) > >> create mode 100644 hw/misc/pvpanic.c > >> > >> diff --git a/hw/misc/Makefile.objs b/hw/misc/Makefile.objs > >> index 03699c3..d72ea83 100644 > >> --- a/hw/misc/Makefile.objs > >> +++ b/hw/misc/Makefile.objs > >> @@ -38,3 +38,5 @@ obj-$(CONFIG_OMAP) += omap_tap.o > >> obj-$(CONFIG_PXA2XX) += pxa2xx_pcmcia.o > >> obj-$(CONFIG_SLAVIO) += slavio_misc.o > >> obj-$(CONFIG_ZYNQ) += zynq_slcr.o > >> + > >> +common-obj-y += pvpanic.o > > Sorry for not noticing before, you need to add CONFIG_PVPANIC to both > i386-softmmu.mak and x86_64-softmmu.mak. > > If you can respin tomorrow we can include it in 1.5 quite easily, BIOS > patch included. Done.