drm/i915/kvmgt: Add kvmgt debugfs entry nr_cache_entries under vgpu
authorChangbin Du <changbin.du@intel.com>
Mon, 5 Mar 2018 07:30:34 +0000 (15:30 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 6 Mar 2018 05:19:28 +0000 (13:19 +0800)
commit6846dfeb87a623e0bf31df4b6a7041d70277b0e5
tree7a1d79e8482b4b7b60486173bba6274094d869a1
parentcf4ee73fd9b6d31fa7530f72cff5cc97b94f1272
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>
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/kvmgt.c