Skip to content

libxl TPM emulator support

Jason Andryuk xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libacpi: Build TPM2 tables for the TIS interfacetools/libacpi/Makefile tools/libacpi/acpi2_0.h tools/libacpi/build.c +2 more+66 -133 replies
2/4hvmloader: Support the TIS interface for TPM 2.0docs/misc/xenstore-paths.pandoc tools/firmware/hvmloader/util.c+22 -21 reply
3/4tools/libxl: add emulated TPM support backed by swtpmdocs/man/xl.cfg.5.pod.in tools/golang/xenlight/gengotypes.py tools/golang/xenlight/helpers.gen.go +9 more+380 -21 reply
4/4libxl: Add emulated TPM support on ARMdocs/man/xl.cfg.5.pod.in tools/include/libxl.h tools/libs/light/libxl_arch.h +4 more+89 -70 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchNick RosbrookJan Beulich
1/4
2/4A-b
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] libxl TPM emulator support

This patch series adds support to libxl for QEMU to emulate a TPM with swtpm as a backend.

It reworks some ARM TPM support from Stefano to use the auto-started swtpm.

Since ARM uses the TIS interface, I expanded x86 to use either TIS or CRB for TPM 2.0.

On Ubuntu 22.04 (and probably others), swtpm has an AppArmor policy that restricts access to specific paths. Those don't include /var/run/xen. I disabled AppArmor with sudo aa-complain swtpm.

Jason Andryuk (3):
libacpi: Build TPM2 tables for the TIS interface
hvmloader: Support the TIS interface for TPM 2.0 tools/libxl: add emulated TPM support backed by swtpm

Stefano Stabellini (1):
libxl: Add emulated TPM support on ARM

 docs/man/xl.cfg.5.pod.in             |  42 +++++++
 docs/misc/xenstore-paths.pandoc      |  12 +-
 tools/firmware/hvmloader/util.c      |  12 +-
 tools/golang/xenlight/gengotypes.py  |   2 +-
 tools/golang/xenlight/helpers.gen.go |  48 ++++++++
 tools/golang/xenlight/types.gen.go   |  17 +++
 tools/include/libxl.h                |  11 ++
 tools/libacpi/Makefile               |   2 +-
 tools/libacpi/acpi2_0.h              |   1 +
 tools/libacpi/build.c                |  47 +++++--
 tools/libacpi/libacpi.h              |   4 +
 tools/libacpi/ssdt_tpm2_tis.asl      |  25 ++++
 tools/libs/light/libxl_arch.h        |   6 +
 tools/libs/light/libxl_arm.c         |  47 +++++++
 tools/libs/light/libxl_create.c      |  46 ++++++-
 tools/libs/light/libxl_dm.c          | 175 ++++++++++++++++++++++++++-
 tools/libs/light/libxl_domain.c      |   3 +
 tools/libs/light/libxl_internal.h    |   4 +
 tools/libs/light/libxl_types.idl     |  17 +++
 tools/libs/light/libxl_x86.c         |  24 ++++
 tools/xl/xl_parse.c                  |  20 +++
 xen/include/public/arch-arm.h        |   4 +
 22 files changed, 551 insertions(+), 18 deletions(-)
 create mode 100644 tools/libacpi/ssdt_tpm2_tis.asl
Signature · 1 line
2.34.1