summaryrefslogtreecommitdiffstats
path: root/include/sysemu/tpm_backend.h
diff options
context:
space:
mode:
authorStefan Berger2015-02-23 15:27:19 +0100
committerMichael S. Tsirkin2015-03-01 12:33:21 +0100
commitfd859081453f94c3cbd6527289e41b7fddbf645f (patch)
tree9d050f20d306a1c833721f54f0715815dd0cafb9 /include/sysemu/tpm_backend.h
parenttpm: Support for XFIFO register (diff)
downloadqemu-fd859081453f94c3cbd6527289e41b7fddbf645f.tar.gz
qemu-fd859081453f94c3cbd6527289e41b7fddbf645f.tar.xz
qemu-fd859081453f94c3cbd6527289e41b7fddbf645f.zip
tpm: Support for TIS selftest done flag
Extend the backend to check whether the TPM_ContinueSelfTest finished successfully and provide a flag to the TIS front-end if it successfully finished. The TIS then sets a flag in all localities in the STS register and keeps it until the next reset. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/sysemu/tpm_backend.h')
-rw-r--r--include/sysemu/tpm_backend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h
index 825f33bdc3..540ee25477 100644
--- a/include/sysemu/tpm_backend.h
+++ b/include/sysemu/tpm_backend.h
@@ -56,7 +56,7 @@ struct TPMBackend {
QLIST_ENTRY(TPMBackend) list;
};
-typedef void (TPMRecvDataCB)(TPMState *, uint8_t locty);
+typedef void (TPMRecvDataCB)(TPMState *, uint8_t locty, bool selftest_done);
typedef struct TPMSizedBuffer {
uint32_t size;