aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/cmd_parser.c
Commit message (Collapse)AuthorAgeFilesLines
...
* drm/i915/gvt: Remove defunct vmap_batch()Chris Wilson2016-10-201-38/+0
| | | | | | | | This code was removed from i915_cmd_parser.c but still an obsolete version wound up being duplicated into gvt/cmd_parser.c. Good riddance. Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
* drm/i915/gvt: Use common mapping routines for shadow_bb objectChris Wilson2016-10-201-15/+6
| | | | | | | | | We have the ability to map an object, so use it rather than opencode it badly. Note that the object remains permanently pinned, this is poor practise. Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
* drm/i915/gvt: Use common mapping routines for indirect_ctx objectChris Wilson2016-10-201-19/+9
| | | | | | | | We have the ability to map an object, so use it rather than opencode it badly. Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
* drm/i915/gvt: i915_gem_object_create() returns an error pointerChris Wilson2016-10-201-20/+28
| | | | | | | | | On failure from i915_gem_object_create(), we need to check for an error pointer not NULL. Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Zhenyu Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
* drm/i915/gvt: clean up intel_gvt.h as interface for i915 coreZhenyu Wang2016-10-201-0/+2
| | | | | | | | | | | | | | | | | | | | | i915 core should only call functions and structures exposed through intel_gvt.h. Remove internal gvt.h and i915_pvinfo.h. Change for internal intel_gvt structure as private handler which not requires to expose gvt internal structure for i915 core. v2: Fix per Chris's comment - carefully handle dev_priv->gvt assignment - add necessary bracket for macro helper - forward declartion struct intel_gvt - keep free operation within same file handling alloc v3: fix use after free and remove intel_gvt.initialized v4: change to_gvt() to an inline Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
* drm/i915/gvt: vGPU command scannerZhi Wang2016-10-141-0/+2878
This patch introduces a command scanner to scan guest command buffers. Signed-off-by: Yulei Zhang <[email protected]> Signed-off-by: Zhi Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>