[pve-devel] [PATCH qemu-server] Move name argument to improve visibility in a process list

Herman van Rink helmo at initfour.nl
Mon Mar 12 13:28:14 CET 2018


From: Herman van Rink <rink at initfour.nl>

Signed-off-by: Herman van Rink <rink at initfour.nl>
---
 PVE/QemuServer.pm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 628ca33..abd0713 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3093,6 +3093,10 @@ sub config_to_command {
 
     push @$cmd, '-id', $vmid;
 
+    my $vmname = $conf->{name} || "vm$vmid";
+
+    push @$cmd, '-name', $vmname;
+
     my $use_virtio = 0;
 
     my $qmpsocket = qmp_socket($vmid);
@@ -3249,9 +3253,6 @@ sub config_to_command {
 	}
     }
 
-    my $vmname = $conf->{name} || "vm$vmid";
-
-    push @$cmd, '-name', $vmname;
 
     my $sockets = 1;
     $sockets = $conf->{smp} if $conf->{smp}; # old style - no longer iused
-- 
2.9.0




More information about the pve-devel mailing list