|
34 | 34 | my $usbbus; |
35 | 35 | - if ($q35 || $arch eq 'aarch64') { |
36 | 36 | - $usbbus = 'ehci'; |
37 | | -+ if ($q35 || $arch eq 'aarch64' || $arch eq 'riscv64' || $arch eq 'loongarch64') { |
| 37 | ++ if ($q35 || $arch ne 'x86_64') { |
38 | 38 | + $usbbus = 'qemu-xhci'; |
39 | 39 | } else { |
40 | 40 | $usbbus = 'uhci'; |
@@ -233,7 +233,7 @@ diff -ur a/PVE/QemuServer/CPUConfig.pm b/PVE/QemuServer/CPUConfig.pm |
233 | 233 | my $cputype = $kvm ? "kvm64" : "qemu64"; |
234 | 234 | if ($arch eq 'aarch64') { |
235 | 235 | - $cputype = 'cortex-a57'; |
236 | | -+ $cputype = 'cortex-a57'; |
| 236 | ++ $cputype = 'host'; |
237 | 237 | + } elsif ($arch eq 'riscv64') { |
238 | 238 | + $cputype = 'rv64'; |
239 | 239 | + } elsif ($arch eq 'loongarch64'){ |
@@ -278,7 +278,7 @@ diff -ur a/PVE/QemuServer/USB.pm b/PVE/QemuServer/USB.pm |
278 | 278 | - push @$devices, '-device', "usb-ehci,id=ehci$pciaddr"; |
279 | 279 | + if ($arch ne 'x86_64') { |
280 | 280 | + $pciaddr = print_pci_addr('qemu-xhci', $bridges, $arch, $machine); |
281 | | -+ push @$devices, '-device', "qemu-xhci,id=qemu-xchi"; |
| 281 | ++ push @$devices, '-device', "qemu-xhci,id=qemu-xhci"; |
282 | 282 | } elsif (!$is_q35) { |
283 | 283 | $pciaddr = print_pci_addr("piix3", $bridges, $arch, $machine); |
284 | 284 | push @$devices, '-device', "piix3-usb-uhci,id=uhci$pciaddr.0x2"; |
0 commit comments