remove support for old hostusb syntax

This commit is contained in:
Dietmar Maurer 2011-09-12 08:41:28 +02:00
parent 76178b62d9
commit e0ab7331aa

View File

@ -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}";