[PATCH 01/16] virtio-pci: virtio_pci_common_cfg add queue_notify_data

Kangjie Xu posted 16 patches 3 years, 6 months ago
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>
[PATCH 01/16] virtio-pci: virtio_pci_common_cfg add queue_notify_data
Posted by Kangjie Xu 3 years, 6 months ago
From: Xuan Zhuo <xuanzhuo@linux.alibaba.com>

Add queue_notify_data in struct virtio_pci_common_cfg, which comes from
here https://github.com/oasis-tcs/virtio-spec/issues/89

Since I want to add queue_reset after queue_notify_data, I submitted
this patch first.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
---
 include/standard-headers/linux/virtio_pci.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/standard-headers/linux/virtio_pci.h b/include/standard-headers/linux/virtio_pci.h
index db7a8e2fcb..598ebe9825 100644
--- a/include/standard-headers/linux/virtio_pci.h
+++ b/include/standard-headers/linux/virtio_pci.h
@@ -164,6 +164,7 @@ struct virtio_pci_common_cfg {
 	uint32_t queue_avail_hi;		/* read-write */
 	uint32_t queue_used_lo;		/* read-write */
 	uint32_t queue_used_hi;		/* read-write */
+	uint16_t queue_notify_data;	/* read-write */
 };
 
 /* Fields in VIRTIO_PCI_CAP_PCI_CFG: */
@@ -202,6 +203,7 @@ struct virtio_pci_cfg_cap {
 #define VIRTIO_PCI_COMMON_Q_AVAILHI	44
 #define VIRTIO_PCI_COMMON_Q_USEDLO	48
 #define VIRTIO_PCI_COMMON_Q_USEDHI	52
+#define VIRTIO_PCI_COMMON_Q_NOTIFY_DATA	56
 
 #endif /* VIRTIO_PCI_NO_MODERN */
 
-- 
2.32.0
Re: [PATCH 01/16] virtio-pci: virtio_pci_common_cfg add queue_notify_data
Posted by Jason Wang 3 years, 6 months ago
在 2022/7/18 19:16, Kangjie Xu 写道:
> From: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
>
> Add queue_notify_data in struct virtio_pci_common_cfg, which comes from
> here https://github.com/oasis-tcs/virtio-spec/issues/89
>
> Since I want to add queue_reset after queue_notify_data, I submitted
> this patch first.
>
> Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>


This should be done by script/update-linux-headers.sh.

Thanks


> ---
>   include/standard-headers/linux/virtio_pci.h | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/include/standard-headers/linux/virtio_pci.h b/include/standard-headers/linux/virtio_pci.h
> index db7a8e2fcb..598ebe9825 100644
> --- a/include/standard-headers/linux/virtio_pci.h
> +++ b/include/standard-headers/linux/virtio_pci.h
> @@ -164,6 +164,7 @@ struct virtio_pci_common_cfg {
>   	uint32_t queue_avail_hi;		/* read-write */
>   	uint32_t queue_used_lo;		/* read-write */
>   	uint32_t queue_used_hi;		/* read-write */
> +	uint16_t queue_notify_data;	/* read-write */
>   };
>   
>   /* Fields in VIRTIO_PCI_CAP_PCI_CFG: */
> @@ -202,6 +203,7 @@ struct virtio_pci_cfg_cap {
>   #define VIRTIO_PCI_COMMON_Q_AVAILHI	44
>   #define VIRTIO_PCI_COMMON_Q_USEDLO	48
>   #define VIRTIO_PCI_COMMON_Q_USEDHI	52
> +#define VIRTIO_PCI_COMMON_Q_NOTIFY_DATA	56
>   
>   #endif /* VIRTIO_PCI_NO_MODERN */
>   


Re: [PATCH 01/16] virtio-pci: virtio_pci_common_cfg add queue_notify_data
Posted by Kangjie Xu 3 years, 6 months ago
在 2022/7/26 11:17, Jason Wang 写道:
>
> 在 2022/7/18 19:16, Kangjie Xu 写道:
>> From: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
>>
>> Add queue_notify_data in struct virtio_pci_common_cfg, which comes from
>> here https://github.com/oasis-tcs/virtio-spec/issues/89
>>
>> Since I want to add queue_reset after queue_notify_data, I submitted
>> this patch first.
>>
>> Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
>
>
> This should be done by script/update-linux-headers.sh.
>
> Thanks
>
Will fix.

Thanks

>
>> ---
>>   include/standard-headers/linux/virtio_pci.h | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/include/standard-headers/linux/virtio_pci.h 
>> b/include/standard-headers/linux/virtio_pci.h
>> index db7a8e2fcb..598ebe9825 100644
>> --- a/include/standard-headers/linux/virtio_pci.h
>> +++ b/include/standard-headers/linux/virtio_pci.h
>> @@ -164,6 +164,7 @@ struct virtio_pci_common_cfg {
>>       uint32_t queue_avail_hi;        /* read-write */
>>       uint32_t queue_used_lo;        /* read-write */
>>       uint32_t queue_used_hi;        /* read-write */
>> +    uint16_t queue_notify_data;    /* read-write */
>>   };
>>     /* Fields in VIRTIO_PCI_CAP_PCI_CFG: */
>> @@ -202,6 +203,7 @@ struct virtio_pci_cfg_cap {
>>   #define VIRTIO_PCI_COMMON_Q_AVAILHI    44
>>   #define VIRTIO_PCI_COMMON_Q_USEDLO    48
>>   #define VIRTIO_PCI_COMMON_Q_USEDHI    52
>> +#define VIRTIO_PCI_COMMON_Q_NOTIFY_DATA    56
>>     #endif /* VIRTIO_PCI_NO_MODERN */