virtio-pci-modern: introduce helper to get notification offset
authorJason Wang <jasowang@redhat.com>
Mon, 4 Jan 2021 06:54:58 +0000 (14:54 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2021 12:52:58 +0000 (07:52 -0500)
commit1bfd84134c885799b8ac94766bff600b1f963ecf
treeb49ab4ace1ef27cc41152844ef7f13ad74375f8c
parent6e52fc446d32a82936f05106ffeef5cf8529e6c4
virtio-pci-modern: introduce helper to get notification offset

This patch introduces help to get notification offset of modern device.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210104065503.199631-15-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_modern.c