vdpa: use dev_shared in vdpa_iommu
authorEugenio Pérez <eperezma@redhat.com>
Thu, 21 Dec 2023 17:43:21 +0000 (18:43 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Dec 2023 09:51:07 +0000 (04:51 -0500)
commitb06a38f2b00d9e35cfdea2c6e0a6c6521db67378
tree893c766044c5afa19e9e8ecf50b3e48cc961eb10
parent6f03d9ef8acdcdcfaf7ba42654f36ae3c1f1ddbc
vdpa: use dev_shared in vdpa_iommu

The memory listener functions can call these too.  Make vdpa_iommu work
with VhostVDPAShared.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20231221174322.3130442-13-eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-vdpa.c
include/hw/virtio/vhost-vdpa.h