virtio_pci_modern: introduce helper to map vq notify area
authorJason Wang <jasowang@redhat.com>
Thu, 15 Apr 2021 07:31:41 +0000 (03:31 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:51 +0000 (04:55 -0400)
commit9e3bb9b79a7131a088cfffbdcc30e747dad9d090
tree00ba646956553de932547a6d7f698012ac8ed00a
parent122b84a1267aec28ab929edae1ac700a03fb65e0
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>
drivers/virtio/virtio_pci_modern_dev.c
include/linux/virtio_pci_modern.h