]> Git Repo - qemu.git/commit
tpm: replace GThreadPool with AIO threadpool
authorMarc-André Lureau <[email protected]>
Mon, 29 Jan 2018 18:33:05 +0000 (19:33 +0100)
committerStefan Berger <[email protected]>
Mon, 29 Jan 2018 19:22:23 +0000 (14:22 -0500)
commitc4fb8561bcec5f3ae3ae2d8a688d1e1aeb247a91
treefc0db641fffd5b36e4c9852bbcace08b93413104
parent05b71fb207ab7f016e067bd2a40fc0804362eb74
tpm: replace GThreadPool with AIO threadpool

The TPM backend uses a GThreadPool to handle IO in a seperate
thread. However, GThreadPool isn't integrated with Qemu main loops,
making it unnecessarily complicated to deal with.

Qemu has a AIO threadpool, that is better integrated with loops and
various IO functions, provides completion BH by default etc.

Remove the only user of GThreadPool from qemu, use AIO threadpool.

Note that the backend:
- no longer accepts queing multiple requests (unneeded so far)
- increase ref to itself when handling a command, for extra safety
- tpm_backend_thread_end() is renamed tpm_backend_finish_sync() and
will wait for completion of BH (request_completed), which will help
migration handling.

Signed-off-by: Marc-André Lureau <[email protected]>
Reviewed-by: Stefan Berger <[email protected]>
Signed-off-by: Stefan Berger <[email protected]>
backends/tpm.c
include/sysemu/tpm_backend.h
This page took 0.027365 seconds and 4 git commands to generate.