From nobody Wed Dec 4 08:47:43 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=reject dis=none) header.from=linux.ibm.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1731519693283186.12490888639263; Wed, 13 Nov 2024 09:41:33 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 3DEDF17ED; Wed, 13 Nov 2024 12:41:32 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id CD34619A3; Wed, 13 Nov 2024 12:40:10 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 218F7172B; Wed, 13 Nov 2024 12:40:04 -0500 (EST) Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id B48191725 for ; Wed, 13 Nov 2024 12:40:03 -0500 (EST) Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4ADFe2E4022266; Wed, 13 Nov 2024 17:40:03 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 42vxxxgj5c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Nov 2024 17:40:03 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 4ADDtav4017511; Wed, 13 Nov 2024 17:40:02 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 42tk2mxnnm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Nov 2024 17:40:02 +0000 Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4ADHe1JF46006666 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Nov 2024 17:40:02 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D2F1458061; Wed, 13 Nov 2024 17:40:01 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8742A58043; Wed, 13 Nov 2024 17:40:01 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Wed, 13 Nov 2024 17:40:01 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=bXJoCc Me1qTnxNhDi4mDjEKC/B0Pb/qLWMG7mSQO7Dg=; b=evrDx4B8ru5nSiHPw/Cery niVqTOp3dhtNlBK5LopooRIzM7A5cVXBrAKdJoQvPtUwq55qa6V+cdcLPuZYetwD Y4m+3+aMYQVAJSoXaiZnQwWucmcT/TAsykP78R3UGPUh/l21zg4IDpRa57OFIy8J vp7fmFg7lrge4vAOmsnfbSkvkZlAnNzxQx3uDV4SfA9Bc55pPZL3hofFbBdxUVlr iuDvWbvPTPpHeTb2glglrb+rs3A1wuFcmLrSKm2em04oYuyz29RZZKa97ypITk5s HFPrSgdVPO6w3corZQdY0QhBtz6bM/T0zjqELEnFDOLILHrIEXk3OCV0Le4aDl2Q == From: Stefan Berger To: devel@lists.libvirt.org Subject: [PATCH v4 03/11] util: Add parsing support for swtpm_setup's cmdarg-profile capability Date: Wed, 13 Nov 2024 12:39:43 -0500 Message-ID: <20241113173951.813781-4-stefanb@linux.ibm.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241113173951.813781-1-stefanb@linux.ibm.com> References: <20241113173951.813781-1-stefanb@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: d_zQMnXLJ-rXT83Rhk5W_8NPeXOInY6I X-Proofpoint-GUID: d_zQMnXLJ-rXT83Rhk5W_8NPeXOInY6I X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-15_01,2024-10-11_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411130146 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: CRV2GOXMZJN5HQUFSR6FV23B7OUGLVW3 X-Message-ID-Hash: CRV2GOXMZJN5HQUFSR6FV23B7OUGLVW3 X-MailFrom: stefanb@linux.ibm.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0 CC: marcandre.lureau@redhat.com, Stefan Berger X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1731519694706116600 Content-Type: text/plain; charset="utf-8" Add support for parsing swtpm_setup 'cmdarg-profile' capability (since v0.10). Reviewed-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Stefan Berger --- src/util/virtpm.c | 1 + src/util/virtpm.h | 1 + tests/testutilsqemu.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/util/virtpm.c b/src/util/virtpm.c index 8dcd3f90d9..1c736b0229 100644 --- a/src/util/virtpm.c +++ b/src/util/virtpm.c @@ -53,6 +53,7 @@ VIR_ENUM_IMPL(virTPMSwtpmSetupFeature, "tpm-1.2", "tpm-2.0", "tpmstate-opt-lock", + "cmdarg-profile", ); =20 /** diff --git a/src/util/virtpm.h b/src/util/virtpm.h index 279cb7e976..9ca09c2d80 100644 --- a/src/util/virtpm.h +++ b/src/util/virtpm.h @@ -45,6 +45,7 @@ typedef enum { VIR_TPM_SWTPM_SETUP_FEATURE_TPM_1_2, VIR_TPM_SWTPM_SETUP_FEATURE_TPM_2_0, VIR_TPM_SWTPM_SETUP_FEATURE_TPMSTATE_OPT_LOCK, + VIR_TPM_SWTPM_SETUP_FEATURE_CMDARG_PROFILE, =20 VIR_TPM_SWTPM_SETUP_FEATURE_LAST } virTPMSwtpmSetupFeature; diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c index f40bfa873c..5caccbc6b4 100644 --- a/tests/testutilsqemu.c +++ b/tests/testutilsqemu.c @@ -72,6 +72,7 @@ virTPMSwtpmSetupCapsGet(virTPMSwtpmSetupFeature cap) case VIR_TPM_SWTPM_SETUP_FEATURE_TPM12_NOT_NEED_ROOT: case VIR_TPM_SWTPM_SETUP_FEATURE_CMDARG_RECONFIGURE_PCR_BANKS: case VIR_TPM_SWTPM_SETUP_FEATURE_TPMSTATE_OPT_LOCK: + case VIR_TPM_SWTPM_SETUP_FEATURE_CMDARG_PROFILE: case VIR_TPM_SWTPM_SETUP_FEATURE_LAST: break; } --=20 2.47.0