hw/arm/smmu-common: Fix smmu_iotlb_inv_iova when asid is not set
commita4b6e1be2c8fd60381feb00f06cf3b6373bbbf07
authorEric Auger <eric.auger@redhat.com>
Tue, 9 Mar 2021 10:27:39 +0000 (9 11:27 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Mar 2021 12:40:10 +0000 (12 12:40 +0000)
treedaf51f4a62a539130f88852a58f408ce6f15939b
parentdde3f08b5cab24e570fc0ccbbbab86b6b50aad23
hw/arm/smmu-common: Fix smmu_iotlb_inv_iova when asid is not set

If the asid is not set, do not attempt to locate the key directly
as all inserted keys have a valid asid.

Use g_hash_table_foreach_remove instead.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-id: 20210309102742.30442-5-eric.auger@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmu-common.c