]> git.proxmox.com Git - qemu-server.git/commit
pci: add helpers to (un)reserve pciids for a vm
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 7 Oct 2021 13:45:30 +0000 (15:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Oct 2021 07:07:52 +0000 (09:07 +0200)
commit3bfee796f4621bc864621f3fabeebaf402fe3e0b
tree0be9ea32926b051c8d9682b69de7e1194153c3ec
parent71cb8e0f8763daef11e96e70e2843677a308b45b
pci: add helpers to (un)reserve pciids for a vm

saves a list of pciid <-> vmid mappings in /var/run
that we can check when we start a vm

if we're not given a pid but a timeout, we save the time when the
reservation will run out (current time + timeout + 5s) since each
vm start (until we can save the pid) varies from config to config

reserve_pci_usage and remove_pci_reservation always expect a list of ids
so that we can update the reservation for a vm all at once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer/PCI.pm