Skip to content

VirtQueue should provide peek_avail - #1244

Open
papertigers wants to merge 3 commits into
spr/papertigers/vsock-ev-loop-should-start-pausedfrom
spr/papertigers/virtqueue-should-provide-peek_avail
Open

papertigers wants to merge 3 commits into
spr/papertigers/vsock-ev-loop-should-start-pausedfrom
spr/papertigers/virtqueue-should-provide-peek_avail

Conversation

@papertigers

Copy link
Copy Markdown
Contributor

Some consumers of VirtQueues such as vsock would like to be able to peek a descriptor chain rather
than always consuming it. This allows us to avoid a push_used of an empty write, while avoiding
the need to cache a chain which is tricky to get right and can lead to guest memory corruption. For
example if the cached chain is used after a device is reset and the guest placed the virtio rings in
a different location.

@papertigers
papertigers changed the base branch from spr/papertigers/master.virtqueue-should-provide-peek_avail to spr/papertigers/vsock-ev-loop-should-start-paused November 3, 2026 20:14
@papertigers
papertigers added this pull request to stack #1246 November 3, 2026 20:14
@papertigers
papertigers force-pushed the spr/papertigers/virtqueue-should-provide-peek_avail branch from 9e93118 to 6a6ad18 Compare November 5, 2026 21:31
@papertigers
papertigers force-pushed the spr/papertigers/virtqueue-should-provide-peek_avail branch from 6a6ad18 to 39a063a Compare November 5, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant