diff options
author | Marc-André Lureau | 2017-11-06 19:39:03 +0100 |
---|---|---|
committer | Stefan Berger | 2017-12-15 05:39:14 +0100 |
commit | 0bd6c8a9cfa4fd5c25a32ed39f3b8cb786b75b58 (patch) | |
tree | 20ea8aff5352e6217a36ae78a3d571f970669a59 /include | |
parent | tpm-be: call request_completed() out of thread (diff) | |
download | qemu-0bd6c8a9cfa4fd5c25a32ed39f3b8cb786b75b58.tar.gz qemu-0bd6c8a9cfa4fd5c25a32ed39f3b8cb786b75b58.tar.xz qemu-0bd6c8a9cfa4fd5c25a32ed39f3b8cb786b75b58.zip |
tpm-be: report error instead of front-end
Backend can give more accurate error description, and lift out the job
from the frontend.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/tpm_backend.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h index c5d1a6818a..df9ebd0e81 100644 --- a/include/sysemu/tpm_backend.h +++ b/include/sysemu/tpm_backend.h @@ -99,12 +99,13 @@ enum TpmType tpm_backend_get_type(TPMBackend *s); * @s: the backend to initialized * @tpmif: TPM interface * @datacb: callback for sending data to frontend + * @errp: a pointer to return the #Error object if an error occurs. * * Initialize the backend with the given variables. * * Returns 0 on success. */ -int tpm_backend_init(TPMBackend *s, TPMIf *tpmif); +int tpm_backend_init(TPMBackend *s, TPMIf *tpmif, Error **errp); /** * tpm_backend_startup_tpm: |