Abstract
Modern field programmable gate arrays (FPGAs) can produce high performance in a wide range of applications, and their computational capacity is becoming abundant in personal computers. Regardless of this fact, FPGA virtualization is an emerging research field. Nowadays, challenges of the research area come from not only technical difficulties but also from the ambiguous standards of virtualization. In this paper, we introduce novel criteria of FPGA virtualization and discuss several approaches to accomplish those criteria. In addition, we present and describe in detail the specific FPGA virtualization architecture that we developed on Intel Arria 10 FPGA. We evaluate our solution with a combination of applications and microbenchmarks. The result shows that our virtualization solution can provide a full abstraction of FPGA device in both user and developer perspective while maintaining a reasonable performance compared to native FPGA.
Introduction: The Challenges of FPGA Virtualization
While virtualization for CPUs and memory is a mature technology, FPGAs remain difficult to virtualize due to their unique architectural characteristics. The authors identify three inherent "natures" of FPGAs that complicate this process:
- Heterogeneity: FPGAs consist of a complex mix of look-up tables (LUTs), DSPs, and memory blocks. Emulating this diverse hardware in software is computationally prohibitive.
- Irregularity: Unlike CPUs that execute instructions sequentially in time, FPGAs execute logic in space across parallel hardware primitives.
- Infidelity: Hardware designs are compiled into "bitfiles" that are often tied to specific physical regions or chip models, making them difficult to migrate between virtual instances.
Beyond these technical hurdles, the research field lacks standardized criteria. This paper proposes five key pillars for FPGA virtualization: Performance, Fidelity, Multiplexing, Isolation, and Interposition.
Methodology: Hybrid Virtualization
To address these challenges, the authors propose a Hybrid Virtualization approach. This strategy combines Front-End Virtualization (FEV) and Back-End Virtualization (BEV) to balance security and performance.
- Front-End Virtualization (FEV): This layer intercepts high-level API calls. It is used for security-sensitive operations such as memory allocation, DMA management, and device reconfiguration.
- Back-End Virtualization (BEV): This provides direct or mediated access to the hardware. In this architecture, each Virtual Machine (VM) is assigned its own Partial Reconfiguration Region (PRR) on the physical FPGA.
System Architecture
The implementation utilizes an Intel Arria 10 FPGA. The "shell" (the static portion of the FPGA logic) was customized to support multiple PRRs. A custom interrupt (IRQ) handler multiplexes signals, while a PRR controller "freezes" interfaces during reconfiguration to prevent transient signals from affecting other virtual instances.
On the software side, the system maintains the standard Intel OpenCL stack but modifies the Memory Mapped Device (MMD) library. A Virtual Machine Monitor (VMM) acts as a broker, verifying that user bitfiles are compiled for their specific assigned regions and managing a software-based Memory Management Unit (MMU) that partitions the FPGA’s DRAM into isolated 1MB segments.
Evaluation and Results
The platform was evaluated using three computational kernels: Matrix Multiplication (computational throughput), Sobel Filter (image processing), and Vector Addition (data movement overhead).
The system successfully provides a full abstraction, giving each VM the illusion of a private physical FPGA. However, a performance trade-off exists. The virtualized FPGA (vFPGA) is consistently slower than native execution. Analysis of the Vector Addition benchmark revealed that 55% of total execution time was consumed by software orchestration and hypervisor communication rather than hardware execution. This suggests that current FPGA virtualization is most effective for long-running, compute-intensive tasks where setup overhead is amortized.
Discussion and Future Work
A primary goal of this architecture is preserving the "Developer Perspective." By allowing developers to use standard OpenCL toolchains and scripts, the system maintains the existing ecosystem. Security is enforced via bitfile inspection by the VMM to ensure users do not attempt to overwrite unauthorized regions.
Future improvements will focus on reducing the 55% software overhead through "VM-nocopy" mechanisms to streamline data transfers. Additionally, the authors plan to implement dedicated hardware modules for stricter memory boundary enforcement and integrate the prototype into mainstream hypervisors like KVM or OpenStack.
Summary updated