mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
370ee0fb75
Pointers to the iovec structs are shared with the kernel for the duration of an I/O operation and so must be pinned in memory. Use Pin<Box<[iovec]>> instead of Vec<iovec> to express this and also to prevent any changes made in the future from accidentally doing something that causes the memory location of the iovecs to change. BUG=none TEST=unit tests Change-Id: I317f3a6f68d457b0b0a6c86494d506b0e978b5fb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2387823 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |