[Intel-gfx] [PATCH] drm/i915/gvt: query if vgpu is active via GETPARAM IOCTL

Chris Wilson chris at chris-wilson.co.uk
Tue Jun 16 18:47:20 UTC 2020


Quoting Shaofeng Tang (2020-06-16 09:29:20)
> [Why]
> Query if vgpu is active, it is useful to the user.
> Currently, only the primary plane is usable when vgpu is active.
> The value of vgpu active is useful for user to determine
> how many planes can be used. also useful for user to
> determine different behaviors according to vgpu is active or not.

The number of planes must be queried via kms, and all such kernel
capabilities should be declared via the appropriate interface.

I am not saying that there is not potentially good reason to let the
user to know it's a virtual gpu, but hardcoding api limits in the client
based on the parameter is a bad idea.
-Chris


More information about the Intel-gfx mailing list