]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/gvt: expose vGPU context hw id
authorZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 1 Aug 2017 05:09:47 +0000 (13:09 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Aug 2017 02:26:11 +0000 (10:26 +0800)
commita45050d718f629104cfdfde0345dae617bdef3fc
tree19ed3655df4c8224833fc53dbc274d037c4a864e
parent4d3e67bb6fa26e50eb087799d98ec232acfb630d
drm/i915/gvt: expose vGPU context hw id

This exposes vGPU context hw id in mdev sysfs which is used to
do vGPU based profiling. Retrieved vGPU context hw id can be set
through i915 perf ioctl to set profiling for target vGPU.

Cc: Jiao Pengyuan <pengyuan.jiao@intel.com>
Cc: Niu Bing <bing.niu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c