Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Memory sharing method and device, electronic equipment and storage medium

A memory sharing and memory technology, applied in the computer field, can solve problems such as security risks

Pending Publication Date: 2020-10-23
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF10 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Memory can be shared between the virtual machine and the host, and between virtual machines. However, when the memory is shared between the virtual machine and the host, any application process may access the shared memory between the virtual machine and the host, so there is security. risk

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory sharing method and device, electronic equipment and storage medium
  • Memory sharing method and device, electronic equipment and storage medium
  • Memory sharing method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0023] At present, memory sharing across virtual machine domains and host domains is generally system-level memory sharing. For example, the memory of the host is directly shared to the kernel state of the virtual machine. This system-level sharing makes any process on the host side, virtual machine Any process on the side may access the part of the memory shared by the host, so the current cross-domain shared memory method has too large a sharing granularity, which poses a security risk.

[0024] Based on the above problems, the embodiment of the present application provides a memory sharing method, device, electronic device and computer-readable storage medium. The inf...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a memory sharing method and device, electronic equipment and a storage medium, relates to the technical field of computers, and is applied to a data sharing system. The devicecomprises a host and a virtual machine running in the host, wherein at least one host process runs in the host, at least one virtual machine process runs in the virtual machine, and the method comprises the following steps: receiving a shared memory establishment request from the host process based on the virtual machine process, and allocating a first virtual machine physical address to a to-be-established shared memory based on the shared memory establishment request; mapping a memory corresponding to the physical address of the first virtual machine to a process address space of a host process; allocating a physical memory page to the shared memory to be established from the memory corresponding to the physical address of the first virtual machine; and mapping the memory corresponding to the physical memory page to the process address space of the virtual machine process, and taking the memory corresponding to the physical memory page as a shared memory between the virtual machine process and the host process. According to the invention, safe memory sharing between the virtual machine and the host process is realized.

Description

technical field [0001] The present application relates to the technical field of computers, and more specifically, to a memory sharing method, device, electronic equipment, and storage medium. Background technique [0002] With the continuous development of information technology, virtual machine (Virtual Machine) technology has been more and more widely used. A virtual machine is a complete computer system that is simulated by software, has complete hardware functions, and runs in a completely isolated environment. Through virtual machine software, one or more virtual computers can be simulated on a physical computer. A virtual machine can work like a real computer, for example, an operating system can be installed, applications can be installed, network resources can be accessed, and so on. Usually, the physical computer on which the virtual machine resides is called a host machine (Host), and may also be called a host machine, and the virtual machine itself is called a ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54G06F9/455G06F9/50
CPCG06F9/544G06F9/45558G06F9/5016G06F2009/45583
Inventor 彭浩
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products