Home
last modified time | relevance | path

Searched refs:granule (Results 1 – 8 of 8) sorted by relevance

/qemu/hw/arm/
H A Dsmmu-common.c143 uint8_t tg = (new->granule - 10) / 2; in smmu_iotlb_insert()
253 uint8_t granule = tg ? tg * 2 + 10 : 12; in smmu_iotlb_inv_iova() local
270 .mask = (num_pages * 1 << granule) - 1}; in smmu_iotlb_inv_iova()
284 uint8_t granule = tg ? tg * 2 + 10 : 12; in smmu_iotlb_inv_ipa() local
298 .mask = (num_pages << granule) - 1}; in smmu_iotlb_inv_ipa()
561 tlbe->granule = granule_sz; in smmu_ptw_64_s1()
683 tlbe->granule = granule_sz; in smmu_ptw_64_s2()
705 tlbe->granule = tlbe_s2->granule; in combine_tlb()
H A Dsmmuv3.c1151 uint8_t granule; in smmuv3_notify_iova() local
1184 granule = tt->granule_sz; in smmuv3_notify_iova()
1186 granule = cfg->s2cfg.granule_sz; in smmuv3_notify_iova()
1190 granule = tg * 2 + 10; in smmuv3_notify_iova()
1196 event.entry.addr_mask = num_pages * (1 << granule) - 1; in smmuv3_notify_iova()
1233 uint8_t granule; in smmuv3_range_inval() local
1260 granule = tg * 2 + 10; in smmuv3_range_inval()
1263 end = addr + (num_pages << granule) - 1; in smmuv3_range_inval()
1268 num_pages = (mask + 1) >> granule; in smmuv3_range_inval()
/qemu/docs/system/arm/
H A Demulation.rst73 - FEAT_GTG (Guest translation granule size)
145 - FEAT_TGran16K (Support for 16KB memory translation granule size at stage 1)
146 - FEAT_TGran4K (Support for 4KB memory translation granule size at stage 1)
147 - FEAT_TGran64K (Support for 64KB memory translation granule size at stage 1)
/qemu/qapi/
H A Dvirtio.json981 # @4k: granule page size of 4KiB
983 # @8k: granule page size of 8KiB
985 # @16k: granule page size of 16KiB
987 # @64k: granule page size of 64KiB
989 # @host: granule matches the host page size
/qemu/hw/virtio/
H A Dvirtio-iommu.c1150 int granule; in virtio_iommu_translate() local
1156 granule = ctz64(s->config.page_size_mask); in virtio_iommu_translate()
1162 .addr_mask = BIT_ULL(granule) - 1, in virtio_iommu_translate()
1403 int granule; in virtio_iommu_freeze_granule() local
1406 granule = ctz64(s->config.page_size_mask); in virtio_iommu_freeze_granule()
1407 trace_virtio_iommu_freeze_granule(BIT_ULL(granule)); in virtio_iommu_freeze_granule()
H A Dtrace-events139 virtio_iommu_freeze_granule(uint64_t page_size_mask) "granule set to 0x%"PRIx64
/qemu/include/hw/arm/
H A Dsmmu-common.h80 uint8_t granule; member
/qemu/
H A Dqemu-options.hx1222 ``granule=val`` (possible values are 4k, 8k, 16k, 64k and host; default: host)
1223 This decides the default granule to be be exposed by the
1224 virtio-iommu. If host, the granule matches the host page size.