Re: [Intel-gfx] [PATCH v3] drm/i915/gvt: clean up intel_gvt.h as interface for i915 core

2016-10-20 Thread Chris Wilson
On Thu, Oct 20, 2016 at 04:26:14PM +0800, Zhenyu Wang wrote: > int intel_gvt_init_device(struct drm_i915_private *dev_priv) > { > - struct intel_gvt *gvt = _priv->gvt; > + struct intel_gvt *gvt; > int ret; > > /* > @@ -214,9 +216,13 @@ int intel_gvt_init_device(struct

[Intel-gfx] [PATCH v3] drm/i915/gvt: clean up intel_gvt.h as interface for i915 core

2016-10-20 Thread Zhenyu Wang
i915 core should only call functions and structures exposed through intel_gvt.h. Remove internal gvt.h and i915_pvinfo.h. Change for internal intel_gvt structure as private handler which not requires to expose gvt internal structure for i915 core. v2: Fix per Chris's comment - carefully handle