This set of patches implements support for migrating the state of the external 'swtpm' TPM emulator. I have primarily tested this with TPM 1.2 so far.
This series of patches builds on top of the recent pull request Stefan Stefan Berger (4): tpm: print buffers received from TPM when debugging tpm: Introduce condition to notify waiters of completed command tpm: Introduce condition in TPM backend for notification tpm: extend TPM emulator and TIS with state migration support backends/tpm.c | 25 ++++ hw/tpm/tpm_emulator.c | 313 +++++++++++++++++++++++++++++++++++++++++-- hw/tpm/tpm_int.h | 3 + hw/tpm/tpm_tis.c | 154 ++++++++++++++++++++- hw/tpm/tpm_tis.h | 2 + hw/tpm/tpm_util.c | 7 + hw/tpm/tpm_util.h | 2 + include/sysemu/tpm_backend.h | 22 +++ 8 files changed, 517 insertions(+), 11 deletions(-) -- 2.5.5