Abstract
dc:descriptionModern computer systems rely on hardware/software contracts to divide responsibilities for hardware and software while balancing simplicity, flexibility, efficiency, scalability, and security. Two of these contracts---virtual memory and precise exceptions---are of significant importance for today's systems. Virtual memory decouples virtual address spaces from physical memory, enabling memory management and many other advanced functionalities, whereas precise exceptions offer software clear semantics of sequential execution even with exceptions by exposing the architectural state immediately before the faulting instruction. Unfortunately, modern datacenter workloads increasingly expose limitations of both contracts. The microservices architecture and Function-as-a-Service (FaaS) model break applications into fine-grained components that communicate frequently, rendering operating system (OS) mediation a major source of overhead. High-bandwidth I/O devices generate translation requests at extreme high rates that overwhelm both I/O address translation and software-based I/O translation cache shootdowns. Compute units or accelerators embedded in the cache or memory hierarchy can raise exceptions long after the initiating instruction has retired, making the architectural state difficult to roll back. In this thesis, we redesign virtual memory and precise exceptions for modern datacenter workloads. For virtual memory, we introduce a virtual memory area (VMA)-centric contract built on three mechanisms. First, single-address-space memory isolation places all untrusted software components in a single address space, with hardware-enforced protection domains managed by a privileged library entirely at user level without OS mediation. Second, single-memory-access walks bound each translation walk to exactly one memory access without any indirection enabled by a special VMA organization. Third, hardware-based translation cache coherence leverages the special VMA organization to invalidate stale translations on the CPU side, reusing the existing cache coherence protocol. The coherence maintenance on the I/O side can even be eliminated for the majority of I/O address translations. We implement these mechanisms in Jord and Bifrost as two concrete applications. Jord applies the VMA-centric contract to FaaS to manage thousands of untrusted functions in a single address space, achieving more than twice the throughput of a state-of-the-art baseline while keeping total memory-isolation overhead below 120 ns per function invocation. Bifrost applies single-memory-access walks and coherence elimination to high-bandwidth I/O, sustaining more than 94% of peak throughput at 3200 Gbps under strict security guarantees. For precise exceptions, we specifically address imprecise store exceptions that are raised after the retirement of stores. We introduce faulting store buffer to hold faulting stores---i.e., stores that generate these exceptions---and supply them to the OS to be handled asynchronously, and formally prove that the contract satisfies the underlying memory consistency model. Our FPGA prototype passes all evaluated RISC-V litmus tests without producing any forbidden executions and preserves over 96% of baseline performance on real workloads while adding less than 0.5% per-core silicon area. Overall, this thesis demonstrates that hardware/software contracts should preserve essential software-visible semantics rather than historical implementation choice,
Degree
thesis:*- Grantor dc:publisher
- EPFL
- Year dc:date
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Li, Yuanlong
- Contributors dc:contributor
-
- Falsafi, Babak
Subjects
dc:subject × 8Rights
- Language dc:language
- eng