From nobody Sun Feb 8 21:20:42 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=1620128653; cv=none; d=zohomail.com; s=zohoarc; b=Pz84V0H6w9zsqOQzzOYT01moKL0Fqn3Y/VBHYe8joN2OxJCgNK7OJCE4/BP3dIiZ1KQyNhjkEbU1lY3p5E7f5VhDT8gnqEuX48T4/5snvE/yZ3Yk/aXUUTeMNHH7dwyqvvvJxTYOT+7+TdVLWW/Bs2siNXhErnLpZvz1cJnKof8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620128653; 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=4wdotbte3RY+ALcuDwJQy8q7Jnv2YNQnlu1nAgI33nQ=; b=kHs5txI/3057zqj1dkyUew6pI5q6P9Kx+sWsUYM6rON4lOtcZ23deYbn69aQVuKbfKA8JUYOF1uK/zAXUKUpHmUTk4WEuCFNZpqK1NQw/q/Ztw3OebTNSu8pQMkqIBgg60pbeCmgCtXH//SyEzuIj3EfAZPqmsnjrPtz6c5+Peg= 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) header.from= 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 1620128653294859.1050400603502; Tue, 4 May 2021 04:44:13 -0700 (PDT) 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-538-4sKdq-goMyqe_bFb4rS5Lg-1; Tue, 04 May 2021 07:41:07 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1108E1008065; Tue, 4 May 2021 11:41:03 +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 DF5891037E8B; Tue, 4 May 2021 11:41:02 +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 A91021800FF0; Tue, 4 May 2021 11:41:02 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 144BesnZ000758 for ; Tue, 4 May 2021 07:40:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 279B25D9D0; Tue, 4 May 2021 11:40:54 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.40.195.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id 30B645D9C0 for ; Tue, 4 May 2021 11:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1620128651; 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=4wdotbte3RY+ALcuDwJQy8q7Jnv2YNQnlu1nAgI33nQ=; b=BiM9iJ6nBnXI+9EIyLpaDdkyXDUFtV/xq4MFUZQYnaf8fjplpKWLKCCT8gstWcN/CYSzWW 7037onOBMYILD7pcTybwqHI9UJKoJ2R5ikJce/lVlH8sF6dcTUYJjEy6C7XFEv8JULvsoA GDE+i57pP6cToPa/n/q4YfAZ4J5ieCo= X-MC-Unique: 4sKdq-goMyqe_bFb4rS5Lg-1 From: Kristina Hanicova To: libvir-list@redhat.com Subject: [PATCH v2 07/19] conf: Propagate xmlXPathContextPtr into virDomainLeaseDefParseXML() Date: Tue, 4 May 2021 13:40:01 +0200 Message-Id: <6d312a32ecf18b3fbb0056ae6a6392d29ab7851b.1620127676.git.khanicov@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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.84 on 10.5.11.22 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-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Kristina Hanicova --- src/conf/domain_conf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c5d4469b72..1142b1214a 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -8084,7 +8084,8 @@ virSecurityDeviceLabelDefParseXML(virSecurityDeviceLa= belDef ***seclabels_rtn, /* Parse the XML definition for a lease */ static virDomainLeaseDef * -virDomainLeaseDefParseXML(xmlNodePtr node) +virDomainLeaseDefParseXML(xmlNodePtr node, + xmlXPathContextPtr ctxt G_GNUC_UNUSED) { virDomainLeaseDef *def; xmlNodePtr cur; @@ -15508,7 +15509,7 @@ virDomainDeviceDefParse(const char *xmlStr, return NULL; break; case VIR_DOMAIN_DEVICE_LEASE: - if (!(dev->data.lease =3D virDomainLeaseDefParseXML(node))) + if (!(dev->data.lease =3D virDomainLeaseDefParseXML(node, ctxt))) return NULL; break; case VIR_DOMAIN_DEVICE_FS: @@ -20276,7 +20277,7 @@ virDomainDefParseXML(xmlDocPtr xml, if (n) def->leases =3D g_new0(virDomainLeaseDef *, n); for (i =3D 0; i < n; i++) { - virDomainLeaseDef *lease =3D virDomainLeaseDefParseXML(nodes[i]); + virDomainLeaseDef *lease =3D virDomainLeaseDefParseXML(nodes[i], c= txt); if (!lease) goto error; =20 --=20 2.30.2