mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2024-12-25 23:21:43 +03:00
uhci controller : use new -device syntax
we need an id to allow hotplug info pci before --------------- Bus 0, device 1, function 2: USB controller: PCI device 8086:7020 IRQ 11. BAR4: I/O at 0xc040 [0xc05f]. id "" info pci after -------------- Bus 0, device 1, function 2: USB controller: PCI device 8086:7020 IRQ 11. BAR4: I/O at 0xc040 [0xc05f]. id "uhci" Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
064bfb367b
commit
24f0d39a6c
@ -2192,6 +2192,9 @@ sub config_to_command {
|
||||
|
||||
push @$cmd, '-daemonize';
|
||||
|
||||
$pciaddr = print_pci_addr("piix3", $bridges);
|
||||
push @$devices, '-device', "piix3-usb-uhci,id=uhci$pciaddr.0x2";
|
||||
|
||||
my $use_usb2 = 0;
|
||||
for (my $i = 0; $i < $MAX_USB_DEVICES; $i++) {
|
||||
next if !$conf->{"usb$i"};
|
||||
@ -3356,7 +3359,7 @@ sub print_pci_addr {
|
||||
|
||||
my $res = '';
|
||||
my $devices = {
|
||||
#addr1 : ide,parallel,serial (motherboard)
|
||||
piix3 => { bus => 0, addr => 1 },
|
||||
#addr2 : first videocard
|
||||
balloon0 => { bus => 0, addr => 3 },
|
||||
watchdog => { bus => 0, addr => 4 },
|
||||
|
Loading…
Reference in New Issue
Block a user