mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
docs: clean-up the xenpvh documentation
I noticed the code blocks where not rendering properly so thought I'd better fix things up. So: - Use better title for the machine type - Explain why Xen is a little different - Add a proper anchor to the tpm-device link - add newline so code block properly renders - add some indentation to make continuation clearer Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-ID: <20231207130623.360473-1-alex.bennee@linaro.org>
This commit is contained in:
parent
755ae3811f
commit
06ecb6ac19
2 changed files with 24 additions and 17 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
.. _tpm-device:
|
||||||
|
|
||||||
===============
|
===============
|
||||||
QEMU TPM Device
|
QEMU TPM Device
|
||||||
===============
|
===============
|
||||||
|
|
|
@ -1,16 +1,20 @@
|
||||||
XENPVH (``xenpvh``)
|
Xen Device Emulation Backend (``xenpvh``)
|
||||||
=========================================
|
=========================================
|
||||||
This machine creates a IOREQ server to register/connect with Xen Hypervisor.
|
|
||||||
|
|
||||||
When TPM is enabled, this machine also creates a tpm-tis-device at a user input
|
This machine is a little unusual compared to others as QEMU just acts
|
||||||
tpm base address, adds a TPM emulator and connects to a swtpm application
|
as an IOREQ server to register/connect with Xen Hypervisor. Control of
|
||||||
running on host machine via chardev socket. This enables xenpvh to support TPM
|
the VMs themselves is left to the Xen tooling.
|
||||||
functionalities for a guest domain.
|
|
||||||
|
|
||||||
More information about TPM use and installing swtpm linux application can be
|
When TPM is enabled, this machine also creates a tpm-tis-device at a
|
||||||
found at: docs/specs/tpm.rst.
|
user input tpm base address, adds a TPM emulator and connects to a
|
||||||
|
swtpm application running on host machine via chardev socket. This
|
||||||
|
enables xenpvh to support TPM functionalities for a guest domain.
|
||||||
|
|
||||||
|
More information about TPM use and installing swtpm linux application
|
||||||
|
can be found in the :ref:`tpm-device` section.
|
||||||
|
|
||||||
Example for starting swtpm on host machine:
|
Example for starting swtpm on host machine:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
mkdir /tmp/vtpm2
|
mkdir /tmp/vtpm2
|
||||||
|
@ -18,6 +22,7 @@ Example for starting swtpm on host machine:
|
||||||
--ctrl type=unixio,path=/tmp/vtpm2/swtpm-sock &
|
--ctrl type=unixio,path=/tmp/vtpm2/swtpm-sock &
|
||||||
|
|
||||||
Sample QEMU xenpvh commands for running and connecting with Xen:
|
Sample QEMU xenpvh commands for running and connecting with Xen:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
qemu-system-aarch64 -xen-domid 1 \
|
qemu-system-aarch64 -xen-domid 1 \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue