qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] tpm_emulator: Signal swtpm to re-lock storage
@ 2022-08-26 15:46 Stefan Berger
  2022-08-26 15:46 ` [PATCH 1/2] tpm_emulator: Use latest tpm_ioctl.h from swtpm project Stefan Berger
  2022-08-26 15:46 ` [PATCH 2/2] tpm_emulator: Have swtpm relock storage upon migration fall-back Stefan Berger
  0 siblings, 2 replies; 9+ messages in thread
From: Stefan Berger @ 2022-08-26 15:46 UTC (permalink / raw)
  To: qemu-devel, marcandre.lureau; +Cc: Stefan Berger

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(-)

-- 
2.37.2



^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0/2] tpm_emulator: Signal swtpm to again lock storage
@ 2022-09-07 22:28 Stefan Berger
  2022-09-07 22:28 ` [PATCH 1/2] tpm_emulator: Use latest tpm_ioctl.h from swtpm project Stefan Berger
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Berger @ 2022-09-07 22:28 UTC (permalink / raw)
  To: qemu-devel, marcandre.lureau; +Cc: Stefan Berger

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

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(-)

-- 
2.37.2



^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH 0/2] tpm_emulator: Signal swtpm to again lock storage
@ 2022-09-12 17:47 Stefan Berger
  2022-09-12 17:47 ` [PATCH 1/2] tpm_emulator: Use latest tpm_ioctl.h from swtpm project Stefan Berger
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Berger @ 2022-09-12 17:47 UTC (permalink / raw)
  To: qemu-devel, marcandre.lureau; +Cc: Stefan Berger

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(-)

-- 
2.37.2



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-09-12 17:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-26 15:46 [PATCH 0/2] tpm_emulator: Signal swtpm to re-lock storage Stefan Berger
2022-08-26 15:46 ` [PATCH 1/2] tpm_emulator: Use latest tpm_ioctl.h from swtpm project Stefan Berger
2022-08-31 11:36   ` Marc-André Lureau
2022-09-01 16:08     ` Stefan Berger
2022-08-26 15:46 ` [PATCH 2/2] tpm_emulator: Have swtpm relock storage upon migration fall-back Stefan Berger
2022-08-26 18:12   ` Stefan Berger
  -- strict thread matches above, loose matches on Subject: below --
2022-09-07 22:28 [PATCH 0/2] tpm_emulator: Signal swtpm to again lock storage Stefan Berger
2022-09-07 22:28 ` [PATCH 1/2] tpm_emulator: Use latest tpm_ioctl.h from swtpm project Stefan Berger
2022-09-08  5:54   ` Marc-André Lureau
2022-09-12 17:47 [PATCH 0/2] tpm_emulator: Signal swtpm to again lock storage Stefan Berger
2022-09-12 17:47 ` [PATCH 1/2] tpm_emulator: Use latest tpm_ioctl.h from swtpm project Stefan Berger

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).