tpm-backend: Move thread handling inside TPMBackend
commitb19a5eea5a26e9bd83a48c742172d2a6aa8c4180
authorAmarnath Valluri <amarnath.valluri@intel.com>
Fri, 29 Sep 2017 11:10:14 +0000 (29 14:10 +0300)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 13 Oct 2017 11:34:33 +0000 (13 07:34 -0400)
tree0527197c4989c62d5cf539da0fce12bea4fca715
parentfb4b0c6765471dad2363875989e7661ca5f9a608
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>
backends/tpm.c
hw/tpm/tpm_passthrough.c
include/sysemu/tpm_backend.h
include/sysemu/tpm_backend_int.h [deleted file]