Re: [PATCH] drm/virtio: Add option to disable KMS support

From: Gerd Hoffmann
Date: Mon Feb 27 2023 - 01:39:17 EST


On Fri, Feb 24, 2023 at 10:02:24AM -0800, Rob Clark wrote:
> From: Rob Clark <robdclark@xxxxxxxxxxxx>
>
> Add a build option to disable modesetting support. This is useful in
> cases where the guest only needs to use the GPU in a headless mode, or
> (such as in the CrOS usage) window surfaces are proxied to a host
> compositor.

Why make that a compile time option? There is a config option for the
number of scanouts (aka virtual displays) a device has. Just set that
to zero (and fix the driver to not consider that configuration an
error).

take care,
Gerd