From nobody Mon Apr 29 10:59:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1631793933; cv=none; d=zohomail.com; s=zohoarc; b=C7nPrRlm2hPJuewAE24DbKM7ELyjKh3777fbTTCoyiHupg8aa7IPqN+G1QUQncQBNKkzAfP5xViIzCimhjVBYKi6VK9NTUy56AEUZ5xQT27wKAbt/Oo6MdO0YaOPIJtzM59iPcB1sYWNATdg6yIQqL8b3h+peMr1rv32F2oi+tc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631793933; 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=CNZN48+L47Fe+MNv9W3ZOzhCDaLqwxV2Cuy6QSVRcJ4=; b=gD4ySElID2B/P4VGdu3Oxxr3nufdd+IEgmNO+WRp0tUzfqQKXR3Z10nlnvlvzbVI/C4jVoRfEyoKr9+ZcNwMknhM0f6zOutSP0qw/QGhoxLH3Z029J4YF5s1D+LUhZZK2SSpH/uriAzQDH+mJ2Uy+ZEeY/10gVyHpfR1GK2TXGY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1631793933747490.28477946972816; Thu, 16 Sep 2021 05:05:33 -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-535-n8UrvsZYP0iKBFuWZhWosQ-1; Thu, 16 Sep 2021 08:05:31 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D9BF28042CD; Thu, 16 Sep 2021 12:05:25 +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 ADD7519739; Thu, 16 Sep 2021 12:05:25 +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 1EBF81800FE4; Thu, 16 Sep 2021 12:05:25 +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 18GBucrn008681 for ; Thu, 16 Sep 2021 07:56:38 -0400 Received: by smtp.corp.redhat.com (Postfix) id 64EF85D9C6; Thu, 16 Sep 2021 11:56:38 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.93]) by smtp.corp.redhat.com (Postfix) with ESMTP id E31855E253 for ; Thu, 16 Sep 2021 11:56:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631793932; 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=CNZN48+L47Fe+MNv9W3ZOzhCDaLqwxV2Cuy6QSVRcJ4=; b=Z+MS89uGxubEGx0PxID64r4RwzP2uxVABL/xWZX9ulnu9YB3/0CfpKltwxVW6pu5c68jQz 297ZlbqQXe/6sG3IWaKGulKGqh6EIEX/nDMlXAsYf78DIcLzfZpY2SPGRA3IcRchO4jtxg XWZaIlR+T7pcwMJv1Ph/RIW0eaTSN4Y= X-MC-Unique: n8UrvsZYP0iKBFuWZhWosQ-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 1/3] schemas: Make for capscsi type optional Date: Thu, 16 Sep 2021 13:56:25 +0200 Message-Id: <1fe9baa0333a95f941c178ecbc632ac39d43e63f.1631793304.git.mprivozn@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.23 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) X-ZM-MESSAGEID: 1631793935496100001 Content-Type: text/plain; charset="utf-8" The element for part of nodedev XML is optional (see udevProcessSCSIDevice()) and as such might not be formatted into nodedev XML (see virNodeDeviceCapSCSIDefFormat()). Reflect this in our RNG. Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- docs/schemas/nodedev.rng | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng index 777227c38a..789b21b8da 100644 --- a/docs/schemas/nodedev.rng +++ b/docs/schemas/nodedev.rng @@ -496,9 +496,11 @@ =20 - - - + + + + + =20 --=20 2.32.0 From nobody Mon Apr 29 10:59:34 2024 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=1631793756; cv=none; d=zohomail.com; s=zohoarc; b=D8nNDOzJ+pwAgfazV8loDjaQdp8aVSNFVuruoUwEzLlWGdpNBoGcLUNqLu6hJ5n8EfNUgPQbntHkhq1uOB2GoEKYSzgCGP+sqQ/Ew8EtXaxf8Rn2EM6OtJ/j7A27zfdVSSytsQmb2qvIXQPsmdYeGL4ossJdubaAsIgNY+CEPNU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631793756; 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=8DZVSirzJlSkoI6WpMlKFG0CRfqtiFCKkc+MdX7gvfI=; b=X+6QKufipNksWehkmgCQ7XtVebJgt/Wq1mP4b8ZYA8uQhYWJ96sbfxoWjrrjowcBdpGy/SiIP0jsK3UhoKTYrvyFrjIsh5UXUBYqIA+XPYx4rK3NJmedHFct3M8TSwfO97nSTKnbiL1NfOW8Ax/GCd02fYAGWYMb8rNgkv6Q5nw= 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 1631793756564428.3798746009529; Thu, 16 Sep 2021 05:02:36 -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-394-t6-KLul7PAqzUHiOLmlNDQ-1; Thu, 16 Sep 2021 08:02:33 -0400 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 02118108468E; Thu, 16 Sep 2021 12:02:29 +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 95FE97771A; Thu, 16 Sep 2021 12:02:27 +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 A67315533E; Thu, 16 Sep 2021 12:02:26 +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 18GBudU1008686 for ; Thu, 16 Sep 2021 07:56:39 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3251129405; Thu, 16 Sep 2021 11:56:39 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.93]) by smtp.corp.redhat.com (Postfix) with ESMTP id B11D65D9C6 for ; Thu, 16 Sep 2021 11:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631793755; 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=8DZVSirzJlSkoI6WpMlKFG0CRfqtiFCKkc+MdX7gvfI=; b=DqG8121u7OLYWDf4WjDiX7n5wV6no3Tg6vbk7yIozub/y5wuHUMVgw1gOE9m11xSHcbv5J nYnDlaI66h/oVEXGlqCQ+1R3lCKxU2lPzbG1T1JOl1SNlr65mZ1U7eWPGS1dZu2ixqthGn XdMvKItgXNKbyKJ8kbMQ68GdorBg3Gs= X-MC-Unique: t6-KLul7PAqzUHiOLmlNDQ-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 2/3] schemas: Provide grammar for scsi_generic capabilities Date: Thu, 16 Sep 2021 13:56:26 +0200 Message-Id: <8a79f003081bce702c03bc462b023131f165e677.1631793304.git.mprivozn@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.79 on 10.5.11.13 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) X-ZM-MESSAGEID: 1631793765613100001 Content-Type: text/plain; charset="utf-8" A nodedev can have 'scsi_generic' capabilities but corresponding RNG is missing. Fortunately, it's very simple - there's only one mandatory child element . Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- docs/schemas/nodedev.rng | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng index 789b21b8da..4ad6708b70 100644 --- a/docs/schemas/nodedev.rng +++ b/docs/schemas/nodedev.rng @@ -78,6 +78,7 @@ + @@ -421,6 +422,16 @@ =20 + + + scsi_generic + + + + + + + scsi_host --=20 2.32.0 From nobody Mon Apr 29 10:59:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1631793546; cv=none; d=zohomail.com; s=zohoarc; b=aT3b4CuEiNjJ1wL7yjv2qkh8kSdGMst4fupthx775D7v8WSu/DvzpSRWOakkGWfqtLP5f8DBSHW4TsbSJGKpSJMZ3ZYzMKOzF+FAFF2ndzRqvMig6sGp/eyHNus+iyiHQKO0yXjrPoEj1ZwCY6VlkTvgGV1SdMhzwTxy1yUN+Uc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631793546; 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=KvbqhLvxnMHCParmWnrdIgMllua2qdQIxvcamwYdeRc=; b=jNQadWvvnmT1dFDpmUIlvoAmgxeFPFJmendxuA/pc4tjAA2C13FGZL3XSyB9uzn8SWbswAZIESsGZg5bX/N5nTwjfXQUBQH8NT65nxkMfpZpS92Ccg93gjEZpBes668yK2vinl1O087xuyF9o7HWj3vOLT73Knrzp1kond715Kc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1631793546612165.43238779639842; Thu, 16 Sep 2021 04:59:06 -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-453-9P77V7BCOk6PnxVMXZSsGw-1; Thu, 16 Sep 2021 07:59:04 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 266421054F90; Thu, 16 Sep 2021 11:58:58 +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 035B5196E2; Thu, 16 Sep 2021 11:58:58 +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 C50854E58F; Thu, 16 Sep 2021 11:58:57 +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 18GBueOJ008691 for ; Thu, 16 Sep 2021 07:56:40 -0400 Received: by smtp.corp.redhat.com (Postfix) id 000E629405; Thu, 16 Sep 2021 11:56:40 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.93]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7E5EE5D9C6 for ; Thu, 16 Sep 2021 11:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631793545; 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=KvbqhLvxnMHCParmWnrdIgMllua2qdQIxvcamwYdeRc=; b=Pu8qY5jmwsdJt75DlfEKfGYn0pqRXUEbRu+IZPXSy1MfkTzGIxjjpNlj+wjwWjt/X1hnPb r1MDelhoTZUqi0IPt5B48D1tw/RPQasITziuXT77BA63sLSxqPdOp0bbE3BBIxI2jnRBH2 1BBRGXtDIhwyMUlv30nyfawC+Ee4UKk= X-MC-Unique: 9P77V7BCOk6PnxVMXZSsGw-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 3/3] schemas: Allow to be zero Date: Thu, 16 Sep 2021 13:56:27 +0200 Message-Id: <273b552ede495183eda247ddb1209b92ffc74d4b.1631793304.git.mprivozn@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.23 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) X-ZM-MESSAGEID: 1631793547288100001 Content-Type: text/plain; charset="utf-8" The value of zero is valid (see virNodeDeviceGetSCSIHostCaps()) but our RNG does not think so. Switching the type to 'unsignedInt' does allow value of zero. Signed-off-by: Michal Privoznik Reviewed-by: J=C3=A1n Tomko --- docs/schemas/nodedev.rng | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/schemas/nodedev.rng b/docs/schemas/nodedev.rng index 4ad6708b70..e089e66858 100644 --- a/docs/schemas/nodedev.rng +++ b/docs/schemas/nodedev.rng @@ -443,7 +443,7 @@ =20 - + =20 --=20 2.32.0