]> git.proxmox.com Git - mirror_qemu.git/commit
vfio: introduce vfio_get_vaddr()
authorPeter Xu <peterx@redhat.com>
Tue, 7 Feb 2017 08:28:04 +0000 (16:28 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 17 Feb 2017 19:52:31 +0000 (21:52 +0200)
commit4a4b88fbe1a95e80a2e29830e69e1deded407fc1
tree55c80d32ce92256d4e2d62a961d4ff198f327580
parent3213835720f0b79ea60ead8e81f356695a446d1d
vfio: introduce vfio_get_vaddr()

A cleanup for vfio_iommu_map_notify(). Now we will fetch vaddr even if
the operation is unmap, but it won't hurt much.

One thing to mention is that we need the RCU read lock to protect the
whole translation and map/unmap procedure.

Acked-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vfio/common.c