aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/hypercall.h
diff options
context:
space:
mode:
authorJike Song <jike.song@intel.com>2016-11-03 18:38:33 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-11-10 15:45:13 +0800
commit40df6ea07a15032e33b6f3d415bed0774547ec7e (patch)
tree712ae3960c1d4a1ca72b74b1b1fc7c52a92a1675 /drivers/gpu/drm/i915/gvt/hypercall.h
parentdrm/i915/gvt: remove obsolete code for old kvmgt opregion (diff)
downloadlinux-dev-40df6ea07a15032e33b6f3d415bed0774547ec7e.tar.xz
linux-dev-40df6ea07a15032e33b6f3d415bed0774547ec7e.zip
drm/i915/gvt: introduce host_init/host_exit to MPT
GVT host needs init/exit hooks to do some initialization/cleanup work, e.g.: vfio mdev host device register/unregister. 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/hypercall.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/hypercall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/hypercall.h b/drivers/gpu/drm/i915/gvt/hypercall.h
index 193fd38a96af..f3e926340983 100644
--- a/drivers/gpu/drm/i915/gvt/hypercall.h
+++ b/drivers/gpu/drm/i915/gvt/hypercall.h
@@ -48,6 +48,8 @@ extern struct intel_gvt_io_emulation_ops intel_gvt_io_emulation_ops;
*/
struct intel_gvt_mpt {
int (*detect_host)(void);
+ int (*host_init)(struct device *dev, void *gvt, const void *ops);
+ void (*host_exit)(struct device *dev, void *gvt);
int (*attach_vgpu)(void *vgpu, unsigned long *handle);
void (*detach_vgpu)(unsigned long handle);
int (*inject_msi)(unsigned long handle, u32 addr, u16 data);