diff options
author | Jean-Philippe Brucker <[email protected]> | 2023-05-15 12:39:50 +0100 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-05-23 08:19:03 +0200 |
commit | 7061b6af34686e7e2364b7240cfb061293218f2d (patch) | |
tree | 958784ddef6d23d8081cfc7d4f9152cfd0011af0 /lib/maple_tree.c | |
parent | 809d0810e3520da669d231303608cdf5fe5c1a70 (diff) |
iommu/virtio: Return size mapped for a detached domain
When map() is called on a detached domain, the domain does not exist in
the device so we do not send a MAP request, but we do update the
internal mapping tree, to be replayed on the next attach. Since this
constitutes a successful iommu_map() call, return *mapped in this case
too.
Fixes: 7e62edd7a33a ("iommu/virtio: Add map/unmap_pages() callbacks implementation")
Signed-off-by: Jean-Philippe Brucker <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/maple_tree.c')
0 files changed, 0 insertions, 0 deletions