drm/i915/gvt: Utility for valid command length check
authorGao, Fred <fred.gao@intel.com>
Thu, 18 Jul 2019 01:39:01 +0000 (09:39 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 13 Aug 2019 09:55:06 +0000 (17:55 +0800)
commit4f870f1fba3443705389d9a2405c10c1cf73f2e0
treec994ebcc4ee8b13ae2b4a70d60dfc6f4f55f0e86
parent8cfbca7848ffe3f5d49155748814cd68a774e449
drm/i915/gvt: Utility for valid command length check

Add utility for valid command length check.

v2: Add F_VAL_CONST flag to identify the value is const
    although LEN maybe variable. (Zhenyu)
v3: unused code removal, flag rename/conflict. (Zhenyu)
v4: redefine F_IP_ADVANCE_CUSTOM and move the check function to
    next patch. (Zhenyu)

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Gao, Fred <fred.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c