This series of patches improves error handling with the TPM backend. The have just been applied to master and can be cherry-pick'ed. I added the cherry-pick command in the 2 patches.
Stefan Stefan Berger (2): tpm: Exit in reset when backend indicates failure tpm_emulator: Translate TPM error codes to strings hw/tpm/tpm_crb.c | 4 ++- hw/tpm/tpm_emulator.c | 60 +++++++++++++++++++++++++++++++++++-------- hw/tpm/tpm_int.h | 13 ++++++++++ hw/tpm/tpm_tis.c | 4 ++- 4 files changed, 69 insertions(+), 12 deletions(-) -- 2.20.1