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
--
2.34.1