]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: Set container device mode
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 30 Apr 2013 21:42:28 +0000 (15:42 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 30 Apr 2013 21:42:28 +0000 (15:42 -0600)
commitf378b79a5bdff949e4b660b055f87dad76eb433f
tree3981446d435ccf0c74f59520c1024ea51b41fcfe
parent88638f5f1b3306f7422e009aa42643f71dae67e5
vfio: Set container device mode

Minor 0 is the VFIO container device (/dev/vfio/vfio).  On it's own
the container does not provide a user with any privileged access.  It
only supports API version check and extension check ioctls.  Only by
attaching a VFIO group to the container does it gain any access.  Set
the mode of the container to allow access.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c