diff options
author | Jason Wang <jasowang@redhat.com> | 2021-04-15 03:31:41 -0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-05-03 04:55:51 -0400 |
commit | 9e3bb9b79a7131a088cfffbdcc30e747dad9d090 (patch) | |
tree | 00ba646956553de932547a6d7f698012ac8ed00a /include/linux | |
parent | 122b84a1267aec28ab929edae1ac700a03fb65e0 (diff) | |
download | linux-stable-9e3bb9b79a7131a088cfffbdcc30e747dad9d090.tar.gz linux-stable-9e3bb9b79a7131a088cfffbdcc30e747dad9d090.tar.bz2 linux-stable-9e3bb9b79a7131a088cfffbdcc30e747dad9d090.zip |
virtio_pci_modern: introduce helper to map vq notify area
This patch factors out the logic of vq notify area mapping. Following
patches will switch to use this common helpers for both virtio_pci
library and virtio-pci vDPA driver.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210415073147.19331-2-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/virtio_pci_modern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/virtio_pci_modern.h b/include/linux/virtio_pci_modern.h index f26acbeec965..1b95d39b00fc 100644 --- a/include/linux/virtio_pci_modern.h +++ b/include/linux/virtio_pci_modern.h @@ -106,6 +106,8 @@ void __iomem *vp_modern_map_capability(struct virtio_pci_modern_device *mdev, in u32 align, u32 start, u32 size, size_t *len); +void *vp_modern_map_vq_notify(struct virtio_pci_modern_device *mdev, + u16 index); int vp_modern_probe(struct virtio_pci_modern_device *mdev); void vp_modern_remove(struct virtio_pci_modern_device *mdev); #endif |