ARMv8环境中虚拟地址远程DMA的IOMMU支持
IOMMU Support for Virtual-Address Remote DMA in an ARMv8 environment
AI总结:
本研究通过ARMv8环境中的IOMMU支持实现了虚拟地址远程DMA的高效管理,验证了SMMU在多节点系统中的正确性。
摘要:
在包含多个CPU的复杂系统中,维护节点间的高效和正确一致性是一个关键挑战。Unimem系统通过提出一个虚拟化的全局地址空间来解决这一问题,依赖于每个节点中的I/O内存管理单元(IOMMU)。本论文的目标是通过成功测试和使用单个节点的IOMMU来支持这一方法。为此,我们使用了ARM的IOMMU,即系统内存管理单元(SMMU),它将虚拟地址转换为物理地址。由于Linux对SMMU的文档有限且不明确,我们实现了自定义内核模块来测试和使用其功能。首先,我们在Xilinx Zynq UltraScale+ MPSoC的处理系统(PS)中测试了SMMU,开发了一个模块将虚拟到物理地址映射插入到SMMU中。然后,我们触发了从虚拟地址到的DMA传输,并观察到请求通过SMMU进行地址转换。我们重复了这一实验,从可编程逻辑(PL)发起DMA事务,并同样确认了事务被SMMU转换。最后,我们开发了一个模块,允许PL发起事务而无需显式预映射虚拟和物理地址对。这通过将SMMU配置为用户进程的页面表指针实现,使其能够动态翻译所有相关虚拟地址。总体而言,我们成功展示了SMMU在所有测试场景中的正确操作。由于时间限制,进一步探索高级SMMU功能的工作留待未来。
英文摘要:
In complex systems with many compute nodes containing multiple CPUs that are coherent within each node, a key challenge is maintaining efficient and correct coherence between nodes. The Unimem system addresses this by proposing a virtualized global address space that enables such coherence, relying on the I/O Memory Management Unit (IOMMU) in each node. The goal of this thesis is to support this approach by successfully testing and using the IOMMU of a single node. For this purpose, we used ARM's IOMMU, known as the System Memory Management Unit (SMMU), which translates virtual addresses to physical addresses. Because Linux documentation for the SMMU is limited and unclear, we implemented custom kernel modules to test and use its functionality. First, we tested the SMMU in the Processing System (PS) of the Xilinx Zynq UltraScale+ MPSoC by developing a module that inserted virtual-to-physical address mappings into the SMMU. We then triggered a DMA transfer to a virtual address and observed that the request passed through the SMMU for address translation. We repeated this experiment by initiating DMA transactions from the Programmable Logic (PL) and similarly confirmed that the transactions were translated by the SMMU. Finally, we developed a module that enables transactions from the PL without requiring explicit pre-mapping of virtual and physical address pairs. This was achieved by configuring the SMMU with the page table pointer of a user process, allowing it to translate all relevant virtual addresses dynamically. Overall, we successfully demonstrated the correct operation of the SMMU across all tested scenarios. Due to time constraints, further exploration of advanced SMMU features is left for future work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。