diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2016-02-23 02:02:35 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2016-02-23 02:10:08 +0300 |
commit | ff63eb638d63b95e489f976428f1df01391e15e4 (patch) | |
tree | 8103839511bf4e5353891d41a0a02c2c9e08e34b /drivers/vfio/pci/vfio_pci.c | |
parent | d7a8d5ed876970ac7f9bafbb6708500a7838c1d7 (diff) | |
download | linux-ff63eb638d63b95e489f976428f1df01391e15e4.tar.xz |
vfio: Define sparse mmap capability for regions
We can't always support mmap across an entire device region, for
example we deny mmaps covering the MSI-X table of PCI devices, but
we don't really have a way to report it. We expect the user to
implicitly know this restriction. We also can't split the region
because vfio-pci defines an API with fixed region index to BAR
number mapping. We therefore define a new capability which lists
areas within the region that may be mmap'd. In addition to the
MSI-X case, this potentially enables in-kernel emulation and
extensions to devices.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/pci/vfio_pci.c')
0 files changed, 0 insertions, 0 deletions