summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXuan Zhuo <xuanzhuo@linux.alibaba.com>2022-08-01 14:38:49 +0800
committerMichael S. Tsirkin <mst@redhat.com>2022-08-11 04:06:40 -0400
commit0cdd450e70510c9e13af8099e9f6c1467e6a0b91 (patch)
tree8825e3090aeb4a595093fa09f5add4ac47299511 /include
parent4913e85441b40386c4bb093f188b955d8165f1b7 (diff)
downloadlinux-0cdd450e70510c9e13af8099e9f6c1467e6a0b91.tar.gz
linux-0cdd450e70510c9e13af8099e9f6c1467e6a0b91.tar.bz2
linux-0cdd450e70510c9e13af8099e9f6c1467e6a0b91.zip
virtio_pci: struct virtio_pci_common_cfg add queue_reset
Add queue_reset in virtio_pci_modern_common_cfg. https://github.com/oasis-tcs/virtio-spec/issues/124 https://github.com/oasis-tcs/virtio-spec/issues/139 Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20220801063902.129329-30-xuanzhuo@linux.alibaba.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/virtio_pci_modern.h2
-rw-r--r--include/uapi/linux/virtio_pci.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/virtio_pci_modern.h b/include/linux/virtio_pci_modern.h
index 41f5a018bd94..05123b9a606f 100644
--- a/include/linux/virtio_pci_modern.h
+++ b/include/linux/virtio_pci_modern.h
@@ -9,7 +9,7 @@ struct virtio_pci_modern_common_cfg {
struct virtio_pci_common_cfg cfg;
__le16 queue_notify_data; /* read-write */
- __le16 padding;
+ __le16 queue_reset; /* read-write */
};
struct virtio_pci_modern_device {
diff --git a/include/uapi/linux/virtio_pci.h b/include/uapi/linux/virtio_pci.h
index f5981a874481..f703afc7ad31 100644
--- a/include/uapi/linux/virtio_pci.h
+++ b/include/uapi/linux/virtio_pci.h
@@ -203,6 +203,7 @@ struct virtio_pci_cfg_cap {
#define VIRTIO_PCI_COMMON_Q_USEDLO 48
#define VIRTIO_PCI_COMMON_Q_USEDHI 52
#define VIRTIO_PCI_COMMON_Q_NDATA 56
+#define VIRTIO_PCI_COMMON_Q_RESET 58
#endif /* VIRTIO_PCI_NO_MODERN */