mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
371a021f69
When switching to async usage of descriptor queues, it is more useful to consume the offsets and lengths of the descriptor buffers instead of the buffers mapped as `VolatileSlice`s. Having the offset,length pair and the guest memory it refers to is enough to initiate async ops. Async versions of non-offset read/write case aren't possible as using the existing "seek" offset of the file doesn't make sense with async IO. Adding the new version modifies the existing API. This is necessary as now `Reader` and `Writer` own `GuestMemory`, which makes async possible. TEST=unit tests and new test to exercise the async functions. Change-Id: I0a5e50694f40217e5d6ac40f5fcb82944a4c117e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2306784 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dylan Reid <dgreid@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |