Skip to content

Inflight I/O: Fix the memory layout of queue region header #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/vhost_user/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -877,8 +877,6 @@ pub struct QueueRegionSplit {
pub last_batch_head: u16,
/// Idx value of used ring
pub used_idx: u16,
/// Pointer to an array of DescStateSplit entries
pub desc: u64,
}

impl QueueRegionSplit {
Expand All @@ -890,7 +888,6 @@ impl QueueRegionSplit {
desc_num: queue_size,
last_batch_head: 0,
used_idx: 0,
desc: 0,
}
}
}
Expand Down Expand Up @@ -951,8 +948,6 @@ pub struct QueueRegionPacked {
pub old_used_wrap_counter: u8,
/// Padding
padding: [u8; 7],
/// Pointer to array tracking state of each descriptor from descriptor ring
pub desc: u64,
}

impl QueueRegionPacked {
Expand All @@ -969,7 +964,6 @@ impl QueueRegionPacked {
used_wrap_counter: 0,
old_used_wrap_counter: 0,
padding: [0; 7],
desc: 0,
}
}
}
Expand Down