Skip to content

storage: storvsc user-mode implementation #1256

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 4 commits into
base: main
Choose a base branch
from
Open
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
26 changes: 26 additions & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6563,6 +6563,32 @@ dependencies = [
"zerocopy 0.8.24",
]

[[package]]
name = "storvsc_driver"
version = "0.0.0"
dependencies = [
"async-channel",
"futures",
"futures-concurrency",
"guestmem",
"inspect",
"pal_async",
"parking_lot",
"scsi_buffers",
"scsi_defs",
"storvsp_protocol",
"task_control",
"test_with_tracing",
"thiserror 2.0.12",
"tracing",
"tracing_helpers",
"vmbus_async",
"vmbus_channel",
"vmbus_ring",
"vmcore",
"zerocopy 0.8.24",
]

[[package]]
name = "storvsp"
version = "0.0.0"
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ members = [
"vm/devices/storage/disk_nvme/nvme_driver/fuzz",
"vm/devices/storage/ide/fuzz",
"vm/devices/storage/scsi_buffers/fuzz",
"vm/devices/storage/storvsc_driver", # TODO: Remove
"vm/devices/storage/storvsp/fuzz",
"vm/vmcore/guestmem/fuzz",
"vm/x86/x86emu/fuzz",
Expand Down Expand Up @@ -277,6 +278,7 @@ scsi_core = { path = "vm/devices/storage/scsi_core" }
scsi_defs = { path = "vm/devices/storage/scsi_defs" }
scsidisk = { path = "vm/devices/storage/scsidisk" }
scsidisk_resources = { path = "vm/devices/storage/scsidisk_resources" }
storvsc_driver = { path = "vm/devices/storage/storvsc_driver" }
storvsp = { path = "vm/devices/storage/storvsp" }
storvsp_protocol = { path = "vm/devices/storage/storvsp_protocol" }
storvsp_resources = { path = "vm/devices/storage/storvsp_resources" }
Expand Down
38 changes: 38 additions & 0 deletions vm/devices/storage/storvsc_driver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

[package]
name = "storvsc_driver"
edition.workspace = true
rust-version.workspace = true

[dependencies]
scsi_buffers.workspace = true
scsi_defs.workspace = true

vmbus_async.workspace = true
vmbus_channel.workspace = true
vmbus_ring.workspace = true

storvsp_protocol.workspace = true

guestmem.workspace = true
inspect.workspace = true
pal_async.workspace = true
task_control.workspace = true
vmcore.workspace = true
async-channel.workspace = true
futures.workspace = true
futures-concurrency.workspace = true
parking_lot.workspace = true
thiserror.workspace = true
tracing.workspace = true
tracing_helpers.workspace = true
zerocopy.workspace = true

[dev-dependencies]
pal_async.workspace = true
test_with_tracing.workspace = true

[lints]
workspace = true
Loading
Loading