vp_vdpa: report doorbell address
authorJason Wang <jasowang@redhat.com>
Thu, 15 Apr 2021 07:31:47 +0000 (03:31 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:52 +0000 (04:55 -0400)
commit526cb8580bc6b9e5bc14cc5d24ecf4633a84cfa1
treeff42d2efe41caf03d9accee35cdb630b4efc1995
parent9e311bcad73dc14bd0a736db6ad3d382227e11fe
vp_vdpa: report doorbell address

This patch reports the per vq doorbell location and size to vDPA
bus. Userspace can then map the doorbell via mmap() via vhost-vDPA bus
driver.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210415073147.19331-8-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
drivers/vdpa/virtio_pci/vp_vdpa.c