[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/16] virtio-pci: virtio_pci_common_cfg add queue_notify_data
From: |
Kangjie Xu |
Subject: |
[PATCH 01/16] virtio-pci: virtio_pci_common_cfg add queue_notify_data |
Date: |
Mon, 18 Jul 2022 19:16:58 +0800 |
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 07/16] virtio-net: support queue reset, (continued)
[PATCH 10/16] vhost: extract the logic of unmapping the vrings and desc, Kangjie Xu, 2022/07/18
[PATCH 16/16] vhost-net: vq reset feature bit support, Kangjie Xu, 2022/07/18
[PATCH 01/16] virtio-pci: virtio_pci_common_cfg add queue_notify_data,
Kangjie Xu <=
[PATCH 05/16] virtio: introduce virtio_queue_reset(), Kangjie Xu, 2022/07/18
[PATCH 11/16] vhost: introduce restart and release for vhost_dev's vqs, Kangjie Xu, 2022/07/18
[PATCH 13/16] virtio: introduce queue_enable in virtio, Kangjie Xu, 2022/07/18