From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIayh-00051j-QH for qemu-devel@nongnu.org; Thu, 21 Mar 2013 04:36:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIayZ-0003Aw-LL for qemu-devel@nongnu.org; Thu, 21 Mar 2013 04:36:03 -0400 Received: from [222.73.24.84] (port=50438 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIayZ-00038X-3H for qemu-devel@nongnu.org; Thu, 21 Mar 2013 04:35:55 -0400 From: Hu Tao Date: Thu, 21 Mar 2013 16:35:38 +0800 Message-Id: Subject: [Qemu-devel] [PATCH v15 0/6] Add pvpanic device to deal with guest panic event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , "Daniel P. Berrange" , KAMEZAWA Hiroyuki , Jan Kiszka , Gleb Natapov , Blue Swirl , Eric Blake , Andrew Jones , Marcelo Tosatti , Sasha Levin , Luiz Capitulino , Anthony Liguori , Markus Armbruster , Paolo Bonzini , Stefan Hajnoczi , Juan Quintela , Orit Wasserman , Wen Congyang , "Michael S. Tsirkin" , Alexander Graf , Alex Williamson , Peter Maydell , Christian Borntraeger This series introduces a new simulated device, pvpanic, to notify qemu when guest panic event happens. Along with this series, there are two patches to add seabios ACPI driver and kernel ACPI driver for the device, respectively. Tested with combinations of qemu(kvm)/qemu(tcg), piix/q35, and default ioport/custom ioport. The only fail case is q35 with custom ioport. The reason is, in seabios we can't differentiate whether the passed in DSDT is for q35 or not, and the DSDT patching must uses the right offset depending this. Addressing this may conflicts with what people doing to move ACPI tables from seabios to qemu, and, I prefixes some patches with 'RFC'. Changes from v14: - use QEMU0001 as HID(I mistakenly used MSFT0001 in previous version) - device name changed from pvevent to pvpanic - pass ioport to seabios through fw_cfg - document improvement v14: http://lists.nongnu.org/archive/html/qemu-devel/2013-03/msg02293.html Hu Tao (6): add a new runstate: RUN_STATE_GUEST_PANICKED add a new qevent: QEVENT_GUEST_PANICKED introduce a new qom device to deal with panicked event pvpanic: add document of pvpanic pc_piix, pc_q35: export fw_cfg pvpanic: pass configurable ioport to seabios QMP/qmp-events.txt | 14 ++++++ docs/specs/pvpanic.txt | 14 ++++++ hw/Makefile.objs | 1 + hw/fw_cfg.h | 2 + hw/i386/pc_piix.c | 7 +-- hw/i386/pc_q35.c | 9 ++-- hw/pc.h | 6 +++ hw/pvpanic.c | 126 ++++++++++++++++++++++++++++++++++++++++++++++ include/monitor/monitor.h | 1 + include/sysemu/sysemu.h | 1 + monitor.c | 1 + qapi-schema.json | 5 +- qmp.c | 3 +- vl.c | 13 ++++- 14 files changed, 192 insertions(+), 11 deletions(-) create mode 100644 docs/specs/pvpanic.txt create mode 100644 hw/pvpanic.c -- 1.8.1.4