libvirt/include/libvirt
zhenwei pi 26badd13e8 qemu: support Panic Crashloaded event handling
Pvpanic device supports bit 1 as crashloaded event, it means that
guest actually panicked and run kexec to handle error by guest side.

Handle crashloaded as a lifecyle event in libvirt.

Test case:
Guest side:
before testing, we need make sure kdump is enabled,
1, build new pvpanic driver (with commit from upstream
   e0b9a42735f2672ca2764cfbea6e55a81098d5ba
   191941692a3d1b6a9614502b279be062926b70f5)
2, insmod new kmod
3, enable crash_kexec_post_notifiers,
  # echo 1 > /sys/module/kernel/parameters/crash_kexec_post_notifiers
4, trigger kernel panic
  # echo 1 > /proc/sys/kernel/sysrq
  # echo c > /proc/sysrq-trigger

Host side:
1, build new qemu with pvpanic patches (with commit from upstream
   600d7b47e8f5085919fd1d1157f25950ea8dbc11
   7dc58deea79a343ac3adc5cadb97215086054c86)
2, build libvirt with this patch
3, handle lifecycle event and trigger guest side panic
  # virsh event stretch --event lifecycle
  event 'lifecycle' for domain stretch: Crashed Crashloaded
  events received: 1

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
2020-02-07 14:05:25 +00:00
..
libvirt-admin.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-common.h.in Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
libvirt-domain-checkpoint.h backup: Introduce virDomainCheckpoint APIs 2019-07-26 16:48:58 -05:00
libvirt-domain-snapshot.h snapshot: Add VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE flag 2019-07-10 17:34:58 -05:00
libvirt-domain.h qemu: support Panic Crashloaded event handling 2020-02-07 14:05:25 +00:00
libvirt-event.h util: add note about event file descriptors on Windows 2020-01-03 15:42:12 +00:00
libvirt-host.h include: add a space before ending a comment 2020-01-28 13:32:28 +01:00
libvirt-interface.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-lxc.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-network.h network: add virNetworkPortRef API 2019-06-19 11:21:38 +01:00
libvirt-nodedev.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-nwfilter.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-qemu.h Add API to change qemu agent response timeout 2019-11-14 19:10:01 +01:00
libvirt-secret.h secret: Add support for usage type vTPM, extend schema and test case 2019-07-26 09:59:27 +01:00
libvirt-storage.h storage: Add iscsi-direct pool list type flag 2019-07-13 17:40:09 +02:00
libvirt-stream.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt.h backup: Introduce virDomainCheckpoint APIs 2019-07-26 16:48:58 -05:00
Makefile.am include: stop distributing generated source files 2019-10-23 14:45:56 +02:00
virterror.h include: add a space before ending a comment 2020-01-28 13:32:28 +01:00