Skip to content
Draft
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4880,6 +4880,7 @@ dependencies = [
"pci_core",
"pci_resources",
"scsi_buffers",
"slab",
"task_control",
"thiserror 2.0.16",
"tracelimit",
Expand Down
1 change: 1 addition & 0 deletions vm/devices/storage/nvme_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async-trait.workspace = true
futures.workspace = true
futures-concurrency.workspace = true
parking_lot.workspace = true
slab.workspace = true
task_control.workspace = true
thiserror.workspace = true
tracelimit.workspace = true
Expand Down
10 changes: 3 additions & 7 deletions vm/devices/storage/nvme_test/src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,9 @@ pub enum QueueError {
}

impl SubmissionQueue {
pub fn new(
doorbells: Arc<RwLock<DoorbellMemory>>,
db_id: u16,
gpa: u64,
len: u16,
mem: GuestMemory,
) -> Self {
pub fn new(cq: &CompletionQueue, db_id: u16, gpa: u64, len: u16) -> Self {
let doorbells = cq.head.doorbells.clone();
let mem = cq.mem.clone();
doorbells.read().write(db_id, 0);
Self {
tail: DoorbellState::new(doorbells, db_id, len.into()),
Expand Down
Loading