-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the emulation of PCI devices
Emulate the mechanism to access PCI config spaces on port 0xCF8/0xCFC. There is only a PCI functionality implemented, which is mapping internal space to io space or mmio space through BAR. Each virtio-pci device has its own PCI config space and virtio config space. The PCI config space can be registered to PCI bus by pci_register_dev(). After the PCI device initialization, Guest Linux can access the virtio config space. Our virtio-blk devices is based on virtio-pci. Without option "pci=conf1", the kernel doesn't find a PCI bus and therefore also doesn't find the virtio-blk devices.
- Loading branch information
Showing
6 changed files
with
503 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.