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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 09:02:02 +0000 (11:02 +0200)
commitc53f225fd792970c75ce0cb4042a11d04ef06d09
tree0d8a8397849d92bd10ecf86304670a0db3e26438
parent325abf3db041d7ca130a5f84024da2ffffa35f0e
drm/i915/gvt: throw error on unhandled vfio ioctls

commit 9f591ae60e1be026901398ef99eede91237aa3a1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/gvt/kvmgt.c