aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/hypercall.h
diff options
context:
space:
mode:
authorZhi Wang <zhi.a.wang@intel.com>2016-09-02 13:33:29 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2016-10-14 18:12:59 +0800
commite39c5add322184de3be052d438dfd24375bfeaea (patch)
treea8724bab7dabd340016a91f0b2b0fa8c86cfda0c /drivers/gpu/drm/i915/gvt/hypercall.h
parentdrm/i915/gvt: vGPU PCI configuration space virtualization (diff)
downloadlinux-dev-e39c5add322184de3be052d438dfd24375bfeaea.tar.xz
linux-dev-e39c5add322184de3be052d438dfd24375bfeaea.zip
drm/i915/gvt: vGPU MMIO virtualization
This patch introduces the generic vGPU MMIO emulation intercept framework. The MPT modules will request GVT-g core logic to emulate MMIO read/write through IO emulation operations callback when hypervisor trapped a guest GTTMMIO read/write. Signed-off-by: Zhi Wang <zhi.a.wang@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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/gvt/hypercall.h b/drivers/gpu/drm/i915/gvt/hypercall.h
index b5ffd78afd02..027ef558d91c 100644
--- a/drivers/gpu/drm/i915/gvt/hypercall.h
+++ b/drivers/gpu/drm/i915/gvt/hypercall.h
@@ -34,13 +34,13 @@
#define _GVT_HYPERCALL_H_
struct intel_gvt_io_emulation_ops {
- int (*emulate_cfg_read)(void *, unsigned int,
- void *, unsigned int);
- int (*emulate_cfg_write)(void *, unsigned int,
- void *, unsigned int);
+ int (*emulate_cfg_read)(void *, unsigned int, void *, unsigned int);
+ int (*emulate_cfg_write)(void *, unsigned int, void *, unsigned int);
+ int (*emulate_mmio_read)(void *, u64, void *, unsigned int);
+ int (*emulate_mmio_write)(void *, u64, void *, unsigned int);
};
-extern struct intel_gvt_io_emulation_ops *gvt_io_emulation_ops;
+extern struct intel_gvt_io_emulation_ops intel_gvt_io_emulation_ops;
/*
* Specific GVT-g MPT modules function collections. Currently GVT-g supports