tpm-backend: Move thread handling inside TPMBackend
Move thread handling inside TPMBackend, this way backend implementations need not to maintain their own thread life cycle, instead they needs to implement 'handle_request()' class method that always been called from a thread. This change made tpm_backend_int.h kind of useless, hence removed it. Signed-off-by:Amarnath Valluri <amarnath.valluri@intel.com> Reviewed-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 39 additions, 23 deletionsbackends/tpm.c
- hw/tpm/tpm_passthrough.c 8 additions, 50 deletionshw/tpm/tpm_passthrough.c
- include/sysemu/tpm_backend.h 20 additions, 12 deletionsinclude/sysemu/tpm_backend.h
- include/sysemu/tpm_backend_int.h 0 additions, 41 deletionsinclude/sysemu/tpm_backend_int.h
include/sysemu/tpm_backend_int.h
deleted
100644 → 0
Please register or sign in to comment