From nobody Tue Feb 10 09:24:57 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=1661420782; cv=none; d=zohomail.com; s=zohoarc; b=X0O8E6jzqPdoGsz/4+fL72/+RU72ZWtkOb8nGLhcPzF1Xh7w9wOn6YDfoYF9G9c5hPaIPrFZYBCgeZL7Ry6IxrgJUty7rG7JABZ1GJo8w5HonJm2ZA4bIyv3B6NT+/7cxZoZQU78MZx/EXd20EpB+Q3QAO8IwFougqGfVlOkDNM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1661420782; 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=E+9vKX1IB5Wb0Tfv3LzkxT+zBzvLmUCDXLjUYrjRpSU=; b=ewwSqDdDGLX7hLo+x8Z2lVuCcK0ntTpJchsV9SRSyQyjBqDX5NRQU5GVsPjWv2/zzaVEyqnR71jLRY3xRopjV2rEItR5OmXZ5OUppZC+Y8pooUESJRvXqZk0SUa9HqgfG+YRNk+FpfKQNeViA8x7H682KRV2opjvqTuPsauz2Ec= 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 1661420782491738.9892966076645; Thu, 25 Aug 2022 02:46:22 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-122-ySJfUCHfOTCqZvzLGJkc8g-1; Thu, 25 Aug 2022 05:46:17 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9652A181881F; Thu, 25 Aug 2022 09:46:15 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7FEEDC15BC5; Thu, 25 Aug 2022 09:46:15 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 445451947048; Thu, 25 Aug 2022 09:46:15 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 978001946A43 for ; Thu, 25 Aug 2022 09:46:14 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 89CEBC15BC5; Thu, 25 Aug 2022 09:46:14 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id D16BFC15BC3 for ; Thu, 25 Aug 2022 09:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661420780; 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=E+9vKX1IB5Wb0Tfv3LzkxT+zBzvLmUCDXLjUYrjRpSU=; b=BINB0aAXqqNgXaLfK6zHNgNWSHYTe8Bqv8sVRZGcslxU371ou7YtcvfWXqUfcJ6+H1Vmo3 UiAmDgKmKXs0BB/St7ppEMLQkK6qSEnGR1/y4q61UyjHp6xF11nOd43BdFNsrPECPluhB8 MGKI3wxYs/FcnAjjS1LYKGSbTEI1IRg= X-MC-Unique: ySJfUCHfOTCqZvzLGJkc8g-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 2/7] nodedevschematest: Add example file for a HBA with 'vport_ops' capability Date: Thu, 25 Aug 2022 11:46:05 +0200 Message-Id: <4f4de8c3573dbbaf1db35bbc8da116eac9e6de4e.1661420712.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 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: 1661420784681100005 Content-Type: text/plain; charset="utf-8" Illustrate the problem in the schema fixed by previous commit. Signed-off-by: Peter Krempa --- tests/nodedevschemadata/hba_vport_ops.xml | 18 ++++++++++++++++++ tests/nodedevxml2xmlout/hba_vport_ops.xml | 18 ++++++++++++++++++ tests/nodedevxml2xmltest.c | 1 + 3 files changed, 37 insertions(+) create mode 100644 tests/nodedevschemadata/hba_vport_ops.xml create mode 100644 tests/nodedevxml2xmlout/hba_vport_ops.xml diff --git a/tests/nodedevschemadata/hba_vport_ops.xml b/tests/nodedevschem= adata/hba_vport_ops.xml new file mode 100644 index 0000000000..4abc2e5161 --- /dev/null +++ b/tests/nodedevschemadata/hba_vport_ops.xml @@ -0,0 +1,18 @@ + + scsi_host12 + /sys/devices/pci0000:00/0000:00:03.2/0000:06:00.1/host12 + pci_0000_06_00_1 + + 12 + 12 + + 2000f4e9d4eb02c9 + 2001f4e9d4eb02c9 + 2001547feebe79c1 + + + 254 + 0 + + + diff --git a/tests/nodedevxml2xmlout/hba_vport_ops.xml b/tests/nodedevxml2x= mlout/hba_vport_ops.xml new file mode 100644 index 0000000000..6a680d467e --- /dev/null +++ b/tests/nodedevxml2xmlout/hba_vport_ops.xml @@ -0,0 +1,18 @@ + + scsi_host12 + /sys/devices/pci0000:00/0000:00:03.2/0000:06:00.1/host12 + pci_0000_06_00_1 + + 12 + 12 + + 2000f4e9d4eb02c9 + 2001f4e9d4eb02c9 + 2001547feebe79c1 + + + 0 + 0 + + + diff --git a/tests/nodedevxml2xmltest.c b/tests/nodedevxml2xmltest.c index f82027fb87..68a4041d8c 100644 --- a/tests/nodedevxml2xmltest.c +++ b/tests/nodedevxml2xmltest.c @@ -134,6 +134,7 @@ mymain(void) DO_TEST("mdev_d069d019_36ea_4111_8f0a_8c9a70e21366"); DO_TEST("mdev_d2441d39_495e_4243_ad9f_beb3f14c23d9"); DO_TEST("mdev_fedc4916_1ca8_49ac_b176_871d16c13076"); + DO_TEST("hba_vport_ops"); return ret =3D=3D 0 ? EXIT_SUCCESS : EXIT_FAILURE; } --=20 2.37.1