[pve-devel] [PATCH qemu-server v6 3/3] use qmeventd to execute qm cleanup

Dominik Csapak d.csapak at proxmox.com
Wed Nov 14 14:59:58 CET 2018


we reverse the direction of the event socket (this does not
prevent live migration) and point it to wher qmeventd listens

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v5:
* fixed path to socket

 PVE/QemuServer.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 9f5d6f3..035d8b7 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3434,8 +3434,7 @@ sub config_to_command {
     push @$cmd, '-mon', "chardev=qmp,mode=control";
 
     if (qemu_machine_feature_enabled($machine_type, $kvmver, 2, 12)) {
-	my $eventsocket = qmp_socket($vmid, 0, 'event');
-	push @$cmd, '-chardev', "socket,id=qmp-event,path=$eventsocket,server,nowait";
+	push @$cmd, '-chardev', "socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5";
 	push @$cmd, '-mon', "chardev=qmp-event,mode=control";
     }
 
-- 
2.11.0





More information about the pve-devel mailing list