Skip to content

tpm_emulator: Signal swtpm to again lock storage

Stefan Berger qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

v3 from the cover letter

- extended timeout to 3 seconds

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tpm_emulator: Use latest tpm_ioctl.h from swtpm projectbackends/tpm/tpm_ioctl.h+76 -200 replies
2/2tpm_emulator: Have swtpm relock storage upon migration fall-backbackends/tpm/tpm_emulator.c backends/tpm/trace-events+61 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMarc-André Lureau
1/2R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] tpm_emulator: Signal swtpm to again lock storage

Swtpm has been extended to release the lock on the storage where its state is written to upon migration of the last one of its state blobs. Signal swtpm to again lock the storage upon migration fallback. An explicit signal helps swtpm to lock the storage earlier because otherwise it would have to wait for the next TPM command from the VM.

Releasing the lock on the storage is necessary for setups where the storage holding the TPM state is shared between hosts.

Regards,
Stefan

v3:
- extended timeout to 3 seconds

Stefan Berger (2):
tpm_emulator: Use latest tpm_ioctl.h from swtpm project
tpm_emulator: Have swtpm relock storage upon migration fall-back

 backends/tpm/tpm_emulator.c | 60 ++++++++++++++++++++++-
 backends/tpm/tpm_ioctl.h    | 96 +++++++++++++++++++++++++++++--------
 backends/tpm/trace-events   |  2 +
 3 files changed, 137 insertions(+), 21 deletions(-)
Signature · 1 line
2.37.2