[PATCH 0/2] tpm: Some fixes

Stefan Berger posted 2 patches 3 years, 9 months ago
Test FreeBSD passed
Test docker-quick@centos7 passed
Test checkpatch passed
Test docker-mingw@fedora passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200706221327.3914491-1-stefanb@linux.vnet.ibm.com
Maintainers: Stefan Berger <stefanb@linux.ibm.com>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Thomas Huth <thuth@redhat.com>
There is a newer version of this series
hw/tpm/tpm_spapr.c      | 5 ++++-
tests/qtest/tpm-tests.c | 6 +++---
tests/qtest/tpm-util.c  | 6 ++++--
tests/qtest/tpm-util.h  | 3 ++-
4 files changed, 13 insertions(+), 7 deletions(-)
[PATCH 0/2] tpm: Some fixes
Posted by Stefan Berger 3 years, 9 months ago
This series of patches fixes the TPM SPAPR device model so that it reacts
in the same way as the other device models do when the backend device did
not start up properly. It now calls exit(1).

Also, due to a change in the TPM 2 code, the pcrUpdate counter now returns
a different value than before. So it's better to skip the first 14 bytes of
of the TPM 2 response when comparing the responses.

   Stefan

Stefan Berger (2):
  tpm: tpm_spapr: Exit on TPM backend failures
  tests: Skip over first 14 bytes when comparing TPM PCRRead result

 hw/tpm/tpm_spapr.c      | 5 ++++-
 tests/qtest/tpm-tests.c | 6 +++---
 tests/qtest/tpm-util.c  | 6 ++++--
 tests/qtest/tpm-util.h  | 3 ++-
 4 files changed, 13 insertions(+), 7 deletions(-)

-- 
2.24.1