[libvirt] [libvirt-perl][PATCH 3/3] Add VIR_MIGRATE_TLS constant

Michal Privoznik mprivozn at redhat.com
Wed Mar 29 13:56:29 UTC 2017


Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 Changes                | 1 +
 Virt.xs                | 1 +
 lib/Sys/Virt/Domain.pm | 7 +++++++
 3 files changed, 9 insertions(+)

diff --git a/Changes b/Changes
index 3faaf08..f28523a 100644
--- a/Changes
+++ b/Changes
@@ -13,6 +13,7 @@ Revision history for perl module Sys::Virt
  - Add PERF_PARAM_EMULATION_FAULTS constant
  - Add block threshold event
  - Add virDomainSetBlockThreshold API
+ - Add VIR_MIGRATE_TLS constant
 
 3.1.0 2017-03-03
 
diff --git a/Virt.xs b/Virt.xs
index a05cf4d..039f62d 100644
--- a/Virt.xs
+++ b/Virt.xs
@@ -8219,6 +8219,7 @@ BOOT:
       REGISTER_CONSTANT(VIR_MIGRATE_AUTO_CONVERGE, MIGRATE_AUTO_CONVERGE);
       REGISTER_CONSTANT(VIR_MIGRATE_RDMA_PIN_ALL, MIGRATE_RDMA_PIN_ALL);
       REGISTER_CONSTANT(VIR_MIGRATE_POSTCOPY, MIGRATE_POSTCOPY);
+      REGISTER_CONSTANT(VIR_MIGRATE_TLS, MIGRATE_TLS);
 
       REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_BANDWIDTH, MIGRATE_PARAM_BANDWIDTH);
       REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_DEST_NAME, MIGRATE_PARAM_DEST_NAME);
diff --git a/lib/Sys/Virt/Domain.pm b/lib/Sys/Virt/Domain.pm
index a192ad5..d69bb8d 100644
--- a/lib/Sys/Virt/Domain.pm
+++ b/lib/Sys/Virt/Domain.pm
@@ -2393,6 +2393,13 @@ Pin memory for RDMA transfer
 
 Enable support for post-copy migration
 
+=item Sys::Virt::Domain::MIGRATE_TLS
+
+Setting this flag will cause the migration to attempt to use the
+TLS environment configured by the hypervisor in order to perform
+the migration. If incorrectly configured on either source or
+destination, the migration will fail.
+
 =back
 
 =head2 UNDEFINE CONSTANTS
-- 
2.10.2




More information about the libvir-list mailing list