通过基于WebAssembly的功能扩展(含驱动程序)延长嵌入式系统寿命
Extending Lifetime of Embedded Systems by WebAssembly-based Functional Extensions Including Drivers
AI总结:
本文提出Wasm-IO框架,通过在WebAssembly容器中实现外设I/O操作、任意设备驱动程序开发及带时间隔离的中断处理,以延长工业自动化嵌入式系统寿命并降低延迟与开销。
摘要:
容器化已成为软件开发中无处不在的工具。由于其众多优势,包括平台互操作性和对不受信任的第三方代码的安全执行,该技术对工业自动化而言是一大福音,有望为其固有挑战提供帮助——但有一个例外,即与物理设备的交互。不幸的是,这构成了广泛采用的一个重大障碍。针对这一挑战,我们提出了Wasm-IO,这是一个旨在促进WebAssembly(Wasm)容器内进行外设I/O操作的框架。我们阐明了能够在Wasm中开发任意设备驱动程序的基本方法和多种实现方式。由此,我们满足了工业自动化领域的需求,在该领域中,延长的设备寿命加上不断变化的监管要求和市场压力,从根本上与供应商在部署后系统修改以纳入新的、隔离的驱动程序方面的责任关切形成对比。在本文中,我们详细介绍了同步I/O以及将平台无关的外设配置嵌入Wasm二进制文件的方法。我们引入了一种扩展的优先级模型,该模型能够在Wasm中实现中断处理,同时保持时间隔离。我们的评估表明,我们提出的Wasm隔离可以显著降低延迟和开销。我们的驱动程序案例研究结果也证实了这一点。最后,我们讨论了利用Wasm-IO的总体系统设计,包括调度方法。
英文摘要:
Containerization has become a ubiquitous tool in software development. Due to its numerous benefits, including platform interoperability and secure execution of untrusted third-party code, this technology is a boon to industrial automation, promising to provide aid for their inherent challenges - except one, which is interaction with physical devices. Unfortunately, this presents a substantial barrier to widespread adoption. In response to this challenge, we present Wasm-IO, a framework designed to facilitate peripheral I/O operations within WebAssembly (Wasm) containers. We elucidate fundamental methodologies and various implementations that enable the development of arbitrary device drivers in Wasm. Thereby, we address the needs of the industrial automation sector, where a prolonged device lifetime combined with changing regulatory requirements and market pressure fundamentally contrasts vendors' responsibility concerns regarding post-deployment system modifications to incorporate new, isolated drivers. In this paper, we detail synchronous I/O and methods for embedding platform-independent peripheral configurations withinWasm binaries.We introduce an extended priority model that enables interrupt handling in Wasm while maintaining temporal isolation. Our evaluation shows that our proposed Wasm isolation can significantly reduce latency and overhead. The results of our driver case study corroborate this. We conclude by discussing overarching system designs that leverage Wasm-IO, including scheduling methodologies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。