mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-27 11:34:09 +03: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:
@@ -240,6 +240,12 @@ eventDetailToString(int event,
|
||||
case VIR_DOMAIN_EVENT_SHUTDOWN_FINISHED:
|
||||
return "Finished";
|
||||
|
||||
case VIR_DOMAIN_EVENT_SHUTDOWN_GUEST:
|
||||
return "Guest request";
|
||||
|
||||
case VIR_DOMAIN_EVENT_SHUTDOWN_HOST:
|
||||
return "Host request";
|
||||
|
||||
case VIR_DOMAIN_EVENT_SHUTDOWN_LAST:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user