qemu-server/PVE
Dominik Csapak 1fb1822ec9 fix #3258: block vm start when pci device is already in use
on vm start, we reserve all pciids that we use, and
remove the reservation again in vm_stop_cleanup

first with only a time-based reservation but after the vm is started,
we reserve again but with the pid.

for this, we have to move the start_timeout calculation above the
hostpci handling.

also moved the pci initialization out of the conf parsing loop
so that we can reserve all ids before we actually touch any of them

while touching the lines, fix the indentation

this way, when a vm starts with a pci device that is already configured
for a different running vm, will not be started and the user gets
the error that the device is already in use

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-15 19:58:16 +02:00
..
API2 ovmf: support secure boot with 4m and 4m-ms efidisk types 2021-10-05 18:04:03 +02:00
CLI cli tools: correctly handle warnings task status 2021-06-23 12:26:49 +02:00
QemuServer pci reservation: rework helpers style and readability wise 2021-10-15 19:58:16 +02:00
VZDump fix #3075: add TPM v1.2 and v2.0 support via swtpm 2021-10-05 06:51:02 +02:00
Makefile buildsys: use $(MAKE) instead of make 2019-09-24 18:06:16 +02:00
QemuConfig.pm snapshot: set migration caps before savevm-start 2021-03-16 20:44:51 +01:00
QemuMigrate.pm fix #3075: add TPM v1.2 and v2.0 support via swtpm 2021-10-05 06:51:02 +02:00
QemuServer.pm fix #3258: block vm start when pci device is already in use 2021-10-15 19:58:16 +02:00
QMPClient.pm tree wide cleanups 2020-10-16 18:03:32 +02:00