[PATCH 0/2] tpm: add mssim backend

James Bottomley posted 2 patches 1 year, 4 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
MAINTAINERS                    |   5 +
backends/tpm/Kconfig           |   5 +
backends/tpm/meson.build       |   1 +
backends/tpm/tpm_emulator.c    |  35 ++---
backends/tpm/tpm_mssim.c       | 251 +++++++++++++++++++++++++++++++++
backends/tpm/tpm_mssim.h       |  43 ++++++
backends/tpm/tpm_passthrough.c |  37 ++---
include/sysemu/tpm.h           |   2 +-
include/sysemu/tpm_backend.h   |   2 +-
monitor/hmp-cmds.c             |  11 +-
qapi/tpm.json                  |  37 ++---
softmmu/tpm.c                  |  84 +++++------
softmmu/vl.c                   |   4 +-
13 files changed, 398 insertions(+), 119 deletions(-)
create mode 100644 backends/tpm/tpm_mssim.c
create mode 100644 backends/tpm/tpm_mssim.h
[PATCH 0/2] tpm: add mssim backend
Posted by James Bottomley 1 year, 4 months ago
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.

James

---

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

 MAINTAINERS                    |   5 +
 backends/tpm/Kconfig           |   5 +
 backends/tpm/meson.build       |   1 +
 backends/tpm/tpm_emulator.c    |  35 ++---
 backends/tpm/tpm_mssim.c       | 251 +++++++++++++++++++++++++++++++++
 backends/tpm/tpm_mssim.h       |  43 ++++++
 backends/tpm/tpm_passthrough.c |  37 ++---
 include/sysemu/tpm.h           |   2 +-
 include/sysemu/tpm_backend.h   |   2 +-
 monitor/hmp-cmds.c             |  11 +-
 qapi/tpm.json                  |  37 ++---
 softmmu/tpm.c                  |  84 +++++------
 softmmu/vl.c                   |   4 +-
 13 files changed, 398 insertions(+), 119 deletions(-)
 create mode 100644 backends/tpm/tpm_mssim.c
 create mode 100644 backends/tpm/tpm_mssim.h

-- 
2.35.3