summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/gvt.h
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@intel.com>2018-03-05 15:30:34 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2018-03-06 13:19:28 +0800
commit6846dfeb87a623e0bf31df4b6a7041d70277b0e5 (patch)
tree7a1d79e8482b4b7b60486173bba6274094d869a1 /drivers/gpu/drm/i915/gvt/gvt.h
parentcf4ee73fd9b6d31fa7530f72cff5cc97b94f1272 (diff)
downloadlinux-6846dfeb87a623e0bf31df4b6a7041d70277b0e5.tar.bz2
drm/i915/kvmgt: Add kvmgt debugfs entry nr_cache_entries under vgpu
Add a new debugfs entry kvmgt_nr_cache_entries under vgpu which shows the number of entry in dma cache. $ cat /sys/kernel/debug/gvt/vgpu1/kvmgt_nr_cache_entries 10101 v3: fix compiling error for some configuration. (Xiong Zhang <xiong.y.zhang@intel.com>) v2: keep debugfs layout flat. Signed-off-by: Changbin Du <changbin.du@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/gvt.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/gvt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h
index eda41448c196..efacd8abbedc 100644
--- a/drivers/gpu/drm/i915/gvt/gvt.h
+++ b/drivers/gpu/drm/i915/gvt/gvt.h
@@ -208,6 +208,7 @@ struct intel_vgpu {
*/
struct rb_root gfn_cache;
struct rb_root dma_addr_cache;
+ unsigned long nr_cache_entries;
struct mutex cache_lock;
struct notifier_block iommu_notifier;