mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
689990598a
commit
0bd6c8a9cf
3 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue