]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/gvt: GVT pin/unpin shadow context
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Thu, 16 Mar 2017 01:47:58 +0000 (09:47 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 17 Mar 2017 08:46:45 +0000 (16:46 +0800)
commit3cd23b828b37bd5ccf4b40132f12dbf20d7afdb6
tree25be3c5a6410475b78bca0c148395fe0254a73b9
parent17f1b1a6d4e5f41df161eb2a90af22c003a243fc
drm/i915/gvt: GVT pin/unpin shadow context

When handling guest request, GVT needs to populate/update shadow_ctx
with guest context. This behavior needs to make sure the shadow_ctx
is pinned. The current implementation is relying on i195 allocate request
to pin but this way cannot guarantee the i915 not to unpin the shadow_ctx
when GVT update the guest context from shadow_ctx. So GVT should pin/unpin
the shadow_ctx by itself.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c