util: check swtpm nvram-backend-{dir,file} capabilities

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Marc-André Lureau 2024-10-22 18:15:16 +04:00 committed by Martin Kletzander
parent 78a9e7bf4a
commit cc0aab9395
2 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,8 @@ VIR_ENUM_IMPL(virTPMSwtpmFeature,
VIR_TPM_SWTPM_FEATURE_LAST, VIR_TPM_SWTPM_FEATURE_LAST,
"cmdarg-pwd-fd", "cmdarg-pwd-fd",
"cmdarg-migration", "cmdarg-migration",
"nvram-backend-dir",
"nvram-backend-file",
); );
VIR_ENUM_IMPL(virTPMSwtpmSetupFeature, VIR_ENUM_IMPL(virTPMSwtpmSetupFeature,

View File

@ -31,6 +31,8 @@ bool virTPMHasSwtpm(void);
typedef enum { typedef enum {
VIR_TPM_SWTPM_FEATURE_CMDARG_PWD_FD, VIR_TPM_SWTPM_FEATURE_CMDARG_PWD_FD,
VIR_TPM_SWTPM_FEATURE_CMDARG_MIGRATION, VIR_TPM_SWTPM_FEATURE_CMDARG_MIGRATION,
VIR_TPM_SWTPM_FEATURE_NVRAM_BACKEND_DIR,
VIR_TPM_SWTPM_FEATURE_NVRAM_BACKEND_FILE,
VIR_TPM_SWTPM_FEATURE_LAST VIR_TPM_SWTPM_FEATURE_LAST
} virTPMSwtpmFeature; } virTPMSwtpmFeature;