qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/3] virtio-gpu: add a new command to get p2pdma_distance


From: Michael S. Tsirkin
Subject: Re: [PATCH 3/3] virtio-gpu: add a new command to get p2pdma_distance
Date: Wed, 8 Jan 2025 09:14:29 -0500

On Sat, Dec 07, 2024 at 06:55:40PM +0800, Julia Zhang wrote:
> diff --git a/include/standard-headers/linux/virtio_gpu.h 
> b/include/standard-headers/linux/virtio_gpu.h
> index 6459fdb9fb..2e55dcc2fe 100644
> --- a/include/standard-headers/linux/virtio_gpu.h
> +++ b/include/standard-headers/linux/virtio_gpu.h
> @@ -95,6 +95,7 @@ enum virtio_gpu_ctrl_type {
>       VIRTIO_GPU_CMD_SUBMIT_3D,
>       VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB,
>       VIRTIO_GPU_CMD_RESOURCE_UNMAP_BLOB,
> +     VIRTIO_GPU_CMD_P2PDMA_DISTANCE,
>  
>       /* cursor commands */
>       VIRTIO_GPU_CMD_UPDATE_CURSOR = 0x0300,
> @@ -108,6 +109,7 @@ enum virtio_gpu_ctrl_type {
>       VIRTIO_GPU_RESP_OK_EDID,
>       VIRTIO_GPU_RESP_OK_RESOURCE_UUID,
>       VIRTIO_GPU_RESP_OK_MAP_INFO,
> +     VIRTIO_GPU_RESP_OK_P2PDMA_DISTANCE,
>  
>       /* error responses */
>       VIRTIO_GPU_RESP_ERR_UNSPEC = 0x1200,
> @@ -429,6 +431,23 @@ struct virtio_gpu_set_scanout_blob {
>       uint32_t offsets[4];
>  };
>  
> +/* VIRTIO_GPU_CMD_P2PDMA_DISTANCE */
> +struct virtio_gpu_device_p2pdma_distance {
> +     struct virtio_gpu_ctrl_hdr hdr;
> +     __le32 provider_bus;
> +     __le32 provider_slot;
> +     __le32 provider_func;
> +     __le32 client_bus;
> +     __le32 client_slot;
> +     __le32 client_func;
> +};
> +
> +/* VIRTIO_GPU_RESP_DISTANCE */
> +struct virtio_gpu_resp_distance {
> +     struct virtio_gpu_ctrl_hdr hdr;
> +     __le32 distance;
> +};
> +
>  /* VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB */
>  struct virtio_gpu_resource_map_blob {
>       struct virtio_gpu_ctrl_hdr hdr;
> -- 
> 2.34.1

This is not how we change this header.
you need a spec patch, an UAPI change to be accepted into linux.

-- 
MST




reply via email to

[Prev in Thread] Current Thread [Next in Thread]