Skip to content

tpm: Match frontend and backend buffer sizes (not 2.11)

Stefan Berger qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v15 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- followed Marc-André's suggestions

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tpm: Move getting TPM buffer size to backendsbackends/tpm.c hw/tpm/tpm_emulator.c hw/tpm/tpm_passthrough.c +2 more+38 -50 replies
2/5tpm: pull tpm_util_request() out of tpm_util_test()hw/tpm/tpm_util.c+31 -90 replies
3/5tpm: tpm_passthrough: Read the buffer size from the host devicehw/tpm/tpm_int.h hw/tpm/tpm_passthrough.c hw/tpm/tpm_util.c +1 more+137 -10 replies
4/5tpm: tpm_emulator: get and set buffer size of devicebackends/tpm.c hw/tpm/tpm_emulator.c hw/tpm/tpm_ioctl.h +2 more+111 -120 replies
5/5tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer sizehw/tpm/tpm_passthrough.c+15 -00 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarc-André Lureau
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] tpm: Match frontend and backend buffer sizes (not 2.11)

This patch series does away with the hard coded buffer size in the TIS frontend and instead retrieves the buffer size from the device that's being used. So it gets it from the host device or the external emulator. In case the frontend (CRB) cannot support the backend's current buffer size (typically 4k) it can adjust the buffer size the emulator is working with so that we will not run into the problem that the backend produces packets that the frontend cannot deliver to due mismatching buffer sizes.

Stefan

v1->v2:
- followed Marc-André's suggestions

Stefan Berger (5):
tpm: Move getting TPM buffer size to backends
tpm: pull tpm_util_request() out of tpm_util_test()
tpm: tpm_passthrough: Read the buffer size from the host device
tpm: tpm_emulator: get and set buffer size of device
tpm: tpm_passthrough: Fail startup if FE buffer size < BE buffer size

 backends/tpm.c               |  11 ++-
 hw/tpm/tpm_emulator.c        |  83 ++++++++++++++++++++++-
 hw/tpm/tpm_int.h             |   9 +++
 hw/tpm/tpm_ioctl.h           |  28 +++++++-
 hw/tpm/tpm_passthrough.c     |  30 +++++++++
 hw/tpm/tpm_tis.c             |  18 ++---
 hw/tpm/tpm_util.c            | 155 ++++++++++++++++++++++++++++++++++++++++---
 hw/tpm/tpm_util.h            |   3 +
 include/sysemu/tpm_backend.h |  18 ++++-
 9 files changed, 330 insertions(+), 25 deletions(-)
Signature · 1 line
2.5.5