mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-13 13:17:55 +03:00
Revert "enable usb2 controller by default"
This reverts commit 42869ac07d
.
This commit is contained in:
parent
2dbe827e38
commit
fcc573ab24
@ -2192,11 +2192,23 @@ sub config_to_command {
|
||||
|
||||
push @$cmd, '-daemonize';
|
||||
|
||||
push @$devices, '-readconfig', '/usr/share/qemu-server/pve-usb.cfg';
|
||||
my $use_usb2 = 0;
|
||||
for (my $i = 0; $i < $MAX_USB_DEVICES; $i++) {
|
||||
next if !$conf->{"usb$i"};
|
||||
$use_usb2 = 1;
|
||||
}
|
||||
# include usb device config
|
||||
push @$devices, '-readconfig', '/usr/share/qemu-server/pve-usb.cfg' if $use_usb2;
|
||||
|
||||
# enable absolute mouse coordinates (needed by vnc)
|
||||
my $tablet = defined($conf->{tablet}) ? $conf->{tablet} : $defaults->{tablet};
|
||||
push @$devices, '-device', 'usb-tablet,id=tablet,bus=ehci.0,port=6' if $tablet;
|
||||
if ($tablet) {
|
||||
if ($use_usb2) {
|
||||
push @$devices, '-device', 'usb-tablet,bus=ehci.0,port=6';
|
||||
} else {
|
||||
push @$devices, '-usbdevice', 'tablet';
|
||||
}
|
||||
}
|
||||
|
||||
# host pci devices
|
||||
for (my $i = 0; $i < $MAX_HOSTPCI_DEVICES; $i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user