[PATCH v2 0/9] Add stopped reason for reboot

Ben Grande posted 9 patches 4 days, 2 hours ago
NEWS.rst                         | 8 ++++++++
examples/c/misc/event-test.c     | 3 +++
include/libvirt/libvirt-domain.h | 1 +
src/libvirt-domain.c             | 4 +++-
src/libxl/libxl_domain.c         | 2 +-
src/lxc/lxc_process.c            | 2 +-
src/test/test_driver.c           | 2 +-
tools/virsh-domain-event.c       | 3 ++-
8 files changed, 20 insertions(+), 5 deletions(-)
[PATCH v2 0/9] Add stopped reason for reboot
Posted by Ben Grande 4 days, 2 hours ago
Report the new VIR_DOMAIN_EVENT_STOPPED_REBOOT reason when reboot has
been requested. I have only tested this on Xen, so I made a patch per
VMM. I preferred to rely on the stopped reason, as there is no
discussion that it should be sent, while for the reboot event, there is
debate that it shouldn't always be sent.

CI:

https://gitlab.com/libvirt/libvirt/-/merge_requests/567

Previous discussion and patches:

https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/ZB5ALEFMTONTYZMJ6R2H6JWTOFL4ETER/
https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/KYAL45C54LYSVUITZIEOLAQZU4GBVRQA/

Ben Grande (9):
  libvirt-domain: Add stopped reason of reboot
  docs: libvirt-domain: briefly document reboot event
  virsh: Add reboot to event enum
  libxl: Propagate stopped reason of reboot
  lxc_process: Propagate stopped reason of reboot
  test_driver: Propagate stopped reason of reboot
  examples: Add event detail reboot for stopped event
  NEWS: Introduce VIR_DOMAIN_EVENT_STOPPED_REASON
  NEWS: Inform drivers that support reboot reason

 NEWS.rst                         | 8 ++++++++
 examples/c/misc/event-test.c     | 3 +++
 include/libvirt/libvirt-domain.h | 1 +
 src/libvirt-domain.c             | 4 +++-
 src/libxl/libxl_domain.c         | 2 +-
 src/lxc/lxc_process.c            | 2 +-
 src/test/test_driver.c           | 2 +-
 tools/virsh-domain-event.c       | 3 ++-
 8 files changed, 20 insertions(+), 5 deletions(-)

-- 
Benjamin Grande