Skip to content

Commit 3eb70dd

Browse files
committed
pci: add pci crate from Cloud Hypervisor
Bring in pci crate from cloud hypervisor with a few modifications. We use the rust-vmm vm-allocator crate instead of Cloud Hypervisor's downstream one. For the time being, rust-vmm's implementation should include all we need for supporting the devices we care about. If we need more functionality from our allocators, we will implement the logic directly in the rust-vmm vm-allocator crate. Signed-off-by: Babis Chalios <[email protected]>
1 parent 55a2026 commit 3eb70dd

File tree

9 files changed

+2944
-0
lines changed

9 files changed

+2944
-0
lines changed

Cargo.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pci/Cargo.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[package]
2+
authors = ["Samuel Ortiz <[email protected]>"]
3+
edition = "2021"
4+
name = "pci"
5+
version = "0.1.0"
6+
7+
[features]
8+
default = []
9+
10+
[dependencies]
11+
anyhow = "1.0.94"
12+
byteorder = "1.5.0"
13+
libc = "0.2.172"
14+
log = "0.4.27"
15+
serde = { version = "1.0.219", features = ["derive"] }
16+
thiserror = "2.0.12"
17+
vm-allocator = "0.1.1"
18+
vm-device = { path = "../vm-device" }
19+
vm-memory = { version = "0.16.1", features = [
20+
"backend-mmap",
21+
"backend-bitmap",
22+
] }

0 commit comments

Comments
 (0)