mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
tpm-be: update optional function pointers
QEMU code doesn't generally have assert() for mandatory callbacks/function pointers, probably because the crash is pretty obvious. Document the methods instead of going into the code. Make get_tpm_options() mandatory to implement (since all backend implementation have it). 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
69c07db046
commit
ebca2df783
2 changed files with 5 additions and 9 deletions
|
@ -65,15 +65,18 @@ struct TPMBackendClass {
|
|||
|
||||
TPMBackend *(*create)(QemuOpts *opts, const char *id);
|
||||
|
||||
/* start up the TPM on the backend */
|
||||
/* start up the TPM on the backend - optional */
|
||||
int (*startup_tpm)(TPMBackend *t);
|
||||
|
||||
/* optional */
|
||||
void (*reset)(TPMBackend *t);
|
||||
|
||||
void (*cancel_cmd)(TPMBackend *t);
|
||||
|
||||
/* optional */
|
||||
bool (*get_tpm_established_flag)(TPMBackend *t);
|
||||
|
||||
/* optional */
|
||||
int (*reset_tpm_established_flag)(TPMBackend *t, uint8_t locty);
|
||||
|
||||
TPMVersion (*get_tpm_version)(TPMBackend *t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue