]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virtpm: Introduce TPM-1.2 and TPM-2.0 capabilieis
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Jul 2022 13:46:50 +0000 (15:46 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Jul 2022 09:55:06 +0000 (11:55 +0200)
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 <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virtpm.c
src/util/virtpm.h

index b898f3a6dbb551374a0cad11d83305906d03eea2..3c961c11cbd0d0097fec33145a99ecf6c2bbc66c 100644 (file)
@@ -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",
 );
 
 /**
index 0a82a03b690c4f31c759de12994117dc34e66747..bbf379a54ae8c7eea607513fb5817cb1d5ffda28 100644 (file)
@@ -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,
 
     VIR_TPM_SWTPM_SETUP_FEATURE_LAST
 } virTPMSwtpmSetupFeature;