vfio: Wrap VFIO_DEVICE_GET_REGION_INFO
commit469002263a295ec471c1498c3b456ccd9f85a841
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 10 Mar 2016 16:39:07 +0000 (10 09:39 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 10 Mar 2016 16:39:07 +0000 (10 09:39 -0700)
tree71ee90f35f8dc2d6887047e5cb07e4009301e01e
parent7df9381b7aa56c897e344f3bfe43bf5848bbd3e0
vfio: Wrap VFIO_DEVICE_GET_REGION_INFO

In preparation for supporting capability chains on regions, wrap
ioctl(VFIO_DEVICE_GET_REGION_INFO) so we don't duplicate the code for
each caller.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c
hw/vfio/pci.c
hw/vfio/platform.c
include/hw/vfio/vfio-common.h