Skip to content

tpm_emulator: Signal swtpm to re-lock storage

Stefan Berger qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

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 -202 replies
2/2tpm_emulator: Have swtpm relock storage upon migration fall-backbackends/tpm/tpm_emulator.c backends/tpm/trace-events+60 -11 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

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

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 re-lock storage

Swtpm is being 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 re-lock the storage upon migration fallback. An explicit signal helps swtpm to re-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

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 | 59 ++++++++++++++++++++++-
 backends/tpm/tpm_ioctl.h    | 96 +++++++++++++++++++++++++++++--------
 backends/tpm/trace-events   |  2 +
 3 files changed, 136 insertions(+), 21 deletions(-)
Signature · 1 line
2.37.2