drm/i915/gvt: throw error on unhandled vfio ioctls
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Mar 2018 14:08:47 +0000 (15:08 +0100)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 22 Mar 2018 02:20:12 +0000 (10:20 +0800)
commit9f591ae60e1be026901398ef99eede91237aa3a1
treeb50708b4d0c1f8111560169602b855f19fde931a
parentd8303075699292008ae5b2c8fc728d455b994c26
drm/i915/gvt: throw error on unhandled vfio ioctls

On unknown/unhandled ioctls the driver should return an error, so
userspace knows it tried to use something unsupported.

Cc: stable@vger.kernel.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c