Re: [Intel-gfx] [PATCH v7] drm/i915: return the correct usable aperture size under gvt environment

2017-06-02 Thread Chris Wilson
Quoting Joonas Lahtinen (2017-06-02 11:19:13) > On ke, 2017-05-31 at 10:35 +0800, Weinan Li wrote: > > I915_GEM_GET_APERTURE ioctl is used to probe aperture size from userspace. > > In gvt environment, each vm only use the ballooned part of aperture, so we > > should return the correct available

Re: [Intel-gfx] [PATCH v7] drm/i915: return the correct usable aperture size under gvt environment

2017-06-02 Thread Joonas Lahtinen
On ke, 2017-05-31 at 10:35 +0800, Weinan Li wrote: > I915_GEM_GET_APERTURE ioctl is used to probe aperture size from userspace. > In gvt environment, each vm only use the ballooned part of aperture, so we > should return the correct available aperture size exclude the reserved part > by balloon. >

[Intel-gfx] [PATCH v7] drm/i915: return the correct usable aperture size under gvt environment

2017-05-30 Thread Weinan Li
I915_GEM_GET_APERTURE ioctl is used to probe aperture size from userspace. In gvt environment, each vm only use the ballooned part of aperture, so we should return the correct available aperture size exclude the reserved part by balloon. v2: add 'reserved' in struct i915_address_space to record