diff options
author | Jike Song <jike.song@intel.com> | 2016-11-03 18:38:35 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2016-11-10 15:45:15 +0800 |
commit | 9ec1e66b8084f24d41046bd9711fbd7ec6e3850f (patch) | |
tree | 0774390a13bc2709b32309bd24ded3d841d1d64b /drivers/gpu/drm/i915/gvt/vgpu.c | |
parent | 7b3343b7e804bb89ad24a0a8c4e8e1010a418f14 (diff) | |
download | linux-stable-9ec1e66b8084f24d41046bd9711fbd7ec6e3850f.tar.gz linux-stable-9ec1e66b8084f24d41046bd9711fbd7ec6e3850f.tar.bz2 linux-stable-9ec1e66b8084f24d41046bd9711fbd7ec6e3850f.zip |
drm/i915/gvt: refactor intel_gvt_io_emulation_ops to be intel_gvt_ops
There are currently 4 methods in intel_gvt_io_emulation_ops
to emulate CFG/MMIO reading/writing for intel vGPU. A possibly
better scope is: add 3 more methods for vgpu create/destroy/reset
respectively, and rename the ops to 'intel_gvt_ops', then pass
it to the MPT module (say the future kvmgt) to use: they are
all methods for external usage.
Signed-off-by: Jike Song <jike.song@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/vgpu.c')
-rw-r--r-- | drivers/gpu/drm/i915/gvt/vgpu.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c index 9b09f697862c..3a15feadc1df 100644 --- a/drivers/gpu/drm/i915/gvt/vgpu.c +++ b/drivers/gpu/drm/i915/gvt/vgpu.c @@ -390,3 +390,14 @@ struct intel_vgpu *intel_gvt_create_vgpu(struct intel_gvt *gvt, return vgpu; } + +/** + * intel_gvt_reset_vgpu - reset a virtual GPU + * @vgpu: virtual GPU + * + * This function is called when user wants to reset a virtual GPU. + * + */ +void intel_gvt_reset_vgpu(struct intel_vgpu *vgpu) +{ +} |