From nobody Mon Feb 9 10:57:21 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=1657635961; cv=none; d=zohomail.com; s=zohoarc; b=T7Jl5Ig7qPN8EMFqLzS06y9ybcALIlUWmlCGKrIOOVg14SxxWhql0CHkYNKmHpTFlwJ9Whwqhh9n8ATGx0Q4ZELoHpWC4saMO/U1cO5V/O+Q8fTXb7JyXAg2Bo42WCORU71r+q27Dspls+IZe7Wx3O+o96BDaaJV0Ypw53vyYK0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1657635961; 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=fFLFzMJ23JV5eGHwJBFAXryqtvH8xtcHDX3OJCjPP/4=; b=gj+34RIst2fKsq7DuvZV3cfUMIX1BhTm3d24PKqgL+gPakii0C+Pb9MapPL4/o8L+1T2PJ/ukyKiRUDQAhAObDFjF6k6raBadJUp7ge2+WmXcN0oqCwRgBFtY/V/laJwpj0jQKbF3xR+m0Fb2BshepHKAB3FaXDKml/7iIghYlg= 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 1657635961910557.9655037811699; Tue, 12 Jul 2022 07:26:01 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-166-3fZD0kphOBS_YlVRyIo_yg-1; Tue, 12 Jul 2022 10:25:56 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3DFD329DD98D; Tue, 12 Jul 2022 14:25:54 +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 29AC340E80E1; Tue, 12 Jul 2022 14:25:54 +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 CCE301947060; Tue, 12 Jul 2022 14:25:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id F1C6D1947058 for ; Tue, 12 Jul 2022 14:25:51 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id D584B40315D; Tue, 12 Jul 2022 14:25:51 +0000 (UTC) Received: from maggie.redhat.com (unknown [10.43.2.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7FE4F492C3B for ; Tue, 12 Jul 2022 14:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657635960; 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=fFLFzMJ23JV5eGHwJBFAXryqtvH8xtcHDX3OJCjPP/4=; b=i/BuSSmCxXQNg71ei5s9V+kfSWakKQVO4jT3OVsXIzUSrNiLF96ftMccIUGg9nYux8HLQJ z/Iu5Dp0vf678dP56Nh2q7oO1IsYafZIiliRPXTTxi0lx4L9wIr/r29Y2j9u39Hwgh5QR/ u+pF+XqFXeevBudwClRVyFsDqWgFUyQ= X-MC-Unique: 3fZD0kphOBS_YlVRyIo_yg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH 2/4] virtpm: Introduce TPM-1.2 and TPM-2.0 capabilieis Date: Tue, 12 Jul 2022 16:25:47 +0200 Message-Id: <1f6c74c1996026fb6e7d5442b624d834102d44c4.1657635928.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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.84 on 10.11.54.2 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: 1657635962595100002 Content-Type: text/plain; charset="utf-8"; x-default="true" These new capabilities will be used only to track whether swtpm_setup is capable of TPM-1.2 and/or TPM-2.0. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- src/util/virtpm.c | 2 ++ src/util/virtpm.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/util/virtpm.c b/src/util/virtpm.c index b898f3a6db..3c961c11cb 100644 --- a/src/util/virtpm.c +++ b/src/util/virtpm.c @@ -47,6 +47,8 @@ VIR_ENUM_IMPL(virTPMSwtpmSetupFeature, "cmdarg-create-config-files", "tpm12-not-need-root", "cmdarg-reconfigure-pcr-banks", + "tpm-1.2", + "tpm-2.0", ); =20 /** diff --git a/src/util/virtpm.h b/src/util/virtpm.h index 0a82a03b69..bbf379a54a 100644 --- a/src/util/virtpm.h +++ b/src/util/virtpm.h @@ -42,6 +42,8 @@ typedef enum { VIR_TPM_SWTPM_SETUP_FEATURE_CMDARG_CREATE_CONFIG_FILES, VIR_TPM_SWTPM_SETUP_FEATURE_TPM12_NOT_NEED_ROOT, VIR_TPM_SWTPM_SETUP_FEATURE_CMDARG_RECONFIGURE_PCR_BANKS, + VIR_TPM_SWTPM_SETUP_FEATURE_TPM_1_2, + VIR_TPM_SWTPM_SETUP_FEATURE_TPM_2_0, =20 VIR_TPM_SWTPM_SETUP_FEATURE_LAST } virTPMSwtpmSetupFeature; --=20 2.35.1