5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2024-12-25 23:21:43 +03:00

enable usb2 controller by default

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-02-18 13:44:33 +01:00 committed by Dietmar Maurer
parent daca220d29
commit 42869ac07d

View File

@ -2192,23 +2192,11 @@ sub config_to_command {
push @$cmd, '-daemonize';
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;
push @$devices, '-readconfig', '/usr/share/qemu-server/pve-usb.cfg';
# enable absolute mouse coordinates (needed by vnc)
my $tablet = defined($conf->{tablet}) ? $conf->{tablet} : $defaults->{tablet};
if ($tablet) {
if ($use_usb2) {
push @$devices, '-device', 'usb-tablet,bus=ehci.0,port=6';
} else {
push @$devices, '-usbdevice', 'tablet';
}
}
push @$devices, '-device', 'usb-tablet,id=tablet,bus=ehci.0,port=6' if $tablet;
# host pci devices
for (my $i = 0; $i < $MAX_HOSTPCI_DEVICES; $i++) {