[pve-devel] [PATCH qemu-server v3 0/3] add qmeventd
Dominik Csapak
d.csapak at proxmox.com
Tue Oct 30 16:06:55 CET 2018
this series adds qmeventd, a binary which listens on a socket
and waits for qemu to connect to it, and thenfor the shutdown event of qemu
i use this to execute 'qm cleanup' when a vm exits, and can detect
if a qemu crashed/was stopped from within/etc.
changes from v2:
* completely reversed the logic: instead of having one binary
per vm, we now have one proper daemon which listens and waits
for qemu to connect to it, this way the race is on the qemu side
(if it crashes/gets killed before connecting to the socket) instead
of with us (connecting to a non existing qemu process)
* dropped the --no-reboot patch/logic, as my patch upstream was not accepted,
but i will send another version of it there soon
* added a manpage, option parsing, etc.
changes from v1:
* 1/5 is new and contains changes that we want for qemu 2.12
* incorporated feedback from w.bumiller
* fixed the -no-reboot check
Dominik Csapak (3):
add qmeventd
add 'qm cleanup'
use qmeventd to execute qm cleanup
Makefile | 21 ++-
PVE/CLI/qm.pm | 59 +++++++++
PVE/QemuServer.pm | 3 +-
debian/control | 1 +
debian/rules | 2 +-
qmeventd.c | 386 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
qmeventd.h | 45 +++++++
qmeventd.rst | 38 ++++++
qmeventd.service | 10 ++
9 files changed, 559 insertions(+), 6 deletions(-)
create mode 100644 qmeventd.c
create mode 100644 qmeventd.h
create mode 100644 qmeventd.rst
create mode 100644 qmeventd.service
--
2.11.0
More information about the pve-devel
mailing list