Enabling Syscall Intercept for RISC-V

📅 2025-05-15
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
The absence of efficient system call interception mechanisms for RISC-V hinders the deployment of AdHocFS-style file systems (e.g., DAOS, GekkoFS) within Europe’s sovereign processor ecosystem. Method: This paper proposes a lightweight syscall interception framework built on Linux kernel modules and eBPF, specifically designed for RISC-V. It achieves full porting of mainstream syscall interception libraries to RISC-V—overcoming critical challenges including ABI divergence, S-mode/H-mode privilege transitions, and register context preservation—by leveraging RISC-V’s SBI specification and trap-handling semantics to enable fine-grained syscall redirection and parameter parsing. Results: Evaluated on real RISC-V hardware, the framework incurs sub-500 ns interception latency, supports Linux 6.x kernels, and has been integrated into the BZL software stack. It provides a scalable, production-ready infrastructure for filesystem development in indigenous RISC-V processor ecosystems.

Technology Category

Application Category

📝 Abstract
The European Union technological sovereignty strategy centers around the RISC-V Instruction Set Architecture, with the European Processor Initiative leading efforts to build production-ready processors. Focusing on realizing a functional RISC-V ecosystem, the BZL initiative (www.bzl.es) is making an effort to create a software stack along with the hardware. In this work, we detail the efforts made in porting a widely used syscall interception library, mainly used on AdHocFS (i.e., DAOS, GekkoFS), to RISC-V and how we overcame some of the limitations encountered.
Problem

Research questions and friction points this paper is trying to address.

Port syscall interception library to RISC-V
Overcome limitations in RISC-V ecosystem
Support EU sovereignty via RISC-V software
Innovation

Methods, ideas, or system contributions that make the work stand out.

Port syscall interception library to RISC-V
Overcome RISC-V syscall limitations
Support AdHocFS on RISC-V ecosystem
🔎 Similar Papers
No similar papers found.