]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: free VFIO region space in vgpu detach
authorHang Yuan <hang.yuan@linux.intel.com>
Mon, 14 Jan 2019 10:43:39 +0000 (18:43 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 15 Jan 2019 10:28:15 +0000 (18:28 +0800)
commit318b8b9f5ca12fb0f5065e73dd966978f74eeea9
tree757eede560b44538dfda13a0b0078a8ea948fce3
parent4205992b7cdad8eab6faac7c71bdfe8affaea0bd
drm/i915/gvt: free VFIO region space in vgpu detach

VFIO region space is allocated when one region is registered for
one vgpu. So free the space when destroy the vgpu.

Also change the parameter of detach_vgpu callback to use vgpu directly.

Fixes: 92d6dde7cf2d527c4a4b7 ("drm/i915/gvt: Add opregion support")
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Hang Yuan <hang.yuan@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/hypercall.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/mpt.h