From 1079532d74785a10580d215d2d2a1b4e150c4f2b Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Wed, 13 Nov 2024 12:39:43 -0500 Subject: [PATCH] util: Add parsing support for swtpm_setup's cmdarg-profile capability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add support for parsing swtpm_setup 'cmdarg-profile' capability (since v0.10). Reviewed-by: Marc-André Lureau Signed-off-by: Stefan Berger Reviewed-by: Michal Privoznik --- 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", ); /** 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, 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; }