diff mbox series

docs: Add --tpm2 option to swtpm command line

Message ID 20220926110746.2769518-1-stefanb@linux.ibm.com
State New
Headers show
Series docs: Add --tpm2 option to swtpm command line | expand

Commit Message

Stefan Berger Sept. 26, 2022, 11:07 a.m. UTC
Add the --tpm2 option to the swtpm command line to run a TPM 2.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
 docs/specs/tpm.rst | 1 +
 1 file changed, 1 insertion(+)

Comments

Marc-André Lureau Sept. 27, 2022, 9:10 a.m. UTC | #1
Hi

On Mon, Sep 26, 2022 at 3:39 PM Stefan Berger <stefanb@linux.ibm.com> wrote:
>
> Add the --tpm2 option to the swtpm command line to run a TPM 2.
>
> Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
> ---
>  docs/specs/tpm.rst | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/docs/specs/tpm.rst b/docs/specs/tpm.rst
> index 3be190343a..243e24b692 100644
> --- a/docs/specs/tpm.rst
> +++ b/docs/specs/tpm.rst
> @@ -304,6 +304,7 @@ a socket interface. They do not need to be run as root.
>    mkdir /tmp/mytpm1
>    swtpm socket --tpmstate dir=/tmp/mytpm1 \
>      --ctrl type=unixio,path=/tmp/mytpm1/swtpm-sock \
> +    --tpm2 \
>      --log level=20

Why only there? The next paragraphs shows usage of TIS device and
dmesg logs of 1.2 TPM.

>
>  Command line to start QEMU with the TPM emulator device communicating
> --
> 2.37.2
>
diff mbox series

Patch

diff --git a/docs/specs/tpm.rst b/docs/specs/tpm.rst
index 3be190343a..243e24b692 100644
--- a/docs/specs/tpm.rst
+++ b/docs/specs/tpm.rst
@@ -304,6 +304,7 @@  a socket interface. They do not need to be run as root.
   mkdir /tmp/mytpm1
   swtpm socket --tpmstate dir=/tmp/mytpm1 \
     --ctrl type=unixio,path=/tmp/mytpm1/swtpm-sock \
+    --tpm2 \
     --log level=20
 
 Command line to start QEMU with the TPM emulator device communicating