diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2023-10-31 19:02:06 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2023-11-01 16:31:16 +0300 |
commit | 3503895788d402d6a3814085ed582c364ec3e903 (patch) | |
tree | 7924cd651500b6a72ceca421d9fb2f025e43885e /include/linux/virtio_pci_modern.h | |
parent | 86f6c224c97911b4392cb7b402e6a4ed323a449e (diff) | |
download | linux-3503895788d402d6a3814085ed582c364ec3e903.tar.xz |
virtio_pci: move structure to a header
These are guest/host interfaces, so they belong in the header where e.g.
qemu will know to find them.
Note: we added a new structure as opposed to extending existing one
because someone might be relying on the size of the existing structure
staying unchanged. Add a warning to avoid using sizeof.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Diffstat (limited to 'include/linux/virtio_pci_modern.h')
-rw-r--r-- | include/linux/virtio_pci_modern.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/virtio_pci_modern.h b/include/linux/virtio_pci_modern.h index d0f2797420f7..a09e13a577a9 100644 --- a/include/linux/virtio_pci_modern.h +++ b/include/linux/virtio_pci_modern.h @@ -5,13 +5,6 @@ #include <linux/pci.h> #include <linux/virtio_pci.h> -struct virtio_pci_modern_common_cfg { - struct virtio_pci_common_cfg cfg; - - __le16 queue_notify_data; /* read-write */ - __le16 queue_reset; /* read-write */ -}; - /** * struct virtio_pci_modern_device - info for modern PCI virtio * @pci_dev: Ptr to the PCI device struct |