This series of patches implements support for migrating the state of the external 'swtpm' TPM emulator as well as that of the TIS interface.
For testing of TPM 2 (migration) please use the following git repos and branches: libtpms: - repo: https://github.com/stefanberger/libtpms - branch: tpm2-preview.rev146.v2 swtpm: - repo: https://github.com/stefanberger/swtpm - branch: tpm2-preview.rev146.v2 Regards, Stefan Changes: v3->v4: - dropped the size limit enforcement on blobs received from the swtpm - the .post_load migration function requires errno's to be returned. -> some of the functions have been converted to return a better errno Stefan Berger (2): tpm: extend TPM emulator with state migration support tpm: extend TPM TIS with state migration support hw/tpm/tpm_emulator.c | 312 ++++++++++++++++++++++++++++++++++++++++++++++++-- hw/tpm/tpm_tis.c | 54 ++++++++- 2 files changed, 355 insertions(+), 11 deletions(-) -- 2.5.5