vfio: Enable sparse mmap capability
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 26 May 2016 15:43:20 +0000 (09:43 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 26 May 2016 15:43:20 +0000 (09:43 -0600)
commitb53b0f696b10828f6393155f44a352c019e673fd
tree1fb2c53a38d49183381adcb453ffa81d5a356948
parent2c56d06bafd8933d2a9c6e0aeb5d45f7c1fb5616
vfio: Enable sparse mmap capability

The sparse mmap capability in a vfio region info allows vfio to tell
us which sub-areas of a region may be mmap'd.  Thus rather than
assuming a single mmap covers the entire region and later frobbing it
ourselves for things like the PCI MSI-X vector table, we can read that
directly from vfio.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>
hw/vfio/common.c
trace-events