From ef051db594452c395da0f3ee0fbaf13c5e7aa44c Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 11 Mar 2025 14:20:40 +0100 Subject: [PATCH] mapping: pci: add 'live-migration-capable' flag to mappings so that we can decide in qemu-server to allow live-migration. The driver and QEMU must be capable of that, and it's the admin's responsibility to know and configure that Mark the option as experimental in the description. Signed-off-by: Dominik Csapak Reviewed-by: Christoph Heiss Reviewed-by: Fiona Ebner Tested-by: Christoph Heiss --- src/PVE/Mapping/PCI.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/PVE/Mapping/PCI.pm b/src/PVE/Mapping/PCI.pm index cdd73d9..3e93429 100644 --- a/src/PVE/Mapping/PCI.pm +++ b/src/PVE/Mapping/PCI.pm @@ -105,6 +105,13 @@ my $defaultData = { optional => 1, default => 0, }, + 'live-migration-capable' => { + description => "Marks the device(s) as being able to be live-migrated (Experimental)." + ." This needs hardware and driver support to work.", + type => 'boolean', + optional => 1, + default => 0, + }, map => { type => 'array', description => 'A list of maps for the cluster nodes.', @@ -125,6 +132,7 @@ sub options { return { description => { optional => 1 }, mdev => { optional => 1 }, + 'live-migration-capable' => { optional => 1 }, map => {}, }; }