mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 19:20:11 +00:00
remove support for old hostusb syntax
This commit is contained in:
parent
76178b62d9
commit
e0ab7331aa
@ -1633,8 +1633,8 @@ sub check_local_resources {
|
|||||||
my $loc_res = 0;
|
my $loc_res = 0;
|
||||||
# fixme:
|
# fixme:
|
||||||
die "implement me";
|
die "implement me";
|
||||||
$loc_res = 1 if $conf->{hostusb};
|
$loc_res = 1 if $conf->{hostusb}; # old syntax
|
||||||
$loc_res = 1 if $conf->{hostpci};
|
$loc_res = 1 if $conf->{hostpci}; # old syntax
|
||||||
|
|
||||||
foreach my $k (keys %$conf) {
|
foreach my $k (keys %$conf) {
|
||||||
$loc_res = 1 if $k =~ m/^(usb|hostpci|serial|parallel)\d+$/;
|
$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
|
# serial devices
|
||||||
for (my $i = 0; $i < $MAX_SERIAL_PORTS; $i++) {
|
for (my $i = 0; $i < $MAX_SERIAL_PORTS; $i++) {
|
||||||
push @$cmd, '-chardev', "tty,id=serial$i,path=$conf->{serial$i}";
|
push @$cmd, '-chardev', "tty,id=serial$i,path=$conf->{serial$i}";
|
||||||
|
Loading…
Reference in New Issue
Block a user