Skip to content

Commit 1e4c632

Browse files
bchaliosShadowCurse
andcommitted
virtio: add ring buffer type for describing guest memory
Add a ring buffer type that is tailored for holding `struct iovec` objects that point to guest memory for IO. The `struct iovec` objects represent the memory that the guest passed to us as `Descriptors` in a VirtIO queue for performing some I/O operation. We plan to use this type to describe the guest memory we have available for doing network RX. This should facilitate us in optimizing the reception of data from the TAP device using `readv`, thus avoiding a memory copy. Co-authored-by: Egor Lazarchuk <[email protected]> Signed-off-by: Babis Chalios <[email protected]>
1 parent da68f07 commit 1e4c632

File tree

2 files changed

+450
-0
lines changed

2 files changed

+450
-0
lines changed

0 commit comments

Comments
 (0)