|
|
032100 |
From 6d21624edd73edb9b59e5dac0d98d0812e9bf0ad Mon Sep 17 00:00:00 2001
|
|
|
032100 |
Message-Id: <6d21624edd73edb9b59e5dac0d98d0812e9bf0ad@dist-git>
|
|
|
032100 |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
032100 |
Date: Tue, 12 Jul 2022 15:46:50 +0200
|
|
|
032100 |
Subject: [PATCH] virtpm: Introduce TPM-1.2 and TPM-2.0 capabilieis
|
|
|
032100 |
|
|
|
032100 |
These new capabilities will be used only to track whether
|
|
|
032100 |
swtpm_setup is capable of TPM-1.2 and/or TPM-2.0.
|
|
|
032100 |
|
|
|
032100 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
032100 |
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
032100 |
(cherry picked from commit 7b37763278c44887789e80a6058ee27953c0e5e6)
|
|
|
032100 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2103119
|
|
|
032100 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
032100 |
---
|
|
|
032100 |
src/util/virtpm.c | 2 ++
|
|
|
032100 |
src/util/virtpm.h | 2 ++
|
|
|
032100 |
2 files changed, 4 insertions(+)
|
|
|
032100 |
|
|
|
032100 |
diff --git a/src/util/virtpm.c b/src/util/virtpm.c
|
|
|
032100 |
index b898f3a6db..3c961c11cb 100644
|
|
|
032100 |
--- a/src/util/virtpm.c
|
|
|
032100 |
+++ b/src/util/virtpm.c
|
|
|
032100 |
@@ -47,6 +47,8 @@ VIR_ENUM_IMPL(virTPMSwtpmSetupFeature,
|
|
|
032100 |
"cmdarg-create-config-files",
|
|
|
032100 |
"tpm12-not-need-root",
|
|
|
032100 |
"cmdarg-reconfigure-pcr-banks",
|
|
|
032100 |
+ "tpm-1.2",
|
|
|
032100 |
+ "tpm-2.0",
|
|
|
032100 |
);
|
|
|
032100 |
|
|
|
032100 |
/**
|
|
|
032100 |
diff --git a/src/util/virtpm.h b/src/util/virtpm.h
|
|
|
032100 |
index 0a82a03b69..bbf379a54a 100644
|
|
|
032100 |
--- a/src/util/virtpm.h
|
|
|
032100 |
+++ b/src/util/virtpm.h
|
|
|
032100 |
@@ -42,6 +42,8 @@ typedef enum {
|
|
|
032100 |
VIR_TPM_SWTPM_SETUP_FEATURE_CMDARG_CREATE_CONFIG_FILES,
|
|
|
032100 |
VIR_TPM_SWTPM_SETUP_FEATURE_TPM12_NOT_NEED_ROOT,
|
|
|
032100 |
VIR_TPM_SWTPM_SETUP_FEATURE_CMDARG_RECONFIGURE_PCR_BANKS,
|
|
|
032100 |
+ VIR_TPM_SWTPM_SETUP_FEATURE_TPM_1_2,
|
|
|
032100 |
+ VIR_TPM_SWTPM_SETUP_FEATURE_TPM_2_0,
|
|
|
032100 |
|
|
|
032100 |
VIR_TPM_SWTPM_SETUP_FEATURE_LAST
|
|
|
032100 |
} virTPMSwtpmSetupFeature;
|
|
|
032100 |
--
|
|
|
032100 |
2.35.1
|
|
|
032100 |
|