]> git.proxmox.com Git - qemu-server.git/commitdiff
fix mdev cmdline generation
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 13 Jul 2020 07:27:16 +0000 (09:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 13 Jul 2020 08:29:25 +0000 (10:29 +0200)
during refactoring, the vmid got lost, but is necessary to get
the correct mdev id

Fixes commit 74c17b7a23c8a953d1dcec9bd53449d71d88cd5d
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[ reference fixed commit ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm
PVE/QemuServer/PCI.pm

index c3b682cdd99c8199b16771dc32115dabb9627850..86e10be87bcbed383984ab0231b71b582c5229e1 100644 (file)
@@ -3103,7 +3103,7 @@ sub config_to_command {
 
     # host pci device passthrough
     my ($kvm_off, $gpu_passthrough, $legacy_igd) = PVE::QemuServer::PCI::print_hostpci_devices(
-       $conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type);
+       $vmid, $conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type);
 
     # usb devices
     my $usb_dev_features = {};
index f1e2bb33f5cb5b0fae72c4d955b8bbce09229527..cb368458c21fbce0e89ec2e7bd88303db8ba9285 100644 (file)
@@ -357,7 +357,7 @@ sub parse_hostpci {
 }
 
 sub print_hostpci_devices {
-    my ($conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type) = @_;
+    my ($vmid, $conf, $devices, $winversion, $q35, $bridges, $arch, $machine_type) = @_;
 
     my $kvm_off = 0;
     my $gpu_passthrough = 0;