Re: [PATCH v2 1/4] util: check swtpm nvram-backend-dir capability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Wed, Oct 2, 2024 at 11:01 AM Martin Kletzander <mkletzan@xxxxxxxxxx> wrote:
>
> On Tue, Sep 10, 2024 at 11:05:57AM +0400, marcandre.lureau@xxxxxxxxxx wrote:
> >From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
> >
> >Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
> >---
> > src/util/virtpm.c | 1 +
> > src/util/virtpm.h | 1 +
> > 2 files changed, 2 insertions(+)
> >
> >diff --git a/src/util/virtpm.c b/src/util/virtpm.c
> >index 81fd6166cf..84ed2f0edd 100644
> >--- a/src/util/virtpm.c
> >+++ b/src/util/virtpm.c
> >@@ -40,6 +40,7 @@ VIR_ENUM_IMPL(virTPMSwtpmFeature,
> >               VIR_TPM_SWTPM_FEATURE_LAST,
> >               "cmdarg-pwd-fd",
> >               "cmdarg-migration",
> >+              "nvram-backend-dir",
>
> We should be using both nvram-backend-dir and nvram-backend-file.  Even
> if they were added in the same release and it does not look like it
> makes sense it is there for a reason and it won't hurt, it will be more
> future-proof.
>

ok, done

> > );
> >
> > VIR_ENUM_IMPL(virTPMSwtpmSetupFeature,
> >diff --git a/src/util/virtpm.h b/src/util/virtpm.h
> >index fb330effa8..088bb2f667 100644
> >--- a/src/util/virtpm.h
> >+++ b/src/util/virtpm.h
> >@@ -31,6 +31,7 @@ bool virTPMHasSwtpm(void);
> > typedef enum {
> >     VIR_TPM_SWTPM_FEATURE_CMDARG_PWD_FD,
> >     VIR_TPM_SWTPM_FEATURE_CMDARG_MIGRATION,
> >+    VIR_TPM_SWTPM_FEATURE_NVRAM_BACKEND_DIR,
> >
> >     VIR_TPM_SWTPM_FEATURE_LAST
> > } virTPMSwtpmFeature;
> >--
> >2.45.2.827.g557ae147e6
> >




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux