tpm-backend: store TPMIf interface, improve backend_init()
Store the TPM interface, the actual object may be different from TPMState. Keep a reference on the interface, and check the backend wasn't already initialized. 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>
Showing
- backends/tpm.c 9 additions, 2 deletionsbackends/tpm.c
- hw/tpm/tpm_emulator.c 2 additions, 2 deletionshw/tpm/tpm_emulator.c
- hw/tpm/tpm_passthrough.c 2 additions, 2 deletionshw/tpm/tpm_passthrough.c
- hw/tpm/tpm_tis.c 1 addition, 1 deletionhw/tpm/tpm_tis.c
- include/sysemu/tpm.h 1 addition, 1 deletioninclude/sysemu/tpm.h
- include/sysemu/tpm_backend.h 3 additions, 3 deletionsinclude/sysemu/tpm_backend.h
Please register or sign in to comment