]> git.proxmox.com Git - mirror_qemu.git/commit - net/vhost-vdpa.c
vdpa: add asid parameter to vhost_vdpa_dma_map/unmap
authorEugenio Pérez <eperezma@redhat.com>
Thu, 15 Dec 2022 11:31:41 +0000 (12:31 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Dec 2022 11:35:28 +0000 (06:35 -0500)
commitcd831ed5c4add8ed6ee980c3645b241cbef5130f
treeb189bf7ae7a4d56efba5d0b1b4eb1530617a06cb
parent273e0003f0005cc17292dedae01e5edb0064b69c
vdpa: add asid parameter to vhost_vdpa_dma_map/unmap

So the caller can choose which ASID is destined.

No need to update the batch functions as they will always be called from
memory listener updates at the moment. Memory listener updates will
always update ASID 0, as it's the passthrough ASID.

All vhost devices's ASID are 0 at this moment.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221215113144.322011-10-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/trace-events
hw/virtio/vhost-vdpa.c
include/hw/virtio/vhost-vdpa.h
net/vhost-vdpa.c