qemu-server/PVE/QemuServer
Dominik Csapak fc23c72a42 pci: device selection: don't reserve PCI IDs when VM is already running
Since the only way this could happen is when we're being called
from 'qm showcmd' and there we don't want to reserve or create anything.

In case the VM was not running, we actually reserve the devices, so we
want to call 'cleanup_pci_devices' after to remove those again. This
minimizes the timespan where those devices are not available for real vm
starts.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Christoph Heiss <c.heiss@proxmox.com>
Reviewed-by: Christoph Heiss <c.heiss@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-10-24 18:39:37 +02:00
..
Agent.pm tree wide cleanup of s/return undef/return/ 2020-10-16 16:20:05 +02:00
CGroup.pm fix #5528: override cgroup methods to call systemd via dbus 2024-07-23 08:05:53 +02:00
Cloudinit.pm fix 4493: cloud-init: fix generated Windows config 2024-07-30 19:49:28 +02:00
CPUConfig.pm cpu config: fix get_cpu_bitness always reverting to default cpu type 2024-04-24 11:37:28 +02:00
Drive.pm drive: tpm: fix default version in schema 2024-07-01 10:37:48 +02:00
Helpers.pm vm start: set higher timeout if using PCI passthrough 2023-10-06 18:12:07 +02:00
ImportDisk.pm disk import: warn when fallback is used instead of requested format 2024-03-14 14:01:12 +01:00
Machine.pm move helper to check running QEMU version out of the 'Machine' module 2024-07-30 21:19:51 +02:00
Makefile introduce QMPHelpers module 2023-09-18 17:08:48 +02:00
Memory.pm add memory parser 2023-09-18 17:08:48 +02:00
Monitor.pm monitor: allow passing timeout for a HMP command 2024-06-11 13:56:44 +02:00
OVF.pm fix typos in user-visible strings 2024-10-24 13:15:06 +02:00
PCI.pm pci: device selection: don't reserve PCI IDs when VM is already running 2024-10-24 18:39:37 +02:00
QMPHelpers.pm move helper to check running QEMU version out of the 'Machine' module 2024-07-30 21:19:51 +02:00
USB.pm fix typos in user-visible strings 2024-10-24 13:15:06 +02:00