]> git.proxmox.com Git - qemu-server.git/commitdiff
migration : enable mtunnel for insecure migration V2
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 5 Sep 2017 09:46:17 +0000 (11:46 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 12 Sep 2017 12:15:33 +0000 (14:15 +0200)
We only use it to send commands faster like resume

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuMigrate.pm

index 39b94910312e6b744984255b335953638f41f3c8..937a85529049b4073227fe6f1c6fa796f0f4a21c 100644 (file)
@@ -599,8 +599,9 @@ sub phase2 {
 
     die "unable to detect remote migration address\n" if !$raddr;
 
+    $self->log('info', "start remote tunnel");
+
     if ($migration_type eq 'secure') {
-       $self->log('info', "start remote tunnel");
 
        if ($ruri =~ /^unix:/) {
            unlink $raddr;
@@ -633,6 +634,9 @@ sub phase2 {
        } else {
            die "unsupported protocol in migration URI: $ruri\n";
        }
+    } else {
+       #fork tunnel for insecure migration, to send faster commands like resume
+       $self->{tunnel} = $self->fork_tunnel();
     }
 
     my $start = time();