diff options
author | Eric Auger | 2021-03-09 11:27:38 +0100 |
---|---|---|
committer | Peter Maydell | 2021-03-12 13:40:10 +0100 |
commit | dde3f08b5cab24e570fc0ccbbbab86b6b50aad23 (patch) | |
tree | 72fca0e7a8992d390e867594cbfcf953d15b7e92 /hw/arm/smmu-common.c | |
parent | dma: Introduce dma_aligned_pow2_mask() (diff) | |
download | qemu-dde3f08b5cab24e570fc0ccbbbab86b6b50aad23.tar.gz qemu-dde3f08b5cab24e570fc0ccbbbab86b6b50aad23.tar.xz qemu-dde3f08b5cab24e570fc0ccbbbab86b6b50aad23.zip |
virtio-iommu: Handle non power of 2 range invalidations
Unmap notifiers work with an address mask assuming an
invalidation range of a power of 2. Nothing mandates this
in the VIRTIO-IOMMU spec.
So in case the range is not a power of 2, split it into
several invalidations.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-id: 20210309102742.30442-4-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/smmu-common.c')
0 files changed, 0 insertions, 0 deletions