mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-08 04:05:05 -05:00
qemu: Report shutdown event details
QEMU will likely report the details of it shutting down, particularly whether the shutdown was initiated by the guest or host. We should forward that information along, at least for shutdown events. Reset has that as well, however that is not a lifecycle event and would add extra constants that might not be used. It can be added later on. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1384007 Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
@@ -2983,7 +2983,16 @@ typedef enum {
|
||||
* Details on the cause of a 'shutdown' lifecycle event
|
||||
*/
|
||||
typedef enum {
|
||||
VIR_DOMAIN_EVENT_SHUTDOWN_FINISHED = 0, /* Guest finished shutdown sequence */
|
||||
/* Guest finished shutdown sequence */
|
||||
VIR_DOMAIN_EVENT_SHUTDOWN_FINISHED = 0,
|
||||
|
||||
/* Domain finished shutting down after request from the guest itself
|
||||
* (e.g. hardware-specific action) */
|
||||
VIR_DOMAIN_EVENT_SHUTDOWN_GUEST = 1,
|
||||
|
||||
/* Domain finished shutting down after request from the host (e.g. killed by
|
||||
* a signal) */
|
||||
VIR_DOMAIN_EVENT_SHUTDOWN_HOST = 2,
|
||||
|
||||
# ifdef VIR_ENUM_SENTINELS
|
||||
VIR_DOMAIN_EVENT_SHUTDOWN_LAST
|
||||
|
||||
Reference in New Issue
Block a user