Skip to content

Commit 72b76f8

Browse files
committed
refactor(pci): move PCI emulation logic in vmm mod
The implementation of the PCI emulation components is heavily Firecracker opinionated. Move those inside a module of `vmm` crate and leave in the `pci` module only type definitions which can easily be reused across VMMs. We also take advantage of this refactoring to remove in various places the usage of `std::io::Error` as error types returned by emulation logic. Signed-off-by: Babis Chalios <[email protected]>
1 parent b1e2224 commit 72b76f8

File tree

11 files changed

+632
-633
lines changed

11 files changed

+632
-633
lines changed

src/pci/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,11 @@ bench = false
1212
default = []
1313

1414
[dependencies]
15-
byteorder = "1.5.0"
1615
displaydoc = "0.2.5"
1716
libc = "0.2.175"
1817
log = "0.4.28"
1918
serde = { version = "1.0.226", features = ["derive"] }
2019
thiserror = "2.0.16"
21-
vm-device = { path = "../vm-device" }
22-
vm-memory = { version = "0.16.1", features = [
23-
"backend-mmap",
24-
"backend-bitmap",
25-
] }
2620

2721
[dev-dependencies]
2822
serde_test = "1.0.177"

0 commit comments

Comments
 (0)