All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v11 0/2] tpm: add mssim backend
@ 2024-12-12 17:05 James Bottomley
  2024-12-12 17:05 ` [PATCH v11 1/2] tpm: convert tpmdev options processing to new visitor format James Bottomley
  2024-12-12 17:05 ` [PATCH v11 2/2] tpm: add backend for mssim James Bottomley
  0 siblings, 2 replies; 9+ messages in thread
From: James Bottomley @ 2024-12-12 17:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel P . Berrangé, Markus Armbruster, Stefan Berger

The requested feedback was to convert the tpmdev handler to being json
based, which requires rethreading all the backends.  The good news is
this reduced quite a bit of code (especially as I converted it to
error_fatal handling as well, which removes the return status
threading).

v3 pulls out more unneeded code in the visitor conversion, makes
migration work on external state preservation of the simulator and
adds documentation

v4 puts back the wrapper options (but doesn't add any for mssim since
it post dates the necessity)

v5 rebases to the latest master branch and adjusts for removed use_FOO ptrs

v5 updates help to exit zero; does some checkpatch tidying

v7 merge review feedback and add acks.

v8 adds better error handling, more code tidies and adds command
   socket disconnection/reconnection (instead of trying to keep the
   socket open the whole time).  This adds overhead, but makes
   debugging guest kernel TPM issues much easier.

v9 Fix merge conflict with optarg->optstr conversion

v10 Fix more merge conflicts and update API versions

v11 Fix another merge conflict and correct a warm reboot problem where
    the TPM isn't getting reset (meaning the PCR values are wrong).

James

---

James Bottomley (2):
  tpm: convert tpmdev options processing to new visitor format
  tpm: add backend for mssim

 MAINTAINERS                    |   6 +
 backends/tpm/Kconfig           |   5 +
 backends/tpm/meson.build       |   1 +
 backends/tpm/tpm_emulator.c    |  25 +--
 backends/tpm/tpm_mssim.c       | 335 +++++++++++++++++++++++++++++++++
 backends/tpm/tpm_mssim.h       |  44 +++++
 backends/tpm/tpm_passthrough.c |  23 +--
 docs/specs/tpm.rst             |  39 ++++
 include/sysemu/tpm.h           |   5 +-
 include/sysemu/tpm_backend.h   |   2 +-
 qapi/tpm.json                  |  50 ++++-
 system/tpm-hmp-cmds.c          |   9 +
 system/tpm.c                   |  91 ++++-----
 system/vl.c                    |  19 +-
 14 files changed, 546 insertions(+), 108 deletions(-)
 create mode 100644 backends/tpm/tpm_mssim.c
 create mode 100644 backends/tpm/tpm_mssim.h

-- 
2.35.3



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

end of thread, other threads:[~2025-01-07 14:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 17:05 [PATCH v11 0/2] tpm: add mssim backend James Bottomley
2024-12-12 17:05 ` [PATCH v11 1/2] tpm: convert tpmdev options processing to new visitor format James Bottomley
2025-01-07  7:41   ` Philippe Mathieu-Daudé
2025-01-07 14:12   ` Markus Armbruster
2024-12-12 17:05 ` [PATCH v11 2/2] tpm: add backend for mssim James Bottomley
2024-12-19 17:39   ` Daniel P. Berrangé
2025-01-07  2:11     ` James Bottomley
2025-01-07  8:11       ` Daniel P. Berrangé
2025-01-07  7:40   ` Philippe Mathieu-Daudé

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.