mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 08:21:15 +00:00
This brings the initial PCI support to the VFIO crate. The VfioPciDevice is the main structure and holds an inner VfioDevice. VfioPciDevice implements the PCI trait, leaving the IRQ assignments empty as this will be driven by both the guest and the VFIO PCI device, not by the VMM. As we must trap BAR programming from the guest (We don't want to program the actual device with guest addresses), we use our local PCI configuration cache to read and write BARs. Signed-off-by: Zhang, Xiong Y <xiong.y.zhang@intel.com> Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
21 lines
573 B
TOML
21 lines
573 B
TOML
[package]
|
|
name = "vfio"
|
|
version = "0.0.1"
|
|
authors = ["The Cloud Hypervisor Authors"]
|
|
|
|
[dependencies]
|
|
byteorder = ">=1.2.1"
|
|
devices = { path = "../devices" }
|
|
kvm-bindings = "0.1"
|
|
kvm-ioctls = { git = "https://github.com/rust-vmm/kvm-ioctls", branch = "master" }
|
|
libc = ">=0.2.39"
|
|
log = "*"
|
|
pci = { path = "../pci" }
|
|
vfio-bindings = { path = "../vfio-bindings" }
|
|
vm-allocator = { path = "../vm-allocator" }
|
|
vmm-sys-util = { git = "https://github.com/rust-vmm/vmm-sys-util" }
|
|
|
|
[dependencies.vm-memory]
|
|
git = "https://github.com/rust-vmm/vm-memory"
|
|
features = ["backend-mmap"]
|