All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] libxl TPM emulator support
@ 2026-11-06 23:15 Jason Andryuk
  2026-11-06 23:15 ` [PATCH 1/4] libacpi: Build TPM2 tables for the TIS interface Jason Andryuk
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Jason Andryuk @ 2026-11-06 23:15 UTC (permalink / raw)
  To: xen-devel
  Cc: Jason Andryuk, Jan Beulich, Anthony PERARD, Juergen Gross,
	Julien Grall, Andrew Cooper, Roger Pau Monné, Teddy Astie,
	Nick Rosbrook, George Dunlap, Stefano Stabellini,
	Bertrand Marquis, Michal Orzel, Volodymyr Babchuk

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-18  7:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 23:15 [PATCH 0/4] libxl TPM emulator support Jason Andryuk
2026-11-06 23:15 ` [PATCH 1/4] libacpi: Build TPM2 tables for the TIS interface Jason Andryuk
2026-11-16 13:30   ` Jan Beulich
2026-11-18  1:15     ` Jason Andryuk
2026-11-18  7:34       ` Jan Beulich
2026-11-06 23:15 ` [PATCH 2/4] hvmloader: Support the TIS interface for TPM 2.0 Jason Andryuk
2026-11-16 13:36   ` Jan Beulich
2026-11-06 23:15 ` [PATCH 3/4] tools/libxl: add emulated TPM support backed by swtpm Jason Andryuk
2026-11-09 19:54   ` Nick Rosbrook
2026-11-06 23:15 ` [PATCH 4/4] libxl: Add emulated TPM support on ARM Jason Andryuk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.