mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
1a00bde75f
Hotplug devices are forked from JailWarden process due to minijail workaround. It is possible to pass `&mut SwapController` to the JailWarden process on forking, but the ownership of the reference is not clear. The actual ownership of the object is cloned when forking at the higher call stack, however it is not clear for readers. Introduce swap::SwapDeviceHelper to make the ownership clear. The JailWarden process will hold the ownership of swap::SwapDeviceHelper. BUG=b:266898615 TEST=./tools/run_tests2 Change-Id: I64edf9e41a70edfd156bcca060656b5641d785fb Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4560804 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Shin Kawamura <kawasin@google.com> Reviewed-by: Ningyuan Wang <ningyuan@google.com> |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |