From e0ab7331aa307996e4d8e9c38b78cc66ea6e9e62 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 12 Sep 2011 08:41:28 +0200 Subject: [PATCH] remove support for old hostusb syntax --- PVE/QemuServer.pm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 75751845..af0e6178 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -1633,8 +1633,8 @@ sub check_local_resources { my $loc_res = 0; # fixme: die "implement me"; - $loc_res = 1 if $conf->{hostusb}; - $loc_res = 1 if $conf->{hostpci}; + $loc_res = 1 if $conf->{hostusb}; # old syntax + $loc_res = 1 if $conf->{hostpci}; # old syntax foreach my $k (keys %$conf) { $loc_res = 1 if $k =~ m/^(usb|hostpci|serial|parallel)\d+$/; @@ -1987,13 +1987,6 @@ sub config_to_command { } } - if (my $usbdl = $conf->{hostusb}) { - my @dl = split (/,/, $usbdl); - foreach my $dev (@dl) { - push @$cmd, '-usbdevice', "host:$dev" if $dev; - } - } - # serial devices for (my $i = 0; $i < $MAX_SERIAL_PORTS; $i++) { push @$cmd, '-chardev', "tty,id=serial$i,path=$conf->{serial$i}";