]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/i915/gvt: Double check batch buffer size after copy
authorTina Zhang <tina.zhang@intel.com>
Mon, 12 Aug 2019 06:47:51 +0000 (14:47 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 13 Aug 2019 09:55:06 +0000 (17:55 +0800)
commit220b65d8009dff397a112ee560c297299ba5e423
tree6f1a3fb67f1b2ed77e9da8b7c96cfb84b3579794
parent00a33be406349ae04a676e05c535987750f838ca
drm/i915/gvt: Double check batch buffer size after copy

Double check the end of the privilege buffer to make sure the size
of the privilege buffer remains unchanged after copy.

v4:
- Refine the commit message. (Zhenyu)
v3:
- To get the right offset of the batch buffer end cmd. (Yan)

v2:
- Use lightweight way to audit batch buffer end. (Yan)

Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c