[PATCH v3 0/4] Add reboot stopped reason

Ben Grande posted 4 patches 3 days, 4 hours ago
There is a newer version of this series
NEWS.rst                         | 12 ++++++++++++
examples/c/misc/event-test.c     |  3 +++
include/libvirt/libvirt-domain.h |  1 +
src/libvirt-domain.c             |  5 ++++-
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, 25 insertions(+), 5 deletions(-)
[PATCH v3 0/4] Add reboot stopped reason
Posted by Ben Grande 3 days, 4 hours ago
Report the new VIR_DOMAIN_EVENT_STOPPED_REBOOT reason when reboot has
been requested. I have only tested this on Xen. 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/
https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/5W4TO22WVDT3PAUPTBKXLKGVZAYGIM2C/

Ben Grande (4):
  libvirt: Add stopped reason of reboot
  docs: libvirt-domain: briefly document reboot event
  drivers: Propagate stopped reason of reboot
  NEWS: Introduce VIR_DOMAIN_EVENT_STOPPED_REASON

 NEWS.rst                         | 12 ++++++++++++
 examples/c/misc/event-test.c     |  3 +++
 include/libvirt/libvirt-domain.h |  1 +
 src/libvirt-domain.c             |  5 ++++-
 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, 25 insertions(+), 5 deletions(-)

-- 
Benjamin Grande