Skip to content

Qemu-Xen-vTPM: enable Xen stubdom vTPM for HVM virtual machine

Quan Xu qemu-devel xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Qemu-Xen-vTPM: Support for Xen stubdom vTPM command line optionsconfigure hmp.c qapi-schema.json +2 more+53 -50 replies
2/4Qemu-Xen-vTPM: Register Xen stubdom vTPM frontend driverhw/xen/Makefile.objs hw/xen/xen_backend.c hw/xen/xen_stubdom_vtpm.c +3 more+544 -20 replies
3/4Qemu-Xen-vTPM: Qemu vTPM xenstubdoms driver.hw/tpm/Makefile.objs hw/tpm/tpm_xenstubdoms.c+239 -01 reply
4/4Qemu-Xen-vTPM: QEMU machine class is initialized before tpm_init()vl.c+10 -63 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] Qemu-Xen-vTPM: enable Xen stubdom vTPM for HVM virtual machine

This patch series are only the Qemu part to enable Xen stubdom vTPM for HVM virtual machine. it will work w/ Xen patch series and seaBios patch series.

..
Build it with --enable-tpm and --enable-xen options and link with Xen, or change QEMU_STUBDOM_VTPM compile option from 'n' to 'y' in <Xen>/Config.mk, when the Qemu/ SeaBios patch series are merged.

..
Run Xen virtual mahcine with below QEMU command line options:
"-tpmdev xenstubdoms,id=xenvtpm0 -device tpm-tis,tpmdev=xenvtpm0"

or Xen xl tool adds this options when virtual machine cfg includes:

**
vtpm=["backend=vtpmN"]
**

..
qemu-system-* --tpmdev help
Supported TPM types (choose only one):
passthrough Passthrough TPM backend driver
xenstubdoms Xenstubdoms TPM backend driver

 configure                    |  13 ++++
 hmp.c                        |   7 ++
 hw/tpm/Makefile.objs         |   1 +
 hw/tpm/tpm_xenstubdoms.c     | 238 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/xen/Makefile.objs         |   1 +
 hw/xen/xen_backend.c         | 181 ++++++++++++++++++++++++++++++++++++++++++++++-
 hw/xen/xen_stubdom_vtpm.c    | 323 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/hw/xen/xen_backend.h |  11 +++
 include/hw/xen/xen_common.h  |   7 ++
 qapi-schema.json             |  17 ++++-
 qemu-options.hx              |  13 +++-
 tpm.c                        |   7 +-
 vl.c                         |  16 +++--
 xen-hvm.c                    |  13 ++++
 14 files changed, 835 insertions(+), 13 deletions(-)