Skip to content

Commit d9b83ba

Browse files
bchaliosroypat
authored 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: Babis Chalios <[email protected]> Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent d7fbf9b commit d9b83ba

File tree

2 files changed

+524
-0
lines changed

2 files changed

+524
-0
lines changed

0 commit comments

Comments
 (0)