diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2023-05-15 12:39:50 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-05-23 08:19:03 +0200 |
commit | 7061b6af34686e7e2364b7240cfb061293218f2d (patch) | |
tree | 958784ddef6d23d8081cfc7d4f9152cfd0011af0 /scripts/gdb/linux/modules.py | |
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 <jean-philippe@linaro.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230515113946.1017624-3-jean-philippe@linaro.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions