+

CN114625481A - Data processing method and device, readable medium and electronic equipment - Google Patents

Data processing method and device, readable medium and electronic equipment Download PDF

Info

Publication number
CN114625481A
CN114625481A CN202210287992.5A CN202210287992A CN114625481A CN 114625481 A CN114625481 A CN 114625481A CN 202210287992 A CN202210287992 A CN 202210287992A CN 114625481 A CN114625481 A CN 114625481A
Authority
CN
China
Prior art keywords
data
shared
request message
queue
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210287992.5A
Other languages
Chinese (zh)
Other versions
CN114625481B (en
Inventor
谢永吉
张佳辰
邓良
厉航靖
柴稳
张宇
王剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202210287992.5A priority Critical patent/CN114625481B/en
Publication of CN114625481A publication Critical patent/CN114625481A/en
Priority to PCT/CN2023/082365 priority patent/WO2023179508A1/en
Application granted granted Critical
Publication of CN114625481B publication Critical patent/CN114625481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开涉及一种数据处理方法、装置、可读介质及电子设备,所述方法包括:接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行虚拟机的宿主机上的目标数据;根据数据请求消息,确定目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于虚拟机与宿主机之间直接进行数据交互;根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。也就是说,本公开的虚拟机和宿主机可以通过共享数据信息直接进行数据交互,无需通过宿主机的Virtiofs Daemon(守护进程)进行中转,宿主机的内核可以直接获取虚拟机发送的数据处理请求,这样,可以避免额外的系统调用开销,从而提高了虚拟机数据处理的效率。

Figure 202210287992

The present disclosure relates to a data processing method, apparatus, readable medium, and electronic device. The method includes: receiving a data request message triggered by a user through a virtual machine, where the data request message is used to request processing on a host machine running the virtual machine. target data; according to the data request message, determine the shared data information corresponding to the target data, the shared data information includes a shared queue, and the shared queue is used for direct data interaction between the virtual machine and the host; according to the data request The message and the shared queue process the target data through the kernel of the host. That is to say, the virtual machine of the present disclosure and the host machine can directly perform data interaction by sharing data information, without the need for transit through the Virtiofs Daemon (daemon process) of the host machine, and the kernel of the host machine can directly obtain the data processing request sent by the virtual machine. , in this way, additional system call overhead can be avoided, thereby improving the efficiency of virtual machine data processing.

Figure 202210287992

Description

数据处理方法、装置、可读介质及电子设备Data processing method, apparatus, readable medium and electronic device

技术领域technical field

本公开涉及计算机技术领域,具体地,涉及一种数据处理方法、装置、可读介质及电子设备。The present disclosure relates to the field of computer technology, and in particular, to a data processing method, apparatus, readable medium, and electronic device.

背景技术Background technique

随着云原生概念的兴起,容器在云环境上的应用也日益广泛。容器对应的镜像目录通常是存放在宿主机中,安全容器在访问相应的镜像文件时,需要通过虚拟机-宿主机共享目录技术来实现,例如Virtiofs技术。With the rise of cloud-native concepts, containers are increasingly used in cloud environments. The image directory corresponding to the container is usually stored in the host. When the security container accesses the corresponding image file, it needs to be implemented through the virtual machine-host shared directory technology, such as the Virtiofs technology.

但是,Virtiofs技术中的文件访问请求需要经过用户态Virtiofs Daemon(守护进程)进行一次中转,会带来额外的系统调用开销,导致虚拟机数据处理的效率比较低。However, the file access request in the Virtiofs technology needs to be transferred through the user mode Virtiofs Daemon (daemon process), which will bring additional system call overhead, resulting in low efficiency of virtual machine data processing.

发明内容SUMMARY OF THE INVENTION

提供该部分内容以便以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。该部分内容并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。This section is provided to introduce in a simplified form concepts that are described in detail in the detailed description that follows. This section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

第一方面,本公开提供一种数据处理方法,所述方法包括:In a first aspect, the present disclosure provides a data processing method, the method comprising:

接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据;receiving a data request message triggered by a user through a virtual machine, where the data request message is used to request to process target data on a host machine running the virtual machine;

根据所述数据请求消息,确定所述目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于所述虚拟机与所述宿主机之间直接进行数据交互;determining shared data information corresponding to the target data according to the data request message, where the shared data information includes a shared queue, and the shared queue is used for direct data interaction between the virtual machine and the host;

根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。The target data is processed through the kernel of the host according to the data request message and the shared queue.

第二方面,本公开提供一种数据处理装置,所述装置包括:In a second aspect, the present disclosure provides a data processing device, the device comprising:

数据请求消息接收模块,用于接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据;a data request message receiving module, configured to receive a data request message triggered by a user through a virtual machine, where the data request message is used to request to process target data on the host machine running the virtual machine;

共享数据信息确定模块,用于根据所述数据请求消息,确定所述目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于所述虚拟机与所述宿主机之间直接进行数据交互;A shared data information determination module, configured to determine the shared data information corresponding to the target data according to the data request message, where the shared data information includes a shared queue, and the shared queue is used for the virtual machine and the host machine Direct data exchange between them;

数据处理模块,用于根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。A data processing module, configured to process the target data through the kernel of the host according to the data request message and the shared queue.

第三方面,本公开提供一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现本公开第一方面所述方法的步骤。In a third aspect, the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing apparatus, implements the steps of the method described in the first aspect of the present disclosure.

第四方面,本公开提供一种电子设备,包括:In a fourth aspect, the present disclosure provides an electronic device, comprising:

存储装置,其上存储有至少一个计算机程序;a storage device having at least one computer program stored thereon;

至少一个处理装置,用于执行所述存储装置中的所述至少一个计算机程序,以实现本公开第一方面所述方法的步骤。At least one processing device is configured to execute the at least one computer program in the storage device to implement the steps of the method in the first aspect of the present disclosure.

通过上述技术方案,通过接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据;根据所述数据请求消息,确定所述目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于所述虚拟机与所述宿主机之间直接进行数据交互;根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。也就是说,本公开的虚拟机和宿主机可以通过共享数据信息直接进行数据交互,无需通过宿主机的Virtiofs Daemon(守护进程)进行中转,宿主机的内核可以直接获取虚拟机发送的数据处理请求,这样,可以避免额外的系统调用开销,从而提高了虚拟机数据处理的效率。Through the above technical solution, a data request message triggered by a user through a virtual machine is received, and the data request message is used to request to process target data on the host machine running the virtual machine; according to the data request message, the target is determined Shared data information corresponding to the data, the shared data information includes a shared queue, and the shared queue is used for direct data interaction between the virtual machine and the host; according to the data request message and the shared queue, The target data is processed by the kernel of the host. That is to say, the virtual machine of the present disclosure and the host machine can directly perform data interaction by sharing data information, without the need for transit through the Virtiofs Daemon (daemon process) of the host machine, and the kernel of the host machine can directly obtain the data processing request sent by the virtual machine. , in this way, additional system call overhead can be avoided, thereby improving the efficiency of virtual machine data processing.

本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description that follows.

附图说明Description of drawings

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。在附图中:The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent when taken in conjunction with the accompanying drawings and with reference to the following detailed description. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale. In the attached image:

图1是根据本公开一示例性实施例示出的一种文件访问示意图;FIG. 1 is a schematic diagram of file access according to an exemplary embodiment of the present disclosure;

图2是根据本公开一示例性实施例示出的一种数据处理方法的流程图;FIG. 2 is a flowchart of a data processing method according to an exemplary embodiment of the present disclosure;

图3是根据本公开一示例性实施例示出的另一种数据处理方法的流程图;3 is a flowchart of another data processing method according to an exemplary embodiment of the present disclosure;

图4是根据本公开一示例性实施例示出的一种共享映射空间的示意图;4 is a schematic diagram of a shared mapping space according to an exemplary embodiment of the present disclosure;

图5是根据本公开一示例性实施例示出的一种数据处理示意图;FIG. 5 is a schematic diagram of data processing according to an exemplary embodiment of the present disclosure;

图6是根据本公开一示例性实施例示出的一种数据处理装置的框图;6 is a block diagram of a data processing apparatus according to an exemplary embodiment of the present disclosure;

图7是根据本公开一示例性实施例示出的第二种数据处理装置的框图;FIG. 7 is a block diagram of a second data processing apparatus according to an exemplary embodiment of the present disclosure;

图8是根据本公开一示例性实施例示出的第三种数据处理装置的框图;8 is a block diagram of a third data processing apparatus according to an exemplary embodiment of the present disclosure;

图9是根据本公开一示例性实施例示出的第四种数据处理装置的框图;9 is a block diagram of a fourth data processing apparatus according to an exemplary embodiment of the present disclosure;

图10是根据本公开一示例性实施例示出的第五种数据处理装置的框图;10 is a block diagram of a fifth data processing apparatus according to an exemplary embodiment of the present disclosure;

图11是根据本公开一示例性实施例示出的第六种数据处理装置的框图;11 is a block diagram of a sixth data processing apparatus according to an exemplary embodiment of the present disclosure;

图12是根据本公开一示例性实施例示出的一种电子设备的框图。Fig. 12 is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for the purpose of A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the protection scope of the present disclosure.

应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this regard.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "including" and variations thereof are open-ended inclusions, ie, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or interdependence.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "a" and "a plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, they should be understood as "one or a plurality of". multiple".

本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.

首先,对本公开的应用场景进行说明。图1是根据本公开一示例性实施例示出的一种文件访问示意图,如图1所示,Virtiofs技术是利用虚拟机内核的FUSE模块截获文件访问请求,通过Virtio机制将文件访问请求转发至宿主机的Virtiofs Daemon(守护进程),再由Virtiofs Daemon(守护进程)对宿主机上相应的文件进行操作,从而可以在虚拟机访问宿主机的本地文件。但是,Virtiofs技术中的文件访问请求需要经过用户态Virtiofs Daemon(守护进程)进行一次中转,会带来额外的系统调用开销,导致虚拟机数据处理的效率比较低。First, the application scenarios of the present disclosure will be described. FIG. 1 is a schematic diagram of a file access according to an exemplary embodiment of the present disclosure. As shown in FIG. 1, the Virtiofs technology uses the FUSE module of the virtual machine kernel to intercept the file access request, and forwards the file access request to the sink through the Virtio mechanism The Virtiofs Daemon (daemon process) of the host, and then the Virtiofs Daemon (daemon process) operates the corresponding files on the host, so that the virtual machine can access the local files of the host. However, the file access request in the Virtiofs technology needs to be transferred through the user mode Virtiofs Daemon (daemon process), which will bring additional system call overhead, resulting in low efficiency of virtual machine data processing.

为了解决上述存在的问题,本公开提供一种数据处理方法、装置、可读介质及电子设备,虚拟机和宿主机可以通过共享数据信息直接进行数据交互,无需通过宿主机的Virtiofs Daemon(守护进程)进行中转,宿主机的内核可以直接获取虚拟机发送的数据处理请求,这样,可以避免额外的系统调用开销,从而提高了虚拟机数据处理的效率。In order to solve the above-mentioned problems, the present disclosure provides a data processing method, device, readable medium and electronic device. The virtual machine and the host machine can directly perform data interaction by sharing data information without going through the Virtiofs Daemon (daemon process) of the host machine. ) for transit, the kernel of the host machine can directly obtain the data processing request sent by the virtual machine, so that additional system call overhead can be avoided, thereby improving the efficiency of data processing of the virtual machine.

下面结合具体实施例对本公开进行说明。The present disclosure will be described below with reference to specific embodiments.

图2是根据本公开一示例性实施例示出的一种数据处理方法的流程图,如图2所示,该方法可以包括:FIG. 2 is a flowchart of a data processing method according to an exemplary embodiment of the present disclosure. As shown in FIG. 2 , the method may include:

S201、接收用户通过虚拟机触发的数据请求消息。S201. Receive a data request message triggered by a user through a virtual machine.

其中,该数据请求消息可以用于请求处理运行该虚拟机的宿主机上的目标数据,该数据请求消息可以包括该目标数据的数据标识。示例地,该目标数据可以是目标文件,该数据请求消息可以是请求访问该宿主机上的目标文件,该数据请求消息可以包括该目标文件的文件标识。本实施例中以该目标数据为文件类型进行说明。The data request message may be used to request to process target data on the host running the virtual machine, and the data request message may include a data identifier of the target data. For example, the target data may be a target file, the data request message may be a request to access a target file on the host, and the data request message may include a file identifier of the target file. In this embodiment, the target data is used as the file type for description.

在本步骤中,用户对虚拟机软件操作过程中,若触发对运行该虚拟机的宿主机上的目标数据的访问操作,则可以根据该目标数据的数据标识和访问操作的类型,生成该数据请求消息。In this step, if the user triggers an access operation to the target data on the host running the virtual machine during the operation of the virtual machine software, the data can be generated according to the data identifier of the target data and the type of the access operation request message.

S202、根据该数据请求消息,确定该目标数据对应的共享数据信息。S202. Determine shared data information corresponding to the target data according to the data request message.

其中,该共享数据信息可以包括共享队列,该共享队列可以用于该虚拟机与该宿主机之间直接进行数据交互。该共享数据信息可以存储在共享映射空间中,该虚拟机和该宿主机均能够访问该共享映射空间。The shared data information may include a shared queue, and the shared queue may be used for direct data interaction between the virtual machine and the host. The shared data information may be stored in a shared mapping space, and both the virtual machine and the host can access the shared mapping space.

在本步骤中,在接收到该数据请求消息后,可以根据该数据请求消息,从该共享映射空间中,确定该目标数据对应的共享数据信息。In this step, after receiving the data request message, the shared data information corresponding to the target data may be determined from the shared mapping space according to the data request message.

S203、根据该数据请求消息和该共享队列,通过该宿主机的内核处理该目标数据。S203. Process the target data through the kernel of the host according to the data request message and the shared queue.

其中,该共享队列可以包括待处理队列,该共享数据信息还包括地址映射表。Wherein, the shared queue may include a queue to be processed, and the shared data information further includes an address mapping table.

在本步骤中,在确定该目标数据对应的共享队列后,可以将该数据请求消息发送至该共享队列中的待处理队列并通知该宿主机,该宿主机的内核可以从该待处理队列中提取该数据请求消息,并根据该数据请求消息处理该目标数据。In this step, after determining the shared queue corresponding to the target data, the data request message can be sent to the pending queue in the shared queue and notified to the host, and the kernel of the host can retrieve the data from the pending queue. Extract the data request message, and process the target data according to the data request message.

在一种可能的实现方式中,在根据该数据请求消息和该共享队列,通过该宿主机的内核处理该目标数据前,可以根据该地址映射表,确定与该虚拟机的物理地址对应的该宿主机的虚拟地址;该地址映射表可以包括该虚拟机的物理地址与该宿主机的虚拟地址的对应关系;根据该虚拟地址、该数据请求消息以及该共享队列,通过该宿主机的内核处理该目标数据。In a possible implementation manner, before processing the target data through the kernel of the host machine according to the data request message and the shared queue, the address map corresponding to the physical address of the virtual machine may be determined according to the address mapping table. The virtual address of the host; the address mapping table may include the corresponding relationship between the physical address of the virtual machine and the virtual address of the host; according to the virtual address, the data request message and the shared queue, the kernel of the host is processed the target data.

示例地,在确定与该虚拟机的物理地址对应的该宿主机的虚拟地址后,可以将该数据请求消息发送至该待处理队列并通知该宿主机,该宿主机的内核可以从该待处理队列中提取该数据请求消息,并根据该虚拟地址和该数据请求消息处理该目标数据。For example, after determining the virtual address of the host machine corresponding to the physical address of the virtual machine, the data request message can be sent to the pending queue and notified to the host machine, and the kernel of the host machine can retrieve the data from the pending process. The data request message is extracted from the queue, and the target data is processed according to the virtual address and the data request message.

采用上述方法,虚拟机和宿主机可以通过共享数据信息进行数据交互,无需通过宿主机的Virtiofs Daemon(守护进程)进行中转,宿主机的内核可以直接获取虚拟机发送的数据处理请求,这样,可以避免额外的系统调用开销,从而提高了虚拟机数据处理的效率。Using the above method, the virtual machine and the host can exchange data through shared data information, without the need to transfer through the host's Virtiofs Daemon (daemon process), and the host's kernel can directly obtain the data processing request sent by the virtual machine. In this way, you can Avoid extra system call overhead, thereby improving the efficiency of virtual machine data processing.

图3是根据本公开一示例性实施例示出的另一种数据处理方法的流程图,如图3所示,该方法可以包括:FIG. 3 is a flowchart of another data processing method according to an exemplary embodiment of the present disclosure. As shown in FIG. 3 , the method may include:

S301、接收用户通过虚拟机触发的数据请求消息。S301. Receive a data request message triggered by a user through a virtual machine.

其中,该数据请求消息可以用于请求处理运行该虚拟机的宿主机上的目标数据,该数据请求消息可以包括该目标数据的数据标识。示例地,该目标数据可以是目标文件,该数据请求消息可以是请求访问该宿主机上的目标文件,该数据请求消息可以包括该目标文件的文件标识。本实施例中以该目标数据为文件类型进行说明。The data request message may be used to request to process target data on the host running the virtual machine, and the data request message may include a data identifier of the target data. For example, the target data may be a target file, the data request message may be a request to access a target file on the host, and the data request message may include a file identifier of the target file. In this embodiment, the target data is used as the file type for description.

S302、确定该共享映射空间中是否存在该目标数据对应的共享队列,在确定该共享映射空间中不存在该目标数据对应的共享队列的情况下,执行步骤S303~步骤S306,在确定该共享映射空间中存在该目标数据对应的共享队列的情况下,执行步骤S307~步骤S314。S302. Determine whether there is a shared queue corresponding to the target data in the shared mapping space, and if it is determined that there is no shared queue corresponding to the target data in the shared mapping space, perform steps S303 to S306, and after determining the shared mapping If there is a shared queue corresponding to the target data in the space, steps S307 to S314 are executed.

其中,该共享数据信息可以包括地址映射表和共享队列,该共享队列可以用于该虚拟机与该宿主机之间进行数据交互,该共享队列可以包括待处理队列和完成队列。该共享数据信息可以存储在该共享映射空间中,该虚拟机和该宿主机均能够访问该共享映射空间。示例地,该共享映射空间可以是该虚拟机的Virtiofs对应的PCI(PeripheralComponent Interconnect,外设部件互连标准)设备中的一个BAR(Base AddressRegister,基地址寄存器)。该共享映射空间可以包括两个区域,一个区域用于存储该地址映射表,另一个区域可以包括多个映射块区域,该映射块区域用于存储已打开文件的映射信息,该映射信息可以包括待处理队列、完成队列以及通知区域,不同的文件对应不同的映射块区域。The shared data information may include an address mapping table and a shared queue, the shared queue may be used for data interaction between the virtual machine and the host, and the shared queue may include a pending queue and a completion queue. The shared data information may be stored in the shared mapping space, and both the virtual machine and the host can access the shared mapping space. For example, the shared mapping space may be a BAR (Base Address Register, base address register) in a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) device corresponding to Virtiofs of the virtual machine. The shared mapping space may include two areas, one area is used to store the address mapping table, the other area may include a plurality of mapping block areas, the mapping block area is used to store the mapping information of the opened file, and the mapping information may include Pending queue, completion queue and notification area, different files correspond to different mapped block areas.

需要说明的是,在该虚拟机启动过程中,可以通过VMM(Virtual MachineMonitor,虚拟机监视器)为该虚拟机创建对应的地址映射表,建立相应的EPT(ExtendedPage Tables,扩展页表)映射,并将该地址映射表与该共享映射空间中用于存储该地址映射表的区域进行绑定。It should be noted that, during the startup process of the virtual machine, a corresponding address mapping table can be created for the virtual machine through VMM (Virtual MachineMonitor, virtual machine monitor), and a corresponding EPT (Extended Page Tables, extended page table) mapping can be established, and bind the address mapping table with the area for storing the address mapping table in the shared mapping space.

图4是根据本公开一示例性实施例示出的一种共享映射空间的示意图,如图4所示,该共享映射空间的大小为1GB,该地址映射表所占的空间大小为1MB,该地址映射表可以包括多个表项,每个表项包括3个64bit的字段:虚拟机的物理地址、宿主机的虚拟地址以及映射长度。每个映射块区域所占的空间大小为128KB,其中,该待处理队列所占的空间大小为64KB,该完成队列所占的空间大小为8KB,该待处理队列和该完成队列的最大深度可以是1024,该通知区域所占的空间大小为4KB,该映射块区域中剩余的空间可以作为填充区域(padding),该填充区域用于数据对齐处理。FIG. 4 is a schematic diagram of a shared mapping space according to an exemplary embodiment of the present disclosure. As shown in FIG. 4 , the size of the shared mapping space is 1GB, the size of the space occupied by the address mapping table is 1MB, and the address The mapping table may include multiple entries, and each entry includes three 64-bit fields: the physical address of the virtual machine, the virtual address of the host, and the mapping length. The space occupied by each mapping block area is 128KB, of which the space occupied by the pending queue is 64KB, and the space occupied by the completion queue is 8KB. The maximum depth of the pending queue and the completion queue can be is 1024, the size of the space occupied by the notification area is 4KB, the remaining space in the mapping block area can be used as a padding area, and the padding area is used for data alignment processing.

在本步骤中,在接收到用户触发的数据处理请求消息后,可以通过该虚拟机内核的Virtiofs模块确定该共享映射空间中是否存在该目标数据对应的映射块区域,在确定该共享映射空间中存在该目标数据对应的映射块区域的情况下,表示该共享映射空间存在该目标数据对应的共享队列,在确定该共享映射空间中不存在该目标数据对应的映射块区域的情况下,表示该共享映射空间不存在该目标数据对应的共享队列。In this step, after receiving the data processing request message triggered by the user, the Virtiofs module of the virtual machine kernel can determine whether there is a mapping block area corresponding to the target data in the shared mapping space, and then determine whether the shared mapping space exists in the shared mapping space. When there is a mapping block area corresponding to the target data, it means that there is a shared queue corresponding to the target data in the shared mapping space, and when it is determined that there is no mapping block area corresponding to the target data in the shared mapping space, it means that the There is no shared queue corresponding to the target data in the shared mapping space.

S303、从该共享映射空间中确定该目标数据对应的映射块区域。S303. Determine a mapping block area corresponding to the target data from the shared mapping space.

在本步骤中,在确定该共享映射空间中不存在该目标数据对应的共享队列的情况下,表示该共享映射空间中不存在该目标数据对应的映射块区域,这种情况下,该虚拟机内核的Virtiofs模块可以通过预先设置的FUSE命令向Virtiofs Daemon(守护进程)发送映射信息创建请求消息,该Virtiofs Daemon(守护进程)在接收到该映射信息创建请求消息后,可以向该VMM发送映射信息创建请求消息,该VMM在接收到该映射信息创建请求消息后,可以将该共享映射空间中的任一空间映射块区域作为该目标数据对应的映射块区域。示例地,可以遍历该共享映射空间中的映射块区域,将遍历到的第一个空闲的映射块区域作为该目标数据对应的映射块区域。In this step, if it is determined that the shared queue corresponding to the target data does not exist in the shared mapping space, it means that there is no mapping block area corresponding to the target data in the shared mapping space. In this case, the virtual machine The Virtiofs module of the kernel can send a mapping information creation request message to the Virtiofs Daemon (daemon process) through the preset FUSE command. After receiving the mapping information creation request message, the Virtiofs Daemon (daemon process) can send the mapping information to the VMM. A creation request message, after receiving the mapping information creation request message, the VMM can use any space mapping block region in the shared mapping space as a mapping block region corresponding to the target data. For example, the mapping block area in the shared mapping space may be traversed, and the first free mapping block area that is traversed may be used as the mapping block area corresponding to the target data.

S304、初始化该映射块区域。S304, initialize the mapping block area.

在本步骤中,该VMM在确定该目标数据对应的映射块区域后,可以对该映射块区域进行初始化处理,为该映射块区域分配对应的空间。In this step, after determining the mapping block area corresponding to the target data, the VMM may perform initialization processing on the mapping block area to allocate a corresponding space for the mapping block area.

S305、在该映射块区域创建该目标数据对应的共享队列。S305. Create a shared queue corresponding to the target data in the mapping block area.

在本步骤中,在该VMM初始化该映射块区域后,可以通过io_uring_setup()接口初始化待处理队列和完成队列,并建立相应的EPT映射,将该共享队列与该映射块区域进行绑定。In this step, after the VMM initializes the mapping block area, the pending queue and the completion queue may be initialized through the io_uring_setup() interface, and a corresponding EPT mapping is established to bind the shared queue to the mapping block area.

进一步地,在创建该目标数据对应的共享队列后,可以得到该目标数据对应的共享数据信息和该共享数据信息对应的映射块区域,之后,可以确定该目标数据对应的数据标识,并建立该数据标识与该映射块区域之间的对应关系,将该对应关系发送至该虚拟机内核的Virtiofs模块。Further, after the shared queue corresponding to the target data is created, the shared data information corresponding to the target data and the mapping block area corresponding to the shared data information can be obtained, then, the data identifier corresponding to the target data can be determined, and the The corresponding relationship between the data identifier and the mapping block area is sent to the Virtiofs module of the virtual machine kernel.

S306、将该目标数据和该目标数据对应的共享队列添加至预设队列关联关系。S306. Add the target data and the shared queue corresponding to the target data to a preset queue association relationship.

其中,该预设队列关联关系可以包括不同的数据和共享队列之间的对应关系。The preset queue association relationship may include correspondence between different data and shared queues.

在本步骤中,在该映射块区域创建该目标数据对应的共享队列后,可以将该目标数据和该目标数据对应的共享队列添加至该预设队列关联关系,另外,在关闭该目标数据后,可以将该预设队列关联关系中的目标数据和该目标数据对应的共享队列删除。In this step, after the shared queue corresponding to the target data is created in the mapping block area, the target data and the shared queue corresponding to the target data can be added to the preset queue association relationship. In addition, after the target data is closed , the target data in the preset queue association relationship and the shared queue corresponding to the target data can be deleted.

需要说明的是,针对步骤S302,也可以通过该预设队列关联关系确定该共享映射空间中是否存在该目标数据对应的共享队列,示例地,在确定该预设队列关联关系中包含该目标数据的情况下,确定该共享映射空间中存在该目标数据对应的共享队列,在确定该预设队列关联关系中不包含该目标数据的情况下,确定该共享映射空间中不存在该目标数据对应的共享队列。It should be noted that, for step S302, it is also possible to determine whether there is a shared queue corresponding to the target data in the shared mapping space through the preset queue association relationship. For example, determining the preset queue association relationship includes the target data. In the case of determining that there is a shared queue corresponding to the target data in the shared mapping space, and determining that the preset queue association relationship does not contain the target data, determine that the shared mapping space does not exist in the shared mapping space corresponding to the target data. Shared queue.

S307、根据该数据请求消息,确定该目标数据对应的共享数据信息。S307. Determine shared data information corresponding to the target data according to the data request message.

在本步骤中,在确定该共享映射空间中存在该目标数据对应的共享队列的情况下,可以确定该数据请求消息中的数据标识,根据预先建立的数据标识与该映射块区域之间的对应关系,确定该数据标识对应的目标映射块区域,该目标映射块区域中存储的共享数据信息即为该目标数据对应的共享数据信息。In this step, when it is determined that there is a shared queue corresponding to the target data in the shared mapping space, the data identifier in the data request message can be determined, according to the correspondence between the pre-established data identifier and the mapping block area The target mapping block area corresponding to the data identifier is determined, and the shared data information stored in the target mapping block area is the shared data information corresponding to the target data.

S308、根据该地址映射表,确定与该虚拟机的物理地址对应的该宿主机的虚拟地址。S308. Determine the virtual address of the host machine corresponding to the physical address of the virtual machine according to the address mapping table.

在本步骤中,在确定该目标数据对应的共享数据信息后,可以根据该共享数据信息中的地址映射表,确定与该虚拟机的物理地址对应的该宿主机的虚拟地址,以将该目标数据的数据内存对应的虚拟机的物理地址修改为该宿主机的虚拟地址。In this step, after determining the shared data information corresponding to the target data, the virtual address of the host machine corresponding to the physical address of the virtual machine can be determined according to the address mapping table in the shared data information, so as to use the target The physical address of the virtual machine corresponding to the data memory of the data is modified to the virtual address of the host machine.

S309、根据预设数据格式,确定该数据请求消息对应的共享数据请求消息。S309. Determine a shared data request message corresponding to the data request message according to the preset data format.

其中,该预设数据格式可以是该宿主机内核能够处理的数据格式。The preset data format may be a data format that can be processed by the host kernel.

在本步骤中,在确定该目标数据对应的共享数据信息后,可以按照该预设数据格式从该数据请求消息中提取对应的信息,得到该共享数据请求消息。示例地,该预设数据格式可以是该共享数据请求消息对应的数据结构,从该数据请求消息中提取该数据结构中每个元素对应的元素值,并通过该元素值填充该数据结构后,即可得到该数据请求消息对应的共享数据请求消息。In this step, after determining the shared data information corresponding to the target data, the corresponding information can be extracted from the data request message according to the preset data format to obtain the shared data request message. Exemplarily, the preset data format may be a data structure corresponding to the shared data request message, extracting the element value corresponding to each element in the data structure from the data request message, and filling the data structure with the element value, The shared data request message corresponding to the data request message can be obtained.

S310、将该共享数据请求消息发送至该待处理队列。S310. Send the shared data request message to the pending queue.

S311、通过该宿主机从该待处理队列中提取该共享数据请求消息。S311. Extract the shared data request message from the queue to be processed through the host.

其中,该目标数据对应的映射块区域可以包括通知区域,该通知区域可以不建立相应的EPT映射。The mapping block area corresponding to the target data may include a notification area, and the notification area may not establish a corresponding EPT mapping.

在本步骤中,在将该共享数据请求消息发送至该待处理队列后,可以通过该通知区域向该宿主机发送数据处理请求消息,在该宿主机接收到该数据处理请求消息后,从该待处理队列中提取该共享数据请求消息。示例地,该通知区域可以用于实现io_uring_enter()这个系统调用IORING_ENTER_SQ_WAKEUP的语义,在该虚拟机对该通知区域进行MMIO(Memory-mapped I/O,内存映射I/O)写操作的情况下,可以退出至KVM(Kernel-basedVirtual Machine,基于内核的虚拟机)模块,通过该KVM模块执行io_uring_enter()对应的实际操作,以唤醒该宿主机上的sq进程处理该待处理队列中的数据处理请求消息。这样,在非轮询模式(例如中断模式)下,可以通过io_uring_enter()接口向该宿主机发送该数据处理请求消息。In this step, after the shared data request message is sent to the pending queue, a data processing request message may be sent to the host through the notification area, and after the host receives the data processing request message, the data processing request message is sent from the host. The shared data request message is extracted from the pending queue. For example, the notification area can be used to implement the semantics of the io_uring_enter() system call IORING_ENTER_SQ_WAKEUP. When the virtual machine performs an MMIO (Memory-mapped I/O, memory-mapped I/O) write operation to the notification area, You can exit to the KVM (Kernel-based Virtual Machine, kernel-based virtual machine) module, and perform the actual operation corresponding to io_uring_enter() through the KVM module to wake up the sq process on the host to process the data processing request in the pending queue information. In this way, in the non-polling mode (for example, the interrupt mode), the data processing request message can be sent to the host through the io_uring_enter() interface.

需要说明的是,该VMM在调用io_uring_enter()时,需要同时设置IORING_SETUP_SQPOLL标志位,以创建对应的内核线程异步处理该共享数据请求消息。另外,该VMM可以调用io_uring_register()接口执行IORING_REGISTER_EVENTFD操作,将该虚拟机的Virtiofs中断对应的eventfd注册给iouring,作为完成队列的通知方式。It should be noted that when the VMM calls io_uring_enter(), it needs to set the IORING_SETUP_SQPOLL flag at the same time to create a corresponding kernel thread to asynchronously process the shared data request message. In addition, the VMM can call the io_uring_register() interface to perform the IORING_REGISTER_EVENTFD operation, and register the eventfd corresponding to the Virtiofs interrupt of the virtual machine to iouring as a notification method for completing the queue.

S312、根据该虚拟地址和该共享数据请求消息,通过该宿主机的内核处理该目标数据。S312. Process the target data through the kernel of the host according to the virtual address and the shared data request message.

S313、通过该宿主机的内核处理该目标数据后,将处理结果发送至该完成队列。S313: After processing the target data through the kernel of the host, send the processing result to the completion queue.

在本步骤中,在该宿主机的内核处理完该目标数据后,可以将该处理结果发送至该完成队列,并通过中断注入的方式,通知该虚拟机的Virtiofs模块。In this step, after the kernel of the host machine has processed the target data, it can send the processing result to the completion queue, and notify the Virtiofs module of the virtual machine by means of interrupt injection.

S314、通过该虚拟机从该完成队列中提取该目标数据对应的处理结果。S314. Extract the processing result corresponding to the target data from the completion queue through the virtual machine.

在本步骤中,该虚拟机的Virtiofs模块在接收到数据处理完成通知后,可以从该完成队列中提取该目标数据对应的处理结果。In this step, after receiving the data processing completion notification, the Virtiofs module of the virtual machine can extract the processing result corresponding to the target data from the completion queue.

需要说明的是,在宿主机处理完该目标数据后,若确定取消该目标数据对应的访问操作,则该虚拟机内核的Virtiofs可以通过相应的FUSE命令请求Virtiofs Daemon(守护进程)删除该目标数据和该目标数据对应的映射块区域之间的绑定,并取消该目标数据对应的全部EPT映射,释放该目标数据对应的地址空间,删除该目标数据对应的文件描述。It should be noted that after the host has processed the target data, if it is determined to cancel the access operation corresponding to the target data, the Virtiofs of the virtual machine kernel can request the Virtiofs Daemon (daemon process) to delete the target data through the corresponding FUSE command. The binding between the mapping block regions corresponding to the target data, cancel all EPT mappings corresponding to the target data, release the address space corresponding to the target data, and delete the file description corresponding to the target data.

图5是根据本公开一示例性实施例示出的一种数据处理示意图,如图5所示,粗线条表示数据处理过程中的数据交互,细线条表示数据处理过程中的控制交互。该共享数据信息存储在该共享映射空间中,虚拟机可以通过Virtiofs Daemon(守护进程)向虚拟机监视器发送请求,以在该共享映射空间中创建共享数据信息,并创建相应的EPT映射,使得该虚拟机可以通过该共享映射空间直接向该宿主机内核发送数据处理请求,在该宿主机处理该数据处理请求后,可以通过该共享映射空间将处理结果发送至该虚拟机。FIG. 5 is a schematic diagram of data processing according to an exemplary embodiment of the present disclosure. As shown in FIG. 5 , thick lines represent data interaction during data processing, and thin lines represent control interaction during data processing. The shared data information is stored in the shared mapping space, and the virtual machine can send a request to the virtual machine monitor through the Virtiofs Daemon (daemon process) to create the shared data information in the shared mapping space and create the corresponding EPT mapping, so that The virtual machine can directly send a data processing request to the host kernel through the shared mapping space, and after the host processes the data processing request, the processing result can be sent to the virtual machine through the shared mapping space.

采用上述方法,通过在虚拟机内核映射宿主机上的地址映射表、待处理队列以及完成队列,使得虚拟机的数据请求消息可以通过iouring的方式直接提交至该宿主机的内核,这样,无需通过宿主机的Virtiofs Daemon(守护进程)进行中转,宿主机的内核可以直接获取虚拟机发送的数据处理请求,这样,可以避免额外的系统调用开销,从而提高了虚拟机数据处理的效率。Using the above method, by mapping the address mapping table, pending queue and completion queue on the host in the virtual machine kernel, the data request message of the virtual machine can be directly submitted to the kernel of the host by iouring. The host's Virtiofs Daemon (daemon process) performs the transfer, and the host's kernel can directly obtain the data processing request sent by the virtual machine. In this way, additional system call overhead can be avoided, thereby improving the efficiency of virtual machine data processing.

图6是根据本公开一示例性实施例示出的一种数据处理装置的框图,如图6所示,该装置可以包括:FIG. 6 is a block diagram of a data processing apparatus according to an exemplary embodiment of the present disclosure. As shown in FIG. 6 , the apparatus may include:

数据请求消息接收模块601,用于接收用户通过虚拟机触发的数据请求消息,该数据请求消息用于请求处理运行该虚拟机的宿主机上的目标数据;The data request message receiving module 601 is used for receiving a data request message triggered by a user through a virtual machine, and the data request message is used for requesting to process target data on the host machine running the virtual machine;

共享数据信息确定模块602,用于根据该数据请求消息,确定该目标数据对应的共享数据信息,该共享数据信息包括共享队列,该共享队列用于该虚拟机与该宿主机的内核之间直接进行数据交互;The shared data information determination module 602 is configured to determine the shared data information corresponding to the target data according to the data request message, the shared data information includes a shared queue, and the shared queue is used for direct communication between the virtual machine and the kernel of the host machine. data interaction;

数据处理模块603,用于根据该数据请求消息和该共享队列,通过该宿主机的内核处理该目标数据。The data processing module 603 is configured to process the target data through the kernel of the host according to the data request message and the shared queue.

可选地,该共享数据信息还包括地址映射表,图7是根据本公开一示例性实施例示出的第二种数据处理装置的框图,如图7所示,该装置还包括:Optionally, the shared data information further includes an address mapping table. FIG. 7 is a block diagram of a second data processing apparatus according to an exemplary embodiment of the present disclosure. As shown in FIG. 7 , the apparatus further includes:

虚拟地址确定模块604,用于根据该地址映射表,确定与该虚拟机的物理地址对应的该宿主机的虚拟地址;该地址映射表包括该虚拟机的物理地址与该宿主机的虚拟地址的对应关系;The virtual address determination module 604 is configured to determine the virtual address of the host machine corresponding to the physical address of the virtual machine according to the address mapping table; the address mapping table includes the difference between the physical address of the virtual machine and the virtual address of the host machine. Correspondence;

该数据处理模块603,还用于:The data processing module 603 is also used for:

根据该虚拟地址、该数据请求消息以及该共享队列,通过该宿主机的内核处理该目标数据。The target data is processed by the kernel of the host according to the virtual address, the data request message and the shared queue.

可选地,该共享数据信息存储在共享映射空间中,该虚拟机和该宿主机均能够访问该共享映射空间;图8是根据本公开一示例性实施例示出的第三种数据处理装置的框图,如图8所示,该装置还包括:Optionally, the shared data information is stored in a shared mapping space, and both the virtual machine and the host can access the shared mapping space; FIG. 8 shows a third data processing apparatus according to an exemplary embodiment of the present disclosure. The block diagram, as shown in Figure 8, the device also includes:

共享队列确定模块605,用于确定该共享映射空间中是否存在该目标数据对应的共享队列;A shared queue determination module 605, configured to determine whether there is a shared queue corresponding to the target data in the shared mapping space;

该共享数据信息确定模块602,还用于:The shared data information determining module 602 is further configured to:

在确定该共享映射空间中存在该目标数据对应的共享队列的情况下,根据该数据请求消息,确定该目标数据对应的该共享数据信息。When it is determined that there is a shared queue corresponding to the target data in the shared mapping space, the shared data information corresponding to the target data is determined according to the data request message.

可选地,该共享映射空间包括多个映射块区域,图9是根据本公开一示例性实施例示出的第四种数据处理装置的框图,如图9所示,该装置还包括:Optionally, the shared mapping space includes multiple mapping block regions. FIG. 9 is a block diagram of a fourth data processing apparatus according to an exemplary embodiment of the present disclosure. As shown in FIG. 9 , the apparatus further includes:

映射块区域确定模块606,用于在确定该共享映射空间中不存在该目标数据对应的共享队列的情况下,从该共享映射空间中确定该目标数据对应的映射块区域;The mapping block region determining module 606 is used to determine the mapping block region corresponding to the target data from the shared mapping space when it is determined that the shared queue corresponding to the target data does not exist in the shared mapping space;

初始化模块607,用于初始化该映射块区域;an initialization module 607, for initializing the mapping block area;

共享队列创建模块608,用于在该映射块区域创建该目标数据对应的共享队列。A shared queue creation module 608, configured to create a shared queue corresponding to the target data in the mapping block area.

可选地,图10是根据本公开一示例性实施例示出的第五种数据处理装置的框图,如图10所示,该装置还包括:Optionally, FIG. 10 is a block diagram of a fifth data processing apparatus according to an exemplary embodiment of the present disclosure. As shown in FIG. 10 , the apparatus further includes:

添加模块609,用于将该目标数据和该目标数据对应的共享队列添加至预设队列关联关系,该预设队列关联关系包括不同的数据和共享队列之间的对应关系。The adding module 609 is configured to add the target data and the shared queue corresponding to the target data to a preset queue association relationship, where the preset queue association relationship includes correspondence between different data and shared queues.

可选地,该共享队列包括待处理队列;该数据处理模块604,还用于:根据预设数据格式,确定该数据请求消息对应的共享数据请求消息;Optionally, the shared queue includes a queue to be processed; the data processing module 604 is further configured to: determine a shared data request message corresponding to the data request message according to a preset data format;

将该共享数据请求消息发送至该待处理队列;send the shared data request message to the pending queue;

通过该宿主机从该待处理队列中提取该共享数据请求消息;Extract the shared data request message from the pending queue through the host;

根据该虚拟地址和该共享数据请求消息,通过该宿主机的内核处理该目标数据。According to the virtual address and the shared data request message, the target data is processed through the kernel of the host.

可选地,该共享数据信息还包括完成队列,图11是根据本公开一示例性实施例示出的第六种数据处理装置的框图,如图11所示,该装置还包括:Optionally, the shared data information further includes a completion queue. FIG. 11 is a block diagram of a sixth data processing apparatus according to an exemplary embodiment of the present disclosure. As shown in FIG. 11 , the apparatus further includes:

结果发送模块610,用于通过该宿主机的内核处理该目标数据后,将处理结果发送至该完成队列;The result sending module 610 is used to send the processing result to the completion queue after processing the target data through the kernel of the host;

结果提取模块611,用于通过该虚拟机从该完成队列中提取该目标数据对应的处理结果。The result extraction module 611 is configured to extract the processing result corresponding to the target data from the completion queue through the virtual machine.

可选地,该映射块区域包括通知区域;该装置还包括:Optionally, the mapping block area includes a notification area; the apparatus further includes:

通知模块,用于通过该通知区域向该宿主机发送数据处理请求消息;a notification module, configured to send a data processing request message to the host through the notification area;

该数据处理模块604,还用于:The data processing module 604 is also used for:

在该宿主机接收到该数据处理请求消息后,从该待处理队列中提取该共享数据请求消息。After the host computer receives the data processing request message, it extracts the shared data request message from the pending queue.

通过上述装置,虚拟机和宿主机可以通过共享数据信息进行数据交互,无需通过宿主机的Virtiofs Daemon(守护进程)进行中转,宿主机的内核可以直接获取虚拟机发送的数据处理请求,这样,可以避免额外的系统调用开销,从而提高了虚拟机数据处理的效率。Through the above device, the virtual machine and the host machine can exchange data by sharing data information, and there is no need to transfer through the Virtiofs Daemon (daemon process) of the host machine. The kernel of the host machine can directly obtain the data processing request sent by the virtual machine. In this way, it is possible to Avoid extra system call overhead, thereby improving the efficiency of virtual machine data processing.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

下面参考图12,其示出了适于用来实现本公开实施例的电子设备1200的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图12示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring next to FIG. 12 , it shows a schematic structural diagram of an electronic device 1200 suitable for implementing an embodiment of the present disclosure. Terminal devices in the embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, mobile terminals such as in-vehicle navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 12 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.

如图12所示,电子设备1200可以包括处理装置(例如中央处理器、图形处理器等)1201,其可以根据存储在只读存储器(ROM)1202中的程序或者从存储装置1208加载到随机访问存储器(RAM)1203中的程序而执行各种适当的动作和处理。在RAM 1203中,还存储有电子设备1200操作所需的各种程序和数据。处理装置1201、ROM 1202以及RAM 1203通过总线1204彼此相连。输入/输出(I/O)接口1205也连接至总线1204。As shown in FIG. 12, an electronic device 1200 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 1201 that may be loaded into random access according to a program stored in a read only memory (ROM) 1202 or from a storage device 1208 Various appropriate actions and processes are executed by the programs in the memory (RAM) 1203 . In the RAM 1203, various programs and data necessary for the operation of the electronic device 1200 are also stored. The processing device 1201 , the ROM 1202 , and the RAM 1203 are connected to each other through a bus 1204 . An input/output (I/O) interface 1205 is also connected to bus 1204 .

通常,以下装置可以连接至I/O接口1205:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置1206;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置1207;包括例如磁带、硬盘等的存储装置1208;以及通信装置1209。通信装置1209可以允许电子设备1200与其他设备进行无线或有线通信以交换数据。虽然图12示出了具有各种装置的电子设备1200,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices may be connected to the I/O interface 1205: input devices 1206 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 1207 of a computer, etc.; a storage device 1208 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1209. Communication means 1209 may allow electronic device 1200 to communicate wirelessly or by wire with other devices to exchange data. Although FIG. 12 shows an electronic device 1200 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置1209从网络上被下载和安装,或者从存储装置1208被安装,或者从ROM 1202被安装。在该计算机程序被处理装置1201执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 1209 , or from the storage device 1208 , or from the ROM 1202 . When the computer program is executed by the processing apparatus 1201, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

在一些实施方式中,服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the server can communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium (eg, , communication network) interconnection. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据;根据所述数据请求消息,确定所述目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于所述虚拟机与所述宿主机之间直接进行数据交互;根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device is made to: receive a data request message triggered by the user through the virtual machine, and the data request message is used for request processing of target data on the host running the virtual machine; according to the data request message, determine shared data information corresponding to the target data, where the shared data information includes a shared queue, and the shared queue is used for the Data interaction is directly performed between the virtual machine and the host; the target data is processed through the kernel of the host according to the data request message and the shared queue.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and This includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. Where a remote computer is involved, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to via Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该模块本身的限定,例如,数据请求消息接收模块还可以被描述为“接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据的模块”。The modules involved in the embodiments of the present disclosure may be implemented in software or hardware. Wherein, the name of the module does not constitute a limitation of the module itself under certain circumstances. For example, the data request message receiving module can also be described as "receiving a data request message triggered by a user through a virtual machine, and the data request message is A module for requesting processing of target data on a host machine running the virtual machine".

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.

根据本公开的一个或多个实施例,示例1提供了一种数据处理方法,所述方法包括:接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据;根据所述数据请求消息,确定所述目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于所述虚拟机与所述宿主机之间直接进行数据交互;根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。According to one or more embodiments of the present disclosure, Example 1 provides a data processing method, the method comprising: receiving a data request message triggered by a user through a virtual machine, where the data request message is used to request processing to run the virtual machine target data on the host of the host computer; according to the data request message, determine the shared data information corresponding to the target data, the shared data information includes a shared queue, and the shared queue is used for the virtual machine and the host Data interaction is directly performed between hosts; the target data is processed through the kernel of the host according to the data request message and the shared queue.

根据本公开的一个或多个实施例,示例2提供了示例1的方法,所述共享数据信息还包括地址映射表,在所述根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据前,所述方法还包括:According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, the shared data information further includes an address mapping table, and in the data request message and the shared queue, through the sink Before the kernel of the host processes the target data, the method further includes:

根据所述地址映射表,确定与所述虚拟机的物理地址对应的所述宿主机的虚拟地址;所述地址映射表包括所述虚拟机的物理地址与所述宿主机的虚拟地址的对应关系;Determine the virtual address of the host machine corresponding to the physical address of the virtual machine according to the address mapping table; the address mapping table includes the correspondence between the physical address of the virtual machine and the virtual address of the host machine ;

所述根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据包括:The processing of the target data through the kernel of the host computer according to the data request message and the shared queue includes:

根据所述虚拟地址、所述数据请求消息以及所述共享队列,通过所述宿主机的内核处理所述目标数据。The target data is processed by the kernel of the host according to the virtual address, the data request message and the shared queue.

根据本公开的一个或多个实施例,示例3提供了示例2的方法,所述共享数据信息存储在共享映射空间中,所述虚拟机和所述宿主机均能够访问所述共享映射空间;在所述根据所述数据请求消息,确定所述目标数据对应的共享数据信息前,所述方法还包括:确定所述共享映射空间中是否存在所述目标数据对应的共享队列;所述根据所述数据请求消息,确定所述目标数据对应的共享数据信息包括:在确定所述共享映射空间中存在所述目标数据对应的共享队列的情况下,根据所述数据请求消息,确定所述目标数据对应的所述共享数据信息。According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 2, the shared data information is stored in a shared mapping space, and both the virtual machine and the host machine can access the shared mapping space; Before determining the shared data information corresponding to the target data according to the data request message, the method further includes: determining whether there is a shared queue corresponding to the target data in the shared mapping space; The data request message, and determining the shared data information corresponding to the target data includes: in the case where it is determined that a shared queue corresponding to the target data exists in the shared mapping space, determining the target data according to the data request message corresponding to the shared data information.

根据本公开的一个或多个实施例,示例4提供了示例3的方法,所述共享映射空间包括多个映射块区域,所述方法还包括:在确定所述共享映射空间中不存在所述目标数据对应的共享队列的情况下,从所述共享映射空间中确定所述目标数据对应的映射块区域;初始化所述映射块区域;在所述映射块区域创建所述目标数据对应的共享队列。According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 3, the shared mapping space includes a plurality of mapping block regions, the method further comprising: determining that the shared mapping space does not exist in the shared mapping space In the case of a shared queue corresponding to target data, determine a map block area corresponding to the target data from the shared map space; initialize the map block area; create a shared queue corresponding to the target data in the map block area .

根据本公开的一个或多个实施例,示例5提供了示例4的方法,所述方法还包括:将所述目标数据和所述目标数据对应的共享队列添加至预设队列关联关系,所述预设队列关联关系包括不同的数据和共享队列之间的对应关系。According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, the method further comprising: adding the target data and a shared queue corresponding to the target data to a preset queue association relationship, the The preset queue association relationship includes the corresponding relationship between different data and shared queues.

根据本公开的一个或多个实施例,示例6提供了示例4的方法,所述共享队列包括待处理队列;所述根据所述虚拟地址、所述数据请求消息以及所述共享队列,通过所述宿主机的内核处理所述目标数据包括:根据预设数据格式,确定所述数据请求消息对应的共享数据请求消息;将所述共享数据请求消息发送至所述待处理队列;通过所述宿主机从所述待处理队列中提取所述共享数据请求消息;根据所述虚拟地址和所述共享数据请求消息,通过所述宿主机的内核处理所述目标数据。According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 4, the shared queue includes a queue to be processed; The processing of the target data by the kernel of the host computer includes: determining a shared data request message corresponding to the data request message according to a preset data format; sending the shared data request message to the queue to be processed; The host extracts the shared data request message from the queue to be processed; and processes the target data through the kernel of the host machine according to the virtual address and the shared data request message.

根据本公开的一个或多个实施例,示例7提供了示例6的方法,所述共享数据信息还包括完成队列,所述方法还包括:通过所述宿主机的内核处理所述目标数据后,将处理结果发送至所述完成队列;通过所述虚拟机从所述完成队列中提取所述目标数据对应的处理结果。According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 6, the shared data information further includes a completion queue, and the method further includes: after processing the target data through the kernel of the host machine, Send the processing result to the completion queue; and extract the processing result corresponding to the target data from the completion queue through the virtual machine.

根据本公开的一个或多个实施例,示例8提供了示例6的方法,所述映射块区域包括通知区域;在所述通过所述宿主机从所述待处理队列中提取所述共享数据请求消息前,所述方法还包括:通过所述通知区域向所述宿主机发送数据处理请求消息;所述通过所述宿主机从所述待处理队列中提取所述共享数据请求消息包括:在所述宿主机接收到所述数据处理请求消息后,从所述待处理队列中提取所述共享数据请求消息。According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 6, wherein the map block area includes a notification area; in the process of extracting the shared data request from the pending queue by the host The method further includes: sending a data processing request message to the host through the notification area; extracting the shared data request message from the queue to be processed through the host includes: in the host After receiving the data processing request message, the host machine extracts the shared data request message from the queue to be processed.

根据本公开的一个或多个实施例,示例9提供了一种数据处理装置,所述装置包括:数据请求消息接收模块,用于接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据;共享数据信息确定模块,用于根据所述数据请求消息,确定所述目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于所述虚拟机与所述宿主机的内核之间直接进行数据交互;数据处理模块,用于根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。According to one or more embodiments of the present disclosure, Example 9 provides a data processing apparatus, the apparatus includes: a data request message receiving module, configured to receive a data request message triggered by a user through a virtual machine, the data request message used for requesting to process target data on the host machine running the virtual machine; a shared data information determination module, configured to determine shared data information corresponding to the target data according to the data request message, where the shared data information includes shared data Queue, the shared queue is used for direct data interaction between the virtual machine and the kernel of the host; the data processing module is used to request the message and the shared queue according to the data, through the host's The kernel processes the target data.

根据本公开的一个或多个实施例,示例10提供了示例9的装置,所述共享数据信息还包括地址映射表,所述装置还包括:虚拟地址确定模块,用于根据所述地址映射表,确定与所述虚拟机的物理地址对应的所述宿主机的虚拟地址;所述地址映射表包括所述虚拟机的物理地址与所述宿主机的虚拟地址的对应关系;所述数据处理模块,还用于:根据所述虚拟地址、所述数据请求消息以及所述共享队列,通过所述宿主机的内核处理所述目标数据。According to one or more embodiments of the present disclosure, Example 10 provides the apparatus of Example 9, the shared data information further includes an address mapping table, and the apparatus further includes: a virtual address determination module configured to, according to the address mapping table , determine the virtual address of the host machine corresponding to the physical address of the virtual machine; the address mapping table includes the correspondence between the physical address of the virtual machine and the virtual address of the host machine; the data processing module , and is further used for: processing the target data through the kernel of the host according to the virtual address, the data request message and the shared queue.

根据本公开的一个或多个实施例,示例11提供了示例10的装置,所述共享数据信息存储在共享映射空间中,所述虚拟机和所述宿主机均能够访问所述共享映射空间;所述装置还包括:共享队列确定模块,用于确定所述共享映射空间中是否存在所述目标数据对应的共享队列;所述共享数据信息确定模块,还用于:在确定所述共享映射空间中存在所述目标数据对应的共享队列的情况下,根据所述数据请求消息,确定所述目标数据对应的所述共享数据信息。According to one or more embodiments of the present disclosure, Example 11 provides the apparatus of Example 10, the shared data information is stored in a shared mapping space, and both the virtual machine and the host machine can access the shared mapping space; The apparatus further includes: a shared queue determination module, configured to determine whether a shared queue corresponding to the target data exists in the shared mapping space; the shared data information determination module is further configured to: determine whether the shared mapping space exists in the shared mapping space. In the case that the shared queue corresponding to the target data exists in the data, the shared data information corresponding to the target data is determined according to the data request message.

根据本公开的一个或多个实施例,示例12提供了示例11的装置,所述共享映射空间包括多个映射块区域,所述装置还包括:映射块区域确定模块,用于在确定所述共享映射空间中不存在所述目标数据对应的共享队列的情况下,从所述共享映射空间中确定所述目标数据对应的映射块区域;初始化模块,用于初始化所述映射块区域;共享队列创建模块,用于在所述映射块区域创建所述目标数据对应的共享队列。According to one or more embodiments of the present disclosure, Example 12 provides the apparatus of Example 11, the shared mapping space includes a plurality of mapping block regions, and the apparatus further includes: a mapping block region determining module for determining the In the case where the shared queue corresponding to the target data does not exist in the shared mapping space, the mapping block area corresponding to the target data is determined from the shared mapping space; an initialization module is used to initialize the mapping block area; the shared queue A creating module is configured to create a shared queue corresponding to the target data in the mapping block area.

根据本公开的一个或多个实施例,示例13提供了示例12的装置,所述装置还包括:添加模块,用于将所述目标数据和所述目标数据对应的共享队列添加至预设队列关联关系,所述预设队列关联关系包括不同的数据和共享队列之间的对应关系。According to one or more embodiments of the present disclosure, Example 13 provides the apparatus of Example 12, the apparatus further comprising: an adding module configured to add the target data and the shared queue corresponding to the target data to a preset queue An association relationship, the preset queue association relationship includes a corresponding relationship between different data and shared queues.

根据本公开的一个或多个实施例,示例14提供了示例12的装置,所述共享队列包括待处理队列;所述数据处理模块,还用于:根据预设数据格式,确定所述数据请求消息对应的共享数据请求消息;将所述共享数据请求消息发送至所述待处理队列;通过所述宿主机从所述待处理队列中提取所述共享数据请求消息;根据所述虚拟地址和所述共享数据请求消息,通过所述宿主机的内核处理所述目标数据。According to one or more embodiments of the present disclosure, Example 14 provides the apparatus of Example 12, the shared queue includes a queue to be processed; the data processing module is further configured to: determine the data request according to a preset data format the shared data request message corresponding to the message; send the shared data request message to the pending queue; extract the shared data request message from the pending queue through the host; The shared data request message is processed, and the target data is processed through the kernel of the host.

根据本公开的一个或多个实施例,示例15提供了示例14的装置,所述共享数据信息还包括完成队列,所述装置还包括:结果发送模块,用于通过所述宿主机的内核处理所述目标数据后,将处理结果发送至所述完成队列;结果提取模块,用于通过所述虚拟机从所述完成队列中提取所述目标数据对应的处理结果。According to one or more embodiments of the present disclosure, Example 15 provides the apparatus of Example 14, the shared data information further includes a completion queue, the apparatus further includes: a result sending module for processing through the kernel of the host machine After the target data is obtained, the processing result is sent to the completion queue; a result extraction module is configured to extract the processing result corresponding to the target data from the completion queue through the virtual machine.

根据本公开的一个或多个实施例,示例16提供了示例14的装置,所述映射块区域包括通知区域;所述装置还包括:通知模块,用于通过所述通知区域向所述宿主机发送数据处理请求消息;所述数据处理模块,还用于:在所述宿主机接收到所述数据处理请求消息后,从所述待处理队列中提取所述共享数据请求消息。According to one or more embodiments of the present disclosure, Example 16 provides the apparatus of Example 14, the map block area includes a notification area; the apparatus further includes: a notification module configured to notify the host through the notification area Sending a data processing request message; the data processing module is further configured to: after the host computer receives the data processing request message, extract the shared data request message from the queue to be processed.

根据本公开的一个或多个实施例,示例17提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理装置执行时实现示例1-8中任一示例所述方法的步骤。According to one or more embodiments of the present disclosure, Example 17 provides a computer-readable medium having stored thereon a computer program that, when executed by a processing apparatus, implements the steps of the method described in any one of Examples 1-8 .

根据本公开的一个或多个实施例,示例18提供了一种电子设备,包括:存储装置,其上存储有计算机程序;处理装置,用于执行所述存储装置中的所述计算机程序,以实现示例1-8中任一示例所述方法的步骤。According to one or more embodiments of the present disclosure, Example 18 provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device, to Implement the steps of the method of any of Examples 1-8.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) with similar functions.

此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Additionally, although operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although the above discussion contains several implementation-specific details, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Although the subject matter has been described in language specific to structural features and/or logical acts of method, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims. Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

Claims (11)

1.一种数据处理方法,其特征在于,所述方法包括:1. a data processing method, is characterized in that, described method comprises: 接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据;receiving a data request message triggered by a user through a virtual machine, where the data request message is used to request to process target data on a host machine running the virtual machine; 根据所述数据请求消息,确定所述目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于所述虚拟机与所述宿主机之间直接进行数据交互;determining shared data information corresponding to the target data according to the data request message, where the shared data information includes a shared queue, and the shared queue is used for direct data interaction between the virtual machine and the host; 根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。The target data is processed through the kernel of the host according to the data request message and the shared queue. 2.根据权利要求1所述的方法,其特征在于,所述共享数据信息还包括地址映射表,在所述根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据前,所述方法还包括:2. The method according to claim 1, wherein the shared data information further comprises an address mapping table, and in the described data request message and the shared queue, processed by the kernel of the host machine. Before describing the target data, the method further includes: 根据所述地址映射表,确定与所述虚拟机的物理地址对应的所述宿主机的虚拟地址;所述地址映射表包括所述虚拟机的物理地址与所述宿主机的虚拟地址之间的对应关系;According to the address mapping table, the virtual address of the host machine corresponding to the physical address of the virtual machine is determined; the address mapping table includes the relationship between the physical address of the virtual machine and the virtual address of the host machine Correspondence; 所述根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据包括:The processing of the target data through the kernel of the host computer according to the data request message and the shared queue includes: 根据所述虚拟地址、所述数据请求消息以及所述共享队列,通过所述宿主机的内核处理所述目标数据。The target data is processed by the kernel of the host according to the virtual address, the data request message and the shared queue. 3.根据权利要求2所述的方法,其特征在于,所述共享数据信息存储在共享映射空间中,所述虚拟机和所述宿主机均能够访问所述共享映射空间;在所述根据所述数据请求消息,确定所述目标数据对应的共享数据信息前,所述方法还包括:3. The method according to claim 2, wherein the shared data information is stored in a shared mapping space, and both the virtual machine and the host machine can access the shared mapping space; The data request message, before determining the shared data information corresponding to the target data, the method further includes: 确定所述共享映射空间中是否存在所述目标数据对应的共享队列;determining whether there is a shared queue corresponding to the target data in the shared mapping space; 所述根据所述数据请求消息,确定所述目标数据对应的共享数据信息包括:The determining, according to the data request message, the shared data information corresponding to the target data includes: 在确定所述共享映射空间中存在所述目标数据对应的共享队列的情况下,根据所述数据请求消息,确定所述目标数据对应的所述共享数据信息。When it is determined that there is a shared queue corresponding to the target data in the shared mapping space, the shared data information corresponding to the target data is determined according to the data request message. 4.根据权利要求3所述的方法,其特征在于,所述共享映射空间包括多个映射块区域,所述方法还包括:4. The method according to claim 3, wherein the shared mapping space comprises a plurality of mapping block regions, and the method further comprises: 在确定所述共享映射空间中不存在所述目标数据对应的共享队列的情况下,从所述共享映射空间中确定所述目标数据对应的映射块区域;In the case of determining that the shared queue corresponding to the target data does not exist in the shared mapping space, determine a mapping block area corresponding to the target data from the shared mapping space; 初始化所述映射块区域;initialize the map block area; 在所述映射块区域创建所述目标数据对应的共享队列。A shared queue corresponding to the target data is created in the mapping block area. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises: 将所述目标数据和所述目标数据对应的共享队列添加至预设队列关联关系,所述预设队列关联关系包括不同的数据和共享队列之间的对应关系。The target data and the shared queue corresponding to the target data are added to a preset queue association relationship, where the preset queue association relationship includes correspondence between different data and shared queues. 6.根据权利要求4所述的方法,其特征在于,所述共享队列包括待处理队列;所述根据所述虚拟地址、所述数据请求消息以及所述共享队列,通过所述宿主机的内核处理所述目标数据包括:6. The method according to claim 4, wherein the shared queue comprises a queue to be processed; the virtual address, the data request message and the shared queue are processed through the kernel of the host machine Processing the target data includes: 根据预设数据格式,确定所述数据请求消息对应的共享数据请求消息;determining a shared data request message corresponding to the data request message according to a preset data format; 将所述共享数据请求消息发送至所述待处理队列;sending the shared data request message to the pending queue; 通过所述宿主机从所述待处理队列中提取所述共享数据请求消息;Extracting the shared data request message from the queue to be processed by the host; 根据所述虚拟地址和所述共享数据请求消息,通过所述宿主机的内核处理所述目标数据。The target data is processed by the kernel of the host according to the virtual address and the shared data request message. 7.根据权利要求6所述的方法,其特征在于,所述共享数据信息还包括完成队列,所述方法还包括:7. The method according to claim 6, wherein the shared data information further comprises a completion queue, the method further comprising: 通过所述宿主机的内核处理所述目标数据后,将处理结果发送至所述完成队列;After the target data is processed by the kernel of the host, the processing result is sent to the completion queue; 通过所述虚拟机从所述完成队列中提取所述目标数据对应的处理结果。The processing result corresponding to the target data is extracted from the completion queue by the virtual machine. 8.根据权利要求6所述的方法,其特征在于,所述映射块区域包括通知区域;在所述通过所述宿主机从所述待处理队列中提取所述共享数据请求消息前,所述方法还包括:8 . The method according to claim 6 , wherein the mapping block area includes a notification area; before extracting the shared data request message from the queue to be processed by the host, the Methods also include: 通过所述通知区域向所述宿主机发送数据处理请求消息;Send a data processing request message to the host through the notification area; 所述通过所述宿主机从所述待处理队列中提取所述共享数据请求消息包括:The extracting the shared data request message from the to-be-processed queue by the host includes: 在所述宿主机接收到所述数据处理请求消息后,从所述待处理队列中提取所述共享数据请求消息。After the host computer receives the data processing request message, it extracts the shared data request message from the queue to be processed. 9.一种数据处理装置,其特征在于,所述装置包括:9. A data processing device, characterized in that the device comprises: 数据请求消息接收模块,用于接收用户通过虚拟机触发的数据请求消息,所述数据请求消息用于请求处理运行所述虚拟机的宿主机上的目标数据;a data request message receiving module, configured to receive a data request message triggered by a user through a virtual machine, where the data request message is used to request to process target data on the host machine running the virtual machine; 共享数据信息确定模块,用于根据所述数据请求消息,确定所述目标数据对应的共享数据信息,所述共享数据信息包括共享队列,所述共享队列用于所述虚拟机与所述宿主机的内核之间直接进行数据交互;A shared data information determination module, configured to determine the shared data information corresponding to the target data according to the data request message, where the shared data information includes a shared queue, and the shared queue is used for the virtual machine and the host machine Direct data interaction between the kernels; 数据处理模块,用于根据所述数据请求消息和所述共享队列,通过所述宿主机的内核处理所述目标数据。A data processing module, configured to process the target data through the kernel of the host according to the data request message and the shared queue. 10.一种计算机可读介质,其上存储有计算机程序,其特征在于,该程序被处理装置执行时实现权利要求1-8中任一项所述方法的步骤。10. A computer-readable medium on which a computer program is stored, characterized in that, when the program is executed by a processing device, the steps of the method according to any one of claims 1-8 are implemented. 11.一种电子设备,其特征在于,包括:11. An electronic device, characterized in that, comprising: 存储装置,其上存储有至少一个计算机程序;a storage device having at least one computer program stored thereon; 至少一个处理装置,用于执行所述存储装置中的所述至少一个计算机程序,以实现权利要求1-8中任一项所述方法的步骤。At least one processing device for executing the at least one computer program in the storage device to implement the steps of the method of any one of claims 1-8.
CN202210287992.5A 2022-03-22 2022-03-22 Data processing method, device, readable medium and electronic device Active CN114625481B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210287992.5A CN114625481B (en) 2022-03-22 2022-03-22 Data processing method, device, readable medium and electronic device
PCT/CN2023/082365 WO2023179508A1 (en) 2022-03-22 2023-03-18 Data processing method and apparatus, readable medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210287992.5A CN114625481B (en) 2022-03-22 2022-03-22 Data processing method, device, readable medium and electronic device

Publications (2)

Publication Number Publication Date
CN114625481A true CN114625481A (en) 2022-06-14
CN114625481B CN114625481B (en) 2024-04-05

Family

ID=81904903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210287992.5A Active CN114625481B (en) 2022-03-22 2022-03-22 Data processing method, device, readable medium and electronic device

Country Status (2)

Country Link
CN (1) CN114625481B (en)
WO (1) WO2023179508A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220911A (en) * 2022-06-17 2022-10-21 中科驭数(北京)科技有限公司 Resource management method, apparatus, device and medium
CN116010127A (en) * 2023-02-24 2023-04-25 荣耀终端有限公司 Message processing method, device and storage medium
WO2023179508A1 (en) * 2022-03-22 2023-09-28 北京有竹居网络技术有限公司 Data processing method and apparatus, readable medium and electronic device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117762572B (en) * 2024-01-03 2024-08-09 北京火山引擎科技有限公司 Unloading method and equipment for host and virtual machine shared directory file system
CN118037531A (en) * 2024-03-04 2024-05-14 北京七维视觉传媒科技有限公司 A texture sharing method based on UE5 and Windows memory
CN118034958B (en) * 2024-04-07 2024-08-06 阿里云计算有限公司 Task state notification system and method for multi-process scene
CN118733678B (en) * 2024-08-29 2024-11-15 成都阿加犀智能科技有限公司 Synchronization method, device, equipment and medium based on android/linux fusion system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667144A (en) * 2009-09-29 2010-03-10 北京航空航天大学 Virtual machine communication method based on shared memory
CN111367472A (en) * 2020-02-28 2020-07-03 北京百度网讯科技有限公司 Virtualization method and apparatus
CN111679921A (en) * 2020-06-09 2020-09-18 Oppo广东移动通信有限公司 Memory sharing method, memory sharing device and terminal device
CN113867993A (en) * 2021-12-03 2021-12-31 维塔科技(北京)有限公司 Virtualized RDMA method, system, storage medium and electronic device
CN114077480A (en) * 2022-01-19 2022-02-22 维塔科技(北京)有限公司 Method, device, equipment and medium for sharing memory between host and virtual machine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9612973B2 (en) * 2013-11-09 2017-04-04 Microsoft Technology Licensing, Llc Using shared virtual memory resources for performing memory-mapping
CN114625481B (en) * 2022-03-22 2024-04-05 北京有竹居网络技术有限公司 Data processing method, device, readable medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667144A (en) * 2009-09-29 2010-03-10 北京航空航天大学 Virtual machine communication method based on shared memory
CN111367472A (en) * 2020-02-28 2020-07-03 北京百度网讯科技有限公司 Virtualization method and apparatus
CN111679921A (en) * 2020-06-09 2020-09-18 Oppo广东移动通信有限公司 Memory sharing method, memory sharing device and terminal device
CN113867993A (en) * 2021-12-03 2021-12-31 维塔科技(北京)有限公司 Virtualized RDMA method, system, storage medium and electronic device
CN114077480A (en) * 2022-01-19 2022-02-22 维塔科技(北京)有限公司 Method, device, equipment and medium for sharing memory between host and virtual machine

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023179508A1 (en) * 2022-03-22 2023-09-28 北京有竹居网络技术有限公司 Data processing method and apparatus, readable medium and electronic device
CN115220911A (en) * 2022-06-17 2022-10-21 中科驭数(北京)科技有限公司 Resource management method, apparatus, device and medium
CN116010127A (en) * 2023-02-24 2023-04-25 荣耀终端有限公司 Message processing method, device and storage medium
CN116010127B (en) * 2023-02-24 2023-08-29 荣耀终端有限公司 Message processing method, device and storage medium
CN117009108A (en) * 2023-02-24 2023-11-07 荣耀终端有限公司 Message processing methods, equipment and storage media

Also Published As

Publication number Publication date
WO2023179508A1 (en) 2023-09-28
CN114625481B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN114625481B (en) Data processing method, device, readable medium and electronic device
CN113287286B (en) Input/output processing in distributed storage nodes over RDMA
US20250138742A1 (en) Systems and methods for data transfer for computational storage devices
US20240311046A1 (en) Data storage method and apparatus, readable medium, and electronic device
CN111679921A (en) Memory sharing method, memory sharing device and terminal device
CN113886019B (en) Virtual machine creation method, device, system, medium and equipment
CN102971706A (en) Redirect information from a secure virtual machine to an unsecure virtual machine
CN113391860B (en) Service request processing method and device, electronic equipment and computer storage medium
WO2021013243A1 (en) Method for starting mini program, device, and computer storage medium
CN116774933A (en) Virtualization processing method of storage device, bridging device, system and medium
CN114691300A (en) Hot migration method of virtual machine instance
US20250181376A1 (en) Storage device control method and apparatus, electronic device, and storage medium
CN114637703A (en) Data access apparatus, method, readable medium and electronic device
US20250004819A1 (en) Data processing method and apparatus, and readable medium and computing device
CN114625536A (en) Video memory allocation method, device, medium and electronic equipment
CN115237589A (en) SR-IOV-based virtualization method, device and equipment
CN116089756A (en) A page component rendering method, device, equipment and medium
CN116954947A (en) Data request processing methods, devices, equipment and storage media
CN117539664B (en) Remote procedure call method, device and storage medium based on DPU
CN118612272A (en) Vehicle-mounted image transmission method, device, electronic device and storage medium
US12189726B2 (en) On-demand paging support for confidential computing
CN115242862A (en) Network request control method, device, medium and electronic equipment
CN110050272B (en) Secure mounting of external media
CN117891624B (en) Method, device and electronic device for inter-application communication based on virtualization device
CN115297169B (en) Data processing method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载