[pve-devel] [PATCH qemu-server 1/2] fix q35 live migration
Dominik Csapak
d.csapak at proxmox.com
Tue Nov 27 11:32:17 CET 2018
with live migration the machine type not q35, but something like
pc-q35-2.12
so we missed to include the q35 cfg
in the future we probably want to have a QemuServer::Tools
to refactor such methods
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/QemuServer/USB.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/QemuServer/USB.pm b/PVE/QemuServer/USB.pm
index 3d65d38..036c16c 100644
--- a/PVE/QemuServer/USB.pm
+++ b/PVE/QemuServer/USB.pm
@@ -42,7 +42,7 @@ sub get_usb_controllers {
if ($arch eq 'aarch64') {
$pciaddr = print_pci_addr('ehci', $bridges, $arch, $machine);
push @$devices, '-device', "usb-ehci,id=ehci$pciaddr";
- } elsif ($machine eq 'q35') {
+ } elsif ($machine =~ /q35/) {
# the q35 chipset support native usb2, so we enable usb controller
# by default for this machine type
push @$devices, '-readconfig', '/usr/share/qemu-server/pve-q35.cfg';
--
2.11.0
More information about the pve-devel
mailing list