Commit 3219931
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 e0c18c8 commit 3219931
File tree
12 files changed
+633
-636
lines changed- src
- pci
- src
- vmm/src
- device_manager
- devices
- pci
- virtio/transport/pci
- pci
- vstate
12 files changed
+633
-636
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
| |||
0 commit comments