From nobody Mon Feb 9 04:45:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 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=1643397597; cv=none; d=zohomail.com; s=zohoarc; b=PJZL7PFu4LuBD1g60IkLXU9oqSX8wN4QFW0BT2S60BDaR8zkRz3Z5Zgltjp0zxKVNgX03bw2mbqzcehUx8Mm1VeqhTjmksXBbX7+ylu4qSBIZiSQYnvhe1uHnW7wcFcxD9k1GIJDcTIY3CQO1zCWLE4liKZTitCjXo4Pdsb5Mxo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643397597; h=Content-Type:Content-Transfer-Encoding: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=Bw+JRLi3u8GmCKGBYZo2UwtKk5wmRm0NTwFpFeL2jHU=; b=FtGmimfK/vmz1GksnfhkQczKOU4hCNhPiTKMbiJCHdj62pbF9yqjbe4eLampVz728ZB6t5tEmE/C5Uawy6IqrDOd7maNqRJUEmDvcDFzpRQcxKEawqV2lm1KkOJFEQPkqysxsL2SLsMmpPdB6iJ/95Jbwsw62bvaZx0Ii5cqK2Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 164339759771059.4556585214774; Fri, 28 Jan 2022 11:19:57 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-144-X666Mh4ENHeO3eXktj1zRg-1; Fri, 28 Jan 2022 14:19:53 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1065083DD23; Fri, 28 Jan 2022 19:19:48 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ABF365C232; Fri, 28 Jan 2022 19:19:47 +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 5B7B44BB7C; Fri, 28 Jan 2022 19:19:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20SJJj2E009003 for ; Fri, 28 Jan 2022 14:19:45 -0500 Received: by smtp.corp.redhat.com (Postfix) id D92321002388; Fri, 28 Jan 2022 19:19:45 +0000 (UTC) Received: from hjs.redhat.com (unknown [10.43.2.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 611BF10023AE for ; Fri, 28 Jan 2022 19:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643397597; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Bw+JRLi3u8GmCKGBYZo2UwtKk5wmRm0NTwFpFeL2jHU=; b=RN28GE1Rnv3Ip0AiOSmPx8XoCNYp3boDc+YL39Q8e5/kjajZh7V4lkQkdXW4ZKVmtfnmNK L2U8cuZIJU37CpVBhLcGpt3ubUEWtGf8som6EOAX/AIWVAogDuQo7CwLDiJIBnkH7H24Ti SU6Alcz/38wrqFh42X0g0LbQmpt048I= X-MC-Unique: X666Mh4ENHeO3eXktj1zRg-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 1/4] libxl: assume LIBXL_HAVE_DEVICE_BACKEND_DOMNAME Date: Fri, 28 Jan 2022 20:19:10 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com 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.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1643398500772100001 Introduced in 4.3.0 by xen commit: commit ef496b81f0336f09968a318e7f81151dd4f5a0cc libxl: postpone backend name resolution Signed-off-by: J=C3=A1n Tomko --- src/libxl/libxl_conf.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 5d87b999f2..f062f8e958 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -1191,16 +1191,8 @@ libxlMakeDisk(virDomainDiskDef *l_disk, libxl_device= _disk *x_disk) return -1; } =20 - if (l_disk->domain_name) { -#ifdef LIBXL_HAVE_DEVICE_BACKEND_DOMNAME + if (l_disk->domain_name) x_disk->backend_domname =3D g_strdup(l_disk->domain_name); -#else - virReportError(VIR_ERR_XML_DETAIL, "%s", - _("this version of libxenlight does not " - "support backend domain name")); - return -1; -#endif - } =20 return 0; } @@ -1408,16 +1400,8 @@ libxlMakeNic(virDomainDef *def, goto cleanup; } =20 - if (l_nic->domain_name) { -#ifdef LIBXL_HAVE_DEVICE_BACKEND_DOMNAME + if (l_nic->domain_name) x_nic->backend_domname =3D g_strdup(l_nic->domain_name); -#else - virReportError(VIR_ERR_XML_DETAIL, "%s", - _("this version of libxenlight does not " - "support backend domain name")); - goto cleanup; -#endif - } =20 /* * Set bandwidth. --=20 2.34.1