mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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>
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1150,7 +1150,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "vfio-ioctls"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/rust-vmm/vfio-ioctls?branch=main#adbc9444387a9276e568fd2e31ed19bd0cd96611"
|
||||
source = "git+https://github.com/rust-vmm/vfio-ioctls?branch=main#8f7f2210ebe71660938b05b2ed7eec9253478bc5"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"kvm-bindings",
|
||||
|
||||
Reference in New Issue
Block a user