qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] tpm: add mssim backend
@ 2022-12-30 15:24 James Bottomley
  2022-12-30 15:24 ` [PATCH v4 1/2] tpm: convert tpmdev options processing to new visitor format James Bottomley
  2022-12-30 15:24 ` [PATCH v4 2/2] tpm: add backend for mssim James Bottomley
  0 siblings, 2 replies; 6+ messages in thread
From: James Bottomley @ 2022-12-30 15:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel P . Berrangé, Markus Armbruster, Stefan Berger

From: James Bottomley <James.Bottomley@HansenPartnership.com>

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).  The bad news is I can't test any of the conversions.
swtpm still isn't building on opensuse and, apparently, passthrough
doesn't like my native TPM because it doesn't allow cancellation.

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)

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    |  24 ++-
 backends/tpm/tpm_mssim.c       | 265 +++++++++++++++++++++++++++++++++
 backends/tpm/tpm_mssim.h       |  43 ++++++
 backends/tpm/tpm_passthrough.c |  27 +---
 docs/specs/tpm.rst             |  35 +++++
 include/sysemu/tpm.h           |   4 +-
 include/sysemu/tpm_backend.h   |   2 +-
 monitor/hmp-cmds.c             |   7 +
 qapi/tpm.json                  |  45 +++++-
 softmmu/tpm.c                  |  90 +++++------
 softmmu/vl.c                   |  19 +--
 14 files changed, 461 insertions(+), 112 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] 6+ messages in thread

end of thread, other threads:[~2023-01-03  0:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-30 15:24 [PATCH v4 0/2] tpm: add mssim backend James Bottomley
2022-12-30 15:24 ` [PATCH v4 1/2] tpm: convert tpmdev options processing to new visitor format James Bottomley
2022-12-30 17:01   ` Stefan Berger
2022-12-31  3:40     ` James Bottomley
2023-01-03  0:49       ` Stefan Berger
2022-12-30 15:24 ` [PATCH v4 2/2] tpm: add backend for mssim James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).