mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Rather than instantiating a vector for parsing the descriptor chain in advance instead use a SmallVec bounded by the expected length of the descriptor chain. This removes vector allocations from those paths. As smallvec was already a block dependency move it to a workspace dependency and use it from there. Fixes: #5079 Signed-off-by: Rob Bradford <rbradford@meta.com>
56 lines
1.5 KiB
TOML
56 lines
1.5 KiB
TOML
[package]
|
|
authors = ["The Cloud Hypervisor Authors"]
|
|
edition.workspace = true
|
|
name = "virtio-devices"
|
|
rust-version.workspace = true
|
|
version = "0.1.0"
|
|
|
|
[features]
|
|
default = []
|
|
kvm = ["pci/kvm"]
|
|
mshv = ["pci/mshv"]
|
|
sev_snp = ["mshv-ioctls"]
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
block = { path = "../block" }
|
|
byteorder = { workspace = true }
|
|
epoll = { workspace = true }
|
|
event_monitor = { path = "../event_monitor" }
|
|
hypervisor = { path = "../hypervisor" }
|
|
libc = { workspace = true }
|
|
log = { workspace = true }
|
|
mshv-ioctls = { workspace = true, optional = true }
|
|
net_util = { path = "../net_util" }
|
|
pci = { path = "../pci" }
|
|
rate_limiter = { path = "../rate_limiter" }
|
|
seccompiler = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_with = { workspace = true, default-features = false, features = [
|
|
"macros",
|
|
] }
|
|
serial_buffer = { path = "../serial_buffer" }
|
|
smallvec = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
vhost = { workspace = true, features = [
|
|
"vhost-kern",
|
|
"vhost-user-backend",
|
|
"vhost-user-frontend",
|
|
"vhost-vdpa",
|
|
] }
|
|
virtio-bindings = { workspace = true }
|
|
virtio-queue = { workspace = true }
|
|
vm-allocator = { path = "../vm-allocator" }
|
|
vm-device = { path = "../vm-device" }
|
|
vm-memory = { workspace = true, features = [
|
|
"backend-atomic",
|
|
"backend-bitmap",
|
|
"backend-mmap",
|
|
] }
|
|
vm-migration = { path = "../vm-migration" }
|
|
vm-virtio = { path = "../vm-virtio" }
|
|
vmm-sys-util = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|