Simulating CXL Shared Coherent Memory Using Shared Memory Among Virtual Machines
Compute Express Link (CXL) has emerged as a promising interconnect standard for connecting CPU, memory, and devices with coherent cache memory access. A key feature in CXL 3.0 is the ability to enable shared coherent memory among across hosts, which enables multiple systems to share data structures, perform synchronization, or pass messages using low-latency load-store semantics. However, CXL 3.0 has just been announced and lacks real-world realization. This paper explores a simulation method of the CXL shared coherent memory by using the shared memory among co-resident virtual machines, which aims to provide insights into the potential performance characteristics. First, we present the simulation method for shared coherent memory by mapping the physical address spaces of different virtual machines to the same host physical address space, achieved by modifying the address translation in the page fault handler of the extended page table in the KVM module. Next, we analyze the synchronization mechanisms required for shared coherent memory in kernel space and user space and introduce shared memory spinlocks and semaphores to enable efficient data access. We implement shared coherent memory in the Linux kernel. Experimental results show that sharing data through the shared coherent memory mechanism is 62.9x faster than the traditional virtual network.
Authors
- Weichen Liu (ORCID: https://orcid.org/0000-0001-9348-4662)
- Ting Wu (ORCID: https://orcid.org/0000-0002-2574-9451)
- Zhulin Ma (ORCID: https://orcid.org/0000-0003-3439-3570)
- Linbo Long (ORCID: https://orcid.org/0000-0003-1966-0714)
- Hang Tian
- Qiushuang Yu
Institutions
- Chongqing University of Posts and Telecommunications (CN)
- Nanyang Technological University (SG)
Publication Details
- Published
- 2025-05-09
- DOI
- https://doi.org/10.1109/iseda65950.2025.11100479
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Ministry of Education
- Chongqing Municipal Education Commission