AgileOS: 用于受保护CUDA服务的GPU操作系统层
AgileOS: A GPU Operating System Layer for Protected CUDA Services
AI总结:
针对GPU服务缺乏操作系统级保护的问题,提出AgileOS,通过库边界虚拟化CUDA、GPU内存管理和PTX注入实现服务隔离与保护。
摘要:
现代GPU应用程序越来越多地与存储系统、网络设备、供应商库和GPU驻留服务交互,而不仅仅是执行隔离的计算内核。这种转变使得GPU服务需要类似操作系统的保护,其中服务元数据、设备队列、内存映射I/O区域和库内部状态不应直接暴露给不可信的应用程序内核。然而,今天的CUDA编程模型默认情况下仍然让每个应用程序直接拥有其CUDA上下文、设备指针、运行时句柄、模块加载路径和内核启动,使得受保护的GPU服务必须构建自己的临时接口和隔离机制。本文介绍了AgileOS的初始设计和原型范围,AgileOS是一个用于受保护CUDA服务的GPU操作系统层。AgileOS在库边界虚拟化CUDA:应用程序链接客户端CUDA运行时、驱动程序和选定的库垫片,而受信任的运行时工作者拥有真实的CUDA上下文并调解支持的操作。为了保护服务状态和模块接口,AgileOS还定义了一个GPU内存管理模型,将用户分配与受保护的模块/MMIO范围分离,通过PTX注入使用指针验证和内存访问保护。AgileOS是模块化和灵活的,支持一系列受保护的服务和现有库,如cuFFT和PyTorch。原型包括客户端拦截器、工作者端CUDA处理程序、虚拟化CUDA对象表、受保护的AgileOS模块、将用户分配与受保护的模块/MMIO范围分离的GPU内存管理器、选定的受信任库适配器以及PTX级内核内存保护。
英文摘要:
Modern GPU applications increasingly interact with storage systems, network devices, vendor libraries, and GPU-resident services rather than executing only isolated compute kernels. This shift creates a need for operating-system-like protection around GPU services, where service metadata, device queues, memory-mapped I/O regions, and library-internal state should not be directly exposed to untrusted application kernels. However, today's CUDA programming model, by default, still gives each application direct ownership of its CUDA context, device pointers, runtime handles, module loading path, and kernel launches, leaving protected GPU services to build their own ad hoc interfaces and isolation mechanisms. This paper presents the initial design and prototype scope of AgileOS, a GPU operating-system layer for protected CUDA services. AgileOS virtualizes CUDA at the library boundary: applications link against client-side CUDA Runtime, Driver, and selected library shims, while a trusted runtime worker owns the real CUDA context and mediates supported operations. To protect service state and module interfaces, AgileOS also defines a GPU memory-management model that separates user allocations from protected module/MMIO ranges, using pointer validation and memory access guards via PTX injection. AgileOS is modularized and flexible, supporting a range of protected services and existing libraries such as cuFFT and PyTorch. The prototype includes client-side interceptors, worker-side CUDA handlers, virtualized CUDA object tables, protected AgileOS modules, a GPU memory manager that separates user allocations from protected module/MMIO ranges, selected trusted library adapters, and the PTX-level kernel memory guard.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。