so we can partially release ids again. This will be necessary for NVIDIAs new sysfs api
Signed-off-by: Dominik Csapak <d.csa...@proxmox.com> --- PVE/QemuServer/PCI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer/PCI.pm b/PVE/QemuServer/PCI.pm index 97eb2165..ae180e08 100644 --- a/PVE/QemuServer/PCI.pm +++ b/PVE/QemuServer/PCI.pm @@ -719,11 +719,12 @@ my $write_pci_reservation_unlocked = sub { # removes all PCI device reservations held by the `vmid` sub remove_pci_reservation { - my ($vmid) = @_; + my ($vmid, $pciids) = @_; PVE::Tools::lock_file($PCIID_RESERVATION_LOCK, 2, sub { my $reservation_list = $parse_pci_reservation_unlocked->(); for my $id (keys %$reservation_list) { + next if defined($pciids) && !grep { $_ eq $id } $pciids->@*; my $reservation = $reservation_list->{$id}; next if $reservation->{vmid} != $vmid; delete $reservation_list->{$id}; -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel