mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
Cleanup only -- no functional change intended. A lot of the current TPM virtio device is closely based on previously existing virtio devices. This CL cleans up the TPM device in preparation for a change that will let it handle send+recv as a single descriptor chain. - Pass all EventFds together inside of the Worker object. - Introduce an Error enum to enable use of `?` error handling. - Introduce NeedsInterrupt enum to clarify meaning of return value of Worker::process_queue. - Simplify code for instantiating Worker and spawning thread. TEST=run TPM playground inside crosvm Change-Id: I4a9a4b379a28d2336a1d9f2dce46f013e647ea16 Reviewed-on: https://chromium-review.googlesource.com/1478381 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |