This series introduces a new simulated device, pvevent, 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. TODO: make the io port used by pvevent device configurable. Tested with: - qemu(kvm) - qemu(tcg) - piix - q35 Changes from v13: - communicate the io port with guest by ACPI, instead of hardcoding it (Marcelo) - panic event action is always 'pause' (Paolo) - not kvm-specific (Gleb) - make the device target-independent (Paolo) - no runstate save/load(will be a seperate patch) (Paolo) - support q35 (Gleb) - doc about qmp event (Eric) - doc about pvevent device (Paolo) v13: http://lists.nongnu.org/archive/html/qemu-devel/2013-02/msg05361.html Hu Tao (4): 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 pv event: add document to describe the usage QMP/qmp-events.txt | 14 ++++++ docs/pvevent.txt | 14 ++++++ hw/Makefile.objs | 2 + hw/pvevent.c | 116 ++++++++++++++++++++++++++++++++++++++++++++++ include/monitor/monitor.h | 1 + include/sysemu/sysemu.h | 1 + monitor.c | 1 + qapi-schema.json | 5 +- qmp.c | 3 +- vl.c | 13 +++++- 10 files changed, 165 insertions(+), 5 deletions(-) create mode 100644 docs/pvevent.txt create mode 100644 hw/pvevent.c -- 1.8.1.4