Skip to content

Commit 317121d

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 317121d

File tree

9 files changed

+2937
-0
lines changed

9 files changed

+2937
-0
lines changed

Cargo.lock

Lines changed: 16 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+
license = "Apache-2.0 AND BSD-3-Clause"
7+
8+
[features]
9+
default = []
10+
11+
[dependencies]
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)