Skip to contentSkip to conversation

docs: Add --tpm2 option to swtpm command line

PATCH In review Stefan Berger 2 participants 2 messages Sep 26, 2022 – Sep 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Add --tpm2 option to swtpm command line

Add the --tpm2 option to the swtpm command line to run a TPM 2.

---
 docs/specs/tpm.rst | 1 +
 1 file changed, 1 insertion(+)
docs/specs/tpm.rst +1 -0
index 3be190343a..243e24b692 100644
@@ -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
Signature · 1 line
2.37.2
#1 lore raw

Hi

Quoted 13 lines · Stefan Berger

Add the --tpm2 option to the swtpm command line to run a TPM 2.

---
 docs/specs/tpm.rst | 1 +
 1 file changed, 1 insertion(+)
docs/specs/tpm.rst +0 -0
index 3be190343a..243e24b692 100644

docs/specs/tpm.rst a socket interface. They do not need to be run as root. · line 308

Quoted 5 lines
docs/specs/tpm.rst +1 -0
@@ -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.

Quoted 5 lines
docs/specs/tpm.rst +0 -1
 Command line to start QEMU with the TPM emulator device communicating
--

2.37.2