diff options
author | Xiong Zhang <xiong.y.zhang@intel.com> | 2019-05-27 08:45:50 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2019-05-30 06:31:43 +0300 |
commit | 5e0b3f3b27731f660612249b74b520f1bce6c198 (patch) | |
tree | 393b1520dfb99cd38870ba5440682355034496c7 /drivers/gpu/drm/i915/gvt/cmd_parser.c | |
parent | cb2808da74f07c0763edfa63f8e397f97c7a87a3 (diff) | |
download | linux-5e0b3f3b27731f660612249b74b520f1bce6c198.tar.xz |
drm/i915/gvt: refine ggtt range validation
The vgpu ggtt range should be in vgpu aperture or hidden range. This
patch enforce begin and end address check and guarantee both of them are
in the valid range.
For size=0, it will regress to vgpu_gmadr_is_valid(), will refine
this usage in a later fix.
Fixes: 2707e4446688 ("drm/i915/gvt: vGPU graphics memory virtualization")
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/cmd_parser.c')
0 files changed, 0 insertions, 0 deletions