diff options
author | Marc-André Lureau | 2017-11-06 19:39:02 +0100 |
---|---|---|
committer | Stefan Berger | 2017-12-15 05:39:14 +0100 |
commit | 689990598a710519eba37e4eb4d8bdebac1aa562 (patch) | |
tree | cf829e27700633dc8c18f2ff050e4b80cc4f72e7 /include | |
parent | tpm-tis: no longer expose TPMState (diff) | |
download | qemu-689990598a710519eba37e4eb4d8bdebac1aa562.tar.gz qemu-689990598a710519eba37e4eb4d8bdebac1aa562.tar.xz qemu-689990598a710519eba37e4eb4d8bdebac1aa562.zip |
tpm-be: call request_completed() out of thread
Lift from the backend implementation the responsability to call the
request_completed() callback outside of thread context. This also
simplify frontend/interface work, as they no longer need to care
whether the callback is called from a different thread.
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/tpm.h | 1 | ||||
-rw-r--r-- | include/sysemu/tpm_backend.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/include/sysemu/tpm.h b/include/sysemu/tpm.h index 7a1713a81e..e0879620e7 100644 --- a/include/sysemu/tpm.h +++ b/include/sysemu/tpm.h @@ -40,7 +40,6 @@ typedef struct TPMIf { typedef struct TPMIfClass { InterfaceClass parent_class; - /* run in thread pool by backend */ void (*request_completed)(TPMIf *obj); } TPMIfClass; diff --git a/include/sysemu/tpm_backend.h b/include/sysemu/tpm_backend.h index b5f21ed8f1..c5d1a6818a 100644 --- a/include/sysemu/tpm_backend.h +++ b/include/sysemu/tpm_backend.h @@ -47,6 +47,7 @@ struct TPMBackend { bool opened; GThreadPool *thread_pool; bool had_startup_error; + QEMUBH *bh; /* <public> */ char *id; |