diff options
author | Zhi Wang <zhi.a.wang@intel.com> | 2017-10-10 09:34:11 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-11-16 06:48:23 +0300 |
commit | 22115cef0869b7d08cb2aa60a65d4d978598644c (patch) | |
tree | 0d894a790813ebb6d3ab0934c2d80de0350ba112 /drivers/gpu/drm/i915/gvt/gtt.h | |
parent | 9556e118889293f6d5d226b64688ee2adfd8964c (diff) | |
download | linux-22115cef0869b7d08cb2aa60a65d4d978598644c.tar.xz |
drm/i915/gvt: Let the caller choose if a shadow page should be put into hash table
As we want to re-use intel_vgpu_shadow_page in buidling scrach page table
and we don't want to put scrach page table page into hash table, a new
param is introduced to give the caller a choice to decide if a shadow page
should be put into hash table.
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/gtt.h')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/gtt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gtt.h b/drivers/gpu/drm/i915/gvt/gtt.h index 80b2deb097ad..ab590278dcf1 100644 --- a/drivers/gpu/drm/i915/gvt/gtt.h +++ b/drivers/gpu/drm/i915/gvt/gtt.h @@ -85,8 +85,8 @@ struct intel_gvt_gtt { struct list_head oos_page_free_list_head; struct list_head mm_lru_list_head; - struct page *scratch_ggtt_page; - unsigned long scratch_ggtt_mfn; + struct page *scratch_page; + unsigned long scratch_mfn; }; enum { |