libvirt/include/libvirt
Daniel P. Berrange cd2404a3c3 Keep track of guest paused state after disk IO / watchdog events
When a watchdog/IO error occurs, one of the possible actions that
QEMU might take is to pause the guest. In this scenario libvirt
needs to update its internal state for the VM, and emit a
lifecycle event:

  VIR_DOMAIN_EVENT_SUSPENDED

with a detail being one of:

  VIR_DOMAIN_EVENT_SUSPENDED_IOERROR
  VIR_DOMAIN_EVENT_SUSPENDED_WATCHDOG

To future proof against possible QEMU support for multiple monitor
consoles, this patch also hooks into the 'STOPPED' event in QEMU
and emits a generic VIR_DOMAIN_EVENT_SUSPENDED_PAUSED event

* include/libvirt/libvirt.h.in: Add VIR_DOMAIN_EVENT_SUSPENDED_IOERROR
* src/qemu/qemu_driver.c: Update VM state to paused when IO error
  or watchdog events occurrs
* src/qemu/qemu_monitor_json.c: Fix typo in disk IO event name
2010-04-01 12:35:46 +01:00
..
.gitignore Ignore auto-generated header file 2009-09-22 16:12:51 +01:00
libvirt.h.in Keep track of guest paused state after disk IO / watchdog events 2010-04-01 12:35:46 +01:00
Makefile.am * src/Makefile.am src/internal.h src/libvirt.c src/libvirt_sym.version 2006-02-24 22:36:10 +00:00
virterror.h Fix a merge error leftover 2010-03-29 18:27:12 +02:00