mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
6374a3a370
Refactor shared state so that it can be shared between multiple async callbacks. This moves all state from the Worker to a dedicated State struct, which allows it to be passed via Rc<RefCell<>> to the various async callbacks. The collection of endpoints can also be passed as part of the shared state, rather than as its own dedicated argument. There should be no behavioral changes in this CL. BUG=b:232161488 TEST=Boot a guest, hotplug in and out a vfio-pci device repeatedly Change-Id: I1e65ef3e4048bf0889fdee0f18fa5b58be264666 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3659554 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |