Skip to content
  • Eric Auger's avatar
    9e54dee7
    hw/arm/smmu-common: Manage IOTLB block entries · 9e54dee7
    Eric Auger authored
    
    
    At the moment each entry in the IOTLB corresponds to a page sized
    mapping (4K, 16K or 64K), even if the page belongs to a mapped
    block. In case of block mapping this unefficiently consumes IOTLB
    entries.
    
    Change the value of the entry so that it reflects the actual
    mapping it belongs to (block or page start address and size).
    
    Also the level/tg of the entry is encoded in the key. In subsequent
    patches we will enable range invalidation. This latter is able
    to provide the level/tg of the entry.
    
    Encoding the level/tg directly in the key will allow to invalidate
    using g_hash_table_remove() when num_pages equals to 1.
    
    Signed-off-by: default avatarEric Auger <eric.auger@redhat.com>
    Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Message-id: 20200728150815.11446-6-eric.auger@redhat.com
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    9e54dee7
    hw/arm/smmu-common: Manage IOTLB block entries
    Eric Auger authored
    
    
    At the moment each entry in the IOTLB corresponds to a page sized
    mapping (4K, 16K or 64K), even if the page belongs to a mapped
    block. In case of block mapping this unefficiently consumes IOTLB
    entries.
    
    Change the value of the entry so that it reflects the actual
    mapping it belongs to (block or page start address and size).
    
    Also the level/tg of the entry is encoded in the key. In subsequent
    patches we will enable range invalidation. This latter is able
    to provide the level/tg of the entry.
    
    Encoding the level/tg directly in the key will allow to invalidate
    using g_hash_table_remove() when num_pages equals to 1.
    
    Signed-off-by: default avatarEric Auger <eric.auger@redhat.com>
    Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Message-id: 20200728150815.11446-6-eric.auger@redhat.com
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Loading