Skip to content

Commit

Permalink
virtio_pci: struct virtio_pci_common_cfg add queue_reset
Browse files Browse the repository at this point in the history
mainline inclusion
from mainline-v6.0-rc1
commit 0cdd450
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5WXCZ
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0cdd450e70510c9e13af8099e9f6c1467e6a0b91

----------------------------------------------------------------------

Add queue_reset in virtio_pci_modern_common_cfg.

 oasis-tcs/virtio-spec#124
 oasis-tcs/virtio-spec#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>
Signed-off-by: Pengyuan Zhao <zhaopengyuan@hisilicon.com>
  • Loading branch information
fengidri authored and Pengyuan Zhao committed Dec 13, 2022
1 parent 0219926 commit 0a3d24b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/virtio_pci_modern.h
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions include/uapi/linux/virtio_pci.h
Expand Up @@ -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 */

Expand Down

0 comments on commit 0a3d24b

Please sign in to comment.