arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.05732cs.OS
收藏

CAP-VM:基于能力的微服务隔离和共享

CAP-VMs: Capability-Based Isolation and Sharing for Microservices

Vasily A. Sartakov, Lluís Vilanova, David Eyers, Takahiro Shinagawa, Peter Pietzuch

摘要:

云堆栈必须隔离应用程序组件,同时允许部署在同一物理主机上的组件之间进行高效的数据共享。传统上,MMU强制隔离并允许以页面粒度共享。然而,MMU方法导致在内核空间中具有大TCB的云堆栈,并且页面粒度需要低效的OS接口来进行数据共享。即将推出的具有内存功能硬件支持的CPU为以更细的粒度实现隔离和共享提供了新的机会。我们描述cVM,一个新的虚拟机一样的抽象,使用内存功能,以隔离应用程序组件,同时支持高效的数据共享,所有不强制应用程序代码的能力是感知的。CVM安全地共享单个虚拟地址空间,每个虚拟地址空间仅具有访问其自身内存的能力。CVM可以包括库OS,从而最小化其对云环境的依赖性。cVM通过由小型可信监视器辅助的两个基于能力的原语有效地交换数据:(i)到cVM之间共享的缓冲区的异步读写接口;以及(ii)在cVM之间转移控制的调用接口。使用这两个原语,我们建立更高效的跨CVM通信的表达机制。我们使用CHERI RISC-V功能的原型实现表明,cVM以较低的开销隔离服务(Redis和Python),同时改善数据共享。

英文摘要:

Cloud stacks must isolate application components, while permitting efficient data sharing between components deployed on the same physical host. Traditionally, the MMU enforces isolation and permits sharing at page granularity. MMU approaches, however, lead to cloud stacks with large TCBs in kernel space, and page granularity requires inefficient OS interfaces for data sharing. Forthcoming CPUs with hardware support for memory capabilities offer new opportunities to implement isolation and sharing at a finer granularity. We describe cVMs, a new VM-like abstraction that uses memory capabilities to isolate application components while supporting efficient data sharing, all without mandating application code to be capability-aware. cVMs share a single virtual address space safely, each having only capabilities to access its own memory. A cVM may include a library OS, thus minimizing its dependency on the cloud environment. cVMs efficiently exchange data through two capability-based primitives assisted by a small trusted monitor: (i) an asynchronous read-write interface to buffers shared between cVMs; and (ii) a call interface to transfer control between cVMs. Using these two primitives, we build more expressive mechanisms for efficient cross-cVM communication. Our prototype implementation using CHERI RISC-V capabilities shows that cVMs isolate services (Redis and Python) with low overhead while improving data sharing.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑