Add support for parsing swtpm_setup 'cmdarg-profile' capability
(since v0.10).
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
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;
}
--
2.47.0