virtio_pci: move structure to a header
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 31 Oct 2023 16:02:06 +0000 (12:02 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Nov 2023 13:31:16 +0000 (09:31 -0400)
commit3503895788d402d6a3814085ed582c364ec3e903
tree7924cd651500b6a72ceca421d9fb2f025e43885e
parent86f6c224c97911b4392cb7b402e6a4ed323a449e
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>
drivers/virtio/virtio_pci_modern_dev.c
include/linux/virtio_pci_modern.h
include/uapi/linux/virtio_pci.h