From nobody Sun Feb 8 10:50:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1575983869; cv=none; d=zohomail.com; s=zohoarc; b=WENbjpgc0P3BOjOOVy2wyIHam4TmipKqlzXkmDI1jhs/t2bcGvX2tq/WsBJugpGJT4nRSkAr4FscMbCMad/wKMvRnx9paWfnzETV696xrLDViYePfcv3OM5wd5i6lOkvH7lCWZeh+YyknPntE6bedBMmcks6dHpHeSg29Nl6ADU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575983869; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=k8XXuKXWcLFZt6j0TlsRKmSKbE4vJEvSmCKLR9sdBlA=; b=A7OrCgNX+3EpjOGcIQqkKpiB+v++2mCbh2uQTzIQnONJpHwmmhS3Vdp/EBVH3SUfgRiOBGXqiiOc1uGvgst0cA+TVsNoQfL31utcL8mL34+Br0mrIkuKIqLh3yiWt+Mh5JpzYY9PftOP16e9ygXYqmNFFlDOKwrp0BPr2uruvFU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1575983869145478.9673618735594; Tue, 10 Dec 2019 05:17:49 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-409-lf5QnvRpPqOf1Ua2uLTWhA-1; Tue, 10 Dec 2019 08:17:46 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F016FDB21; Tue, 10 Dec 2019 13:17:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C67DF6FDDF; Tue, 10 Dec 2019 13:17:40 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 648B61832DAA; Tue, 10 Dec 2019 13:17:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBADHcn9022923 for ; Tue, 10 Dec 2019 08:17:38 -0500 Received: by smtp.corp.redhat.com (Postfix) id 040FB5C28C; Tue, 10 Dec 2019 13:17:38 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-61.ams2.redhat.com [10.36.112.61]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C2A15C21B; Tue, 10 Dec 2019 13:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575983868; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=k8XXuKXWcLFZt6j0TlsRKmSKbE4vJEvSmCKLR9sdBlA=; b=hd4373KOwXO/g5q1z5gM7G63KiLaerG/vRQUH5xnPvJlw4B56GfxuAc7GEHPDq2PFqwFe9 Oa+0nSNsOO1XEOqj2Z69O8zqyxMZGz6lObFDZIoyCcF1QW9VdylSvywf+tIeigo4A8TAU3 rgTyOl0Ls+QwpQTxCH43KUVWsXP+smc= From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Tue, 10 Dec 2019 13:17:16 +0000 Message-Id: <20191210131719.938449-4-berrange@redhat.com> In-Reply-To: <20191210131719.938449-1-berrange@redhat.com> References: <20191210131719.938449-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com Cc: Michal Privoznik Subject: [libvirt] [perl PATCH 3/6] Add support for VIR_MIGRATE_PARAM_TLS_DESTINATION constant X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: lf5QnvRpPqOf1Ua2uLTWhA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Daniel P. Berrang=C3=A9 --- Changes | 1 + lib/Sys/Virt.xs | 13 +++++++++++-- lib/Sys/Virt/Domain.pm | 9 +++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index ba33d40..09d1dca 100644 --- a/Changes +++ b/Changes @@ -8,6 +8,7 @@ Revision history for perl module Sys::Virt autoconvert increment parameter handling - Add handling for VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS constant when invoking migrate + - Add VIR_MIGRATE_PARAM_TLS_DESTINATION constant =20 5.10.0 2019-12-03 =20 diff --git a/lib/Sys/Virt.xs b/lib/Sys/Virt.xs index b52ae7d..3245adf 100644 --- a/lib/Sys/Virt.xs +++ b/lib/Sys/Virt.xs @@ -5413,7 +5413,7 @@ _migrate(dom, destcon, newparams, flags=3D0) virTypedParameterPtr params; int nparams; CODE: - nparams =3D 17; + nparams =3D 18; Newx(params, nparams, virTypedParameter); =20 strncpy(params[0].field, VIR_MIGRATE_PARAM_URI, @@ -5484,6 +5484,10 @@ _migrate(dom, destcon, newparams, flags=3D0) VIR_TYPED_PARAM_FIELD_LENGTH); params[16].type =3D VIR_TYPED_PARAM_INT; =20 + strncpy(params[17].field, VIR_MIGRATE_PARAM_TLS_DESTINATION, + VIR_TYPED_PARAM_FIELD_LENGTH); + params[17].type =3D VIR_TYPED_PARAM_STRING; + nparams =3D vir_typed_param_from_hv(newparams, params, nparams); =20 vir_typed_param_add_string_list_from_hv(newparams, ¶ms, &nparams, @@ -5512,7 +5516,7 @@ _migrate_to_uri(dom, desturi, newparams, flags=3D0) virTypedParameterPtr params; int nparams; PPCODE: - nparams =3D 17; + nparams =3D 18; Newx(params, nparams, virTypedParameter); =20 strncpy(params[0].field, VIR_MIGRATE_PARAM_URI, @@ -5583,6 +5587,10 @@ _migrate_to_uri(dom, desturi, newparams, flags=3D0) VIR_TYPED_PARAM_FIELD_LENGTH); params[16].type =3D VIR_TYPED_PARAM_INT; =20 + strncpy(params[17].field, VIR_MIGRATE_PARAM_TLS_DESTINATION, + VIR_TYPED_PARAM_FIELD_LENGTH); + params[17].type =3D VIR_TYPED_PARAM_STRING; + nparams =3D vir_typed_param_from_hv(newparams, params, nparams); =20 vir_typed_param_add_string_list_from_hv(newparams, ¶ms, &nparams, @@ -9254,6 +9262,7 @@ BOOT: REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT, MIG= RATE_PARAM_AUTO_CONVERGE_INCREMENT); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_BANDWIDTH_POSTCOPY, MIGRATE_= PARAM_BANDWIDTH_POSTCOPY); REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS, MIGRAT= E_PARAM_PARALLEL_CONNECTIONS); + REGISTER_CONSTANT_STR(VIR_MIGRATE_PARAM_TLS_DESTINATION, MIGRATE_PAR= AM_TLS_DESTINATION); =20 REGISTER_CONSTANT(VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY, MIGRATE_MAX= _SPEED_POSTCOPY); =20 diff --git a/lib/Sys/Virt/Domain.pm b/lib/Sys/Virt/Domain.pm index 2caec51..ae909de 100644 --- a/lib/Sys/Virt/Domain.pm +++ b/lib/Sys/Virt/Domain.pm @@ -1141,6 +1141,15 @@ progress is not made =20 The number of connections used during parallel migration. =20 +=3Ditem C + +Override the destination host name used for TLS verification. +Normally the TLS certificate from the destination host must match +the host's name for TLS verification to succeed. When the +certificate does not match the destination hostname and the +expected cetificate's hostname is known, this parameter can be +used to pass this expected hostname when starting the migration. + =3Dback =20 =3Ditem $ddom =3D $dom->migrate(destcon, flags=3D0, dname=3Dundef, uri=3Du= ndef, bandwidth=3D0) --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list