Lucas Amaral <[email protected]> writes:

> Define VIRTIO_GPU_F_BLOB_ALIGNMENT (feature bit 5) and the
> blob_alignment field in virtio_gpu_config per the OASIS virtio
> specification.
>
> Signed-off-by: Lucas Amaral <[email protected]>
> ---
>  include/standard-headers/linux/virtio_gpu.h | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/include/standard-headers/linux/virtio_gpu.h 
> b/include/standard-headers/linux/virtio_gpu.h
> index 00cd3f04..252704e7 100644
> --- a/include/standard-headers/linux/virtio_gpu.h
> +++ b/include/standard-headers/linux/virtio_gpu.h
> @@ -64,6 +64,11 @@
>   * context_init and multiple timelines
>   */
>  #define VIRTIO_GPU_F_CONTEXT_INIT        4
> +/*
> + * VIRTIO_GPU_F_BLOB_ALIGNMENT: device advertises blob_alignment
> + * in virtio_gpu_config (OASIS virtio-spec feature bit 5)
> + */
> +#define VIRTIO_GPU_F_BLOB_ALIGNMENT      5

What kernel version does this symbol get added in? I can't see it in 7.0

Headers should be imported with the scripts/update-linux-headers.sh
script, see 49f6b93d075 (linux-headers: Update to Linux v6.19-rc1) for
an example.

>  
>  enum virtio_gpu_ctrl_type {
>       VIRTIO_GPU_UNDEFINED = 0,
> @@ -365,6 +370,7 @@ struct virtio_gpu_config {
>       uint32_t events_clear;
>       uint32_t num_scanouts;
>       uint32_t num_capsets;
> +     uint32_t blob_alignment;
>  };
>  
>  /* simple formats for fbcon/X use */

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro

Reply via email to