tpm: tpm_spapr: Exit on TPM backend failures
commitf8b332a1ff107dc014a52eaf9bf547995205f18a
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 7 Jul 2020 20:16:24 +0000 (7 16:16 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 15 Jul 2020 18:57:33 +0000 (15 14:57 -0400)
tree27e3968b780d36ce95550c7a9616b930d2104583
parent8746309137ba470d1b2e8f5ce86ac228625db940
tpm: tpm_spapr: Exit on TPM backend failures

Exit on TPM backend failures in the same way as the TPM CRB and TIS device
models do. With this change we now get an error report when the backend
did not start up properly:

error: internal error: qemu unexpectedly closed the monitor:
2020-07-07T12:49:28.333928Z qemu-system-ppc64: tpm-emulator: \
  TPM result for CMD_INIT: 0x101 operation failed

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20200707201625.4177419-2-stefanb@linux.vnet.ibm.com
hw/tpm/tpm_spapr.c