]> git.proxmox.com Git - mirror_qemu.git/commit
vdpa: request iova_range only once
authorEugenio Pérez <eperezma@redhat.com>
Thu, 15 Dec 2022 11:31:38 +0000 (12:31 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Dec 2022 11:35:28 +0000 (06:35 -0500)
commita585fad26b2e6ccca156d9e65158ad1c5efd268d
tree0cdb4b6ad02d985a972e356a1dccca203a969e60
parent36e4647247f200b6fa4d2f656133f567036e8a85
vdpa: request iova_range only once

Currently iova range is requested once per queue pair in the case of
net. Reduce the number of ioctls asking it once at initialization and
reusing that value for each vhost_vdpa.

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