]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer.pm
Improve handling and description of migrate with --online
[qemu-server.git] / PVE / QemuServer.pm
index 1260cc033352be60c5bc71248f2350498c93062a..ad6902f3c6e129824436fe7fc483a383b361a5f5 100644 (file)
@@ -1319,7 +1319,7 @@ EODESCR
     usb3 => {
        optional => 1,
        type => 'boolean',
-       description => "Specifies whether if given host option is a USB3 device or port (this does currently not work reliably with spice redirection and is then ignored).",
+       description => "Specifies whether if given host option is a USB3 device or port.",
         default => 0,
     },
 };
@@ -2925,7 +2925,7 @@ sub check_local_resources {
     push @loc_res, "ivshmem" if $conf->{ivshmem};
 
     foreach my $k (keys %$conf) {
-       next if $k =~ m/^usb/ && ($conf->{$k} eq 'spice');
+       next if $k =~ m/^usb/ && ($conf->{$k} =~ m/^spice(?![^,])/);
        # sockets are safe: they will recreated be on the target side post-migrate
        next if $k =~ m/^serial/ && ($conf->{$k} eq 'socket');
        push @loc_res, $k if $k =~ m/^(usb|hostpci|serial|parallel)\d+$/;