Method, system, device and medium for establishing shared memory between virtual machines

By coordinating between the initiating client and the receiving client under the virtualization platform, shared memory between virtual machines is dynamically established, which solves the problem of inflexible use of shared memory in the existing technology and realizes the flexibility of adding shared memory after running.

CN120540876BActive Publication Date: 2025-10-03CHONGQING CHANGAN AUTOMOBILE CO LTD
2 Cites 0 Cited by

Patent Information

Application Number
CN202511037597.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2025-10-03
Estimated Expiration
2045-07-28

AI Technical Summary

Technical Problem

In the prior art, the strategy for sharing memory between virtual machines stipulates the shared memory before the guest operating system runs, resulting in inflexible use of the shared memory and inability to add shared memory after the guest operating system runs normally.

Method used

The initiating client sends a memory message to the receiving client. The virtualization platform saves the client physical address of the initiating client and suspends operation to establish the second-stage address table when all physical cores of the receiving client share the same second-stage address table. After resuming operation, the establishment of the first-stage address table is completed to realize shared memory between virtual machines.

Benefits of technology

The shared memory can be dynamically established after both client operating systems are running, making the establishment of the shared memory more flexible.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present application provides a method, system, device, and medium for establishing shared memory between virtual machines, relating to the field of memory sharing technology. The method includes: upon successfully establishing a two-stage address table of an initiating client, sending a memory message to a receiving client and saving its own client physical address to a virtualization platform; in response to the message, initiating a first request to the virtualization platform; in response to the first request, controlling the receiving client to suspend operation and establish a second-stage address table for each physical core on the receiving client based on the client's physical address, if the second-stage address table of each physical core is stored in the same physical space; upon completion of the establishment, controlling the receiving client to resume operation and sending a completion message to the receiving client; in response to the completion message, invoking a corresponding mapping interface to complete the establishment of its own first-stage address table, thereby achieving shared memory establishment. The purpose is to enhance the flexibility of shared memory establishment.
Need to check novelty before this filing date? Find Prior Art