diff options
author | Alex Bennée | 2022-09-05 18:39:39 +0200 |
---|---|---|
committer | Alistair Francis | 2022-09-26 23:04:38 +0200 |
commit | 0c2d4671916333e5b66fd923279fb6fb62315bed (patch) | |
tree | c12bc6e9d0c13924d2d42324eeade8b1209ab29f /docs | |
parent | hw/ssi: ibex_spi: update reg addr (diff) | |
download | qemu-0c2d4671916333e5b66fd923279fb6fb62315bed.tar.gz qemu-0c2d4671916333e5b66fd923279fb6fb62315bed.tar.xz qemu-0c2d4671916333e5b66fd923279fb6fb62315bed.zip |
docs/system: clean up code escape for riscv virt platform
The example code is rendered slightly mangled due to missing code
block. Properly escape the code block and add shell prompt and qemu to
fit in with the other examples on the page.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20220905163939.1599368-1-alex.bennee@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/system/riscv/virt.rst | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/system/riscv/virt.rst b/docs/system/riscv/virt.rst index f8ecec95f3..4b16e41d7f 100644 --- a/docs/system/riscv/virt.rst +++ b/docs/system/riscv/virt.rst @@ -168,14 +168,19 @@ Enabling TPM A TPM device can be connected to the virt board by following the steps below. -First launch the TPM emulator +First launch the TPM emulator: - swtpm socket --tpm2 -t -d --tpmstate dir=/tmp/tpm \ +.. code-block:: bash + + $ swtpm socket --tpm2 -t -d --tpmstate dir=/tmp/tpm \ --ctrl type=unixio,path=swtpm-sock -Then launch QEMU with: +Then launch QEMU with some additional arguments to link a TPM device to the backend: + +.. code-block:: bash - ... + $ qemu-system-riscv64 \ + ... other args .... \ -chardev socket,id=chrtpm,path=swtpm-sock \ -tpmdev emulator,id=tpm0,chardev=chrtpm \ -device tpm-tis-device,tpmdev=tpm0 |