vdpa: set dma mask for vDPA device
authorJason Wang <jasowang@redhat.com>
Thu, 19 Jan 2023 06:15:24 +0000 (14:15 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:58 +0000 (19:26 -0500)
commit99fb2b838f446a2178dec07507c457c0f1cff5ea
tree886f155ec531bae8a6039b8b1dfdf04b02daffd9
parenta1baedb11ed4008035cf72777a6cb572fc26184f
vdpa: set dma mask for vDPA device

Setting DMA mask for vDPA device in case that there are virtqueue that
is not backed by DMA so the vDPA device could be advertised as the DMA
device that is used by DMA API for software emulated virtqueues.

Reviewed-by: Eli Cohen <elic@nvidia.com>
Tested-by: Eli Cohen <elic@nvidia.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230119061525.75068-5-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa.c