cloud-hypervisor/pci/src
Sebastien Boeuf b11a8a5ab5 pci: vfio: Mmap region based on capabilities
Now that vfio-ioctls correctly exposes the list of capabilities related
to each region, Cloud Hypervisor can decide to mmap a region based on
the presence or absence of MSIX_MAPPABLE. Instead of blindly mmap'ing
the region, we check if the MSI-X table or PBA is present on the BAR,
and if that's the case, we look for MSIX_MAPPABLE.
If MSIX_MAPPABLE is present, we can go ahead and mmap the entire region.
If MSIX_MAPPABLE is not present, we simply ignore the mmap'ing of this
region as it wouldn't be supported.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2021-11-08 10:32:09 +01:00
..
bus.rs vmm: Use PciBdf throughout in order to remove manual bit manipulation 2021-11-02 16:55:42 +00:00
configuration.rs pci: configuration: Upgrade log level of PCI BAR reprogramming message 2021-09-03 09:30:55 -07:00
device.rs pci, virtio-devices, vmm: Allocate PCI 64-bit bars per segment 2021-11-02 16:55:42 +00:00
lib.rs pci: Introduce PciBdf struct with accessors 2021-11-02 16:55:42 +00:00
msi.rs clippy: Fix redundant allocations 2021-07-29 13:28:57 +02:00
msix.rs pci: vfio: Support mapping BAR containing MSI-X 2021-10-28 06:10:12 -07:00
vfio_user.rs pci, virtio-devices, vmm: Allocate PCI 64-bit bars per segment 2021-11-02 16:55:42 +00:00
vfio.rs pci: vfio: Mmap region based on capabilities 2021-11-08 10:32:09 +01:00