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
admins responsibility to know and configure that

Mark the option as experimental in the description.

Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 src/PVE/Mapping/PCI.pm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/PVE/Mapping/PCI.pm b/src/PVE/Mapping/PCI.pm
index 19ace98..0866175 100644
--- a/src/PVE/Mapping/PCI.pm
+++ b/src/PVE/Mapping/PCI.pm
@@ -100,8 +100,16 @@ my $defaultData = {
            maxLength => 4096,
        },
        mdev => {
+           description => "Marks the device(s) as being capable of providing 
mediated devices.",
            type => 'boolean',
            optional => 1,
+           default => 0,
+       },
+       'live-migration-capable' => {
+           description => "Marks the device(s) as being able to be 
live-migrated (Experimental).",
+           type => 'boolean',
+           optional => 1,
+           default => 0,
        },
        map => {
            type => 'array',
@@ -123,6 +131,7 @@ sub options {
     return {
        description => { optional => 1 },
        mdev => { optional => 1 },
+       'live-migration-capable' => { optional => 1 },
        map => {},
     };
 }
-- 
2.39.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to