[Intel-gfx] [RFC PATCH 3/8] drm/i915: add the vgt implementation of MMIO/GTT mediations
Tian, Kevin
kevin.tian at intel.com
Tue Sep 30 18:34:35 CEST 2014
> From: Song, Jike
> Sent: Tuesday, September 30, 2014 3:06 AM
>
> vgt mediates GPU operations from host i915, in the same way as
> mediating GPU operations from normal VMs. This way vgt can
> have centralized management about sharing among host and other
> VMs. To achieve that, we add a hook in critical wrapper interfaces
> (MMIO/GTT).
>
> This patch only adds the MMIO/GTT accessing functions, without
> changing the existing i915 MMIO/GTT access behaviors.
>
> Signed-off-by: Jike Song <jike.song at intel.com>
> ---
> drivers/gpu/drm/i915/i915_vgt.h | 21 ++++++++
> drivers/gpu/drm/i915/vgt/vgt.c | 105
> ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 126 insertions(+)
>
...
> +void i915_vgt_record_priv(struct drm_i915_private *priv)
> +{
> + dev_priv = priv;
> +}
> --
Suppose above can be carried in i915_start_vgt, instead of adding
a new interface?
Thanks
Kevin
More information about the Intel-gfx
mailing list