[PATCH 22/22] drm/i915: Enable platform support for vGPU huge gtt pages
Zhenyu Wang
zhenyuw at linux.intel.com
Wed Dec 20 08:29:20 UTC 2017
On 2017.12.20 16:14:19 +0800, Du, Changbin wrote:
> On Wed, Dec 20, 2017 at 04:11:05PM +0800, Zhenyu Wang wrote:
> > On 2017.12.20 15:48:35 +0800, changbin.du at intel.com wrote:
> > > From: Changbin Du <changbin.du at intel.com>
> > >
> > > Now GVTg supports shadowing both 2M/64K huge gtt pages. So this is to
> > > remove the restriction on guest side.
> > >
> > > Signed-off-by: Changbin Du <changbin.du at intel.com>
> > > ---
> > > drivers/gpu/drm/i915/i915_gem.c | 9 ---------
> > > 1 file changed, 9 deletions(-)
> > >
> > > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> > > index dca15c1..727df2f 100644
> > > --- a/drivers/gpu/drm/i915/i915_gem.c
> > > +++ b/drivers/gpu/drm/i915/i915_gem.c
> > > @@ -5159,15 +5159,6 @@ int i915_gem_init(struct drm_i915_private *dev_priv)
> > > {
> > > int ret;
> > >
> > > - /*
> > > - * We need to fallback to 4K pages since gvt gtt handling doesn't
> > > - * support huge page entries - we will need to check either hypervisor
> > > - * mm can support huge guest page or just do emulation in gvt.
> > > - */
> > > - if (intel_vgpu_active(dev_priv))
> > > - mkwrite_device_info(dev_priv)->page_sizes =
> > > - I915_GTT_PAGE_SIZE_4K;
> > > -
> >
> > For i915 guest, can't simply remove this, but require new pvinfo
> > capability bit for compatibility check.
> >
> You mean all future drivers need to be compatible with old release?
>
yeah, we always keep compatibility between new guest vs. older host.
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20171220/7a507a55/attachment.sig>
More information about the intel-gvt-dev
mailing list