Data processing method and apparatus, and computer-readable storage medium
By dividing the REE side and the TEE side in the computing device and running the target VM on the TEE side, the problem that the virtual machine is easily attacked by hackers is solved, the security of user data is improved, and high-security management of the virtual machine is achieved.
Patent Information
- Application Number
- PCT/CN2024/086078
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-20
- Filing Date
- 2024-04-03
- Publication Date
- 2024-10-24
AI Technical Summary
Virtual machines in computing devices are easily attacked by hackers and cannot effectively guarantee the security of user data.
By dividing the hardware resources of the computing device into the REE side and the TEE side, the processor obtains the data to be processed on the REE side and runs the target VM on the TEE side. The security of the TEE side is higher than that of the REE side, thereby reducing the number of hacker attacks on trusted VMs. risks and improve the security of user data.
It effectively reduces the risk of virtual machines being attacked by hackers, improves the security of user data, and ensures the security and integrity of data processing by creating and managing trusted VMs on the TEE side.
Smart Images

Figure CN2024086078_24102024_PF_FP_ABST
Abstract
Description
Data processing method, device and computer-readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 20, 2023, with application number 202310459024.2, and priority to the Chinese patent application entitled “Data processing method, device and computer-readable storage medium”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of virtualization technology, and in particular to a data processing method, device, and computer-readable storage medium. Background Art
[0003] A virtual machine (VM) is a complete computer system with full hardware system functionality, simulated through software and running in a completely isolated environment. Any tasks that can be performed on a computing device (such as a server or smart terminal device) can also be performed in a VM. When creating a VM on a computing device, a portion of the physical machine's hard drive and memory capacity is used as the VM's hard drive and memory capacity. Each VM has its own independent hard drive and operating system, and users can operate the VM just as they would on a computing device.
[0004] Currently, virtual machines in computing devices are easily attacked by hackers and cannot guarantee the security of user data.
[0005] Summary of the Invention
[0006] The present application provides a data processing method, device, and computer-readable storage medium, which can reduce the risk of virtual machines being attacked by hackers and improve the security of user data.
[0007] In a first aspect, a data processing method is provided, which is applied to a computing device, wherein the hardware resources of the computing device are divided into a REE side and a TEE side. The method comprises the following steps: a processor obtains data to be processed on the REE side, and then runs a target VM on the TEE side to process the data to be processed, where the target VM is any VM of one or more VMs included on the TEE side.
[0008] In the above solution, since the TEE side includes one or more VMs, after the processor obtains the user's data to be processed on the REE side, it runs the VM on the TEE side to process the data to be processed. The security of the TEE side is higher than that of the REE side, so it can reduce the risk of trusted VMs being maliciously attacked by hackers and improve the security of user data.
[0009] In one possible implementation, before the processor obtains the data to be processed on the REE side, the method provided in the first aspect further includes the following steps: the processor obtains the configuration information of the target VM to be created on the REE side, and then creates the target VM on the TEE side according to the configuration information.
[0010] In one possible implementation, the method provided by the first aspect or any possible implementation of the first aspect further includes the following steps: a processor simulates and obtains first data on the REE side, then injects the first data into a target VM, and then runs the target VM on the TEE side according to the first data. The first data includes one or any combination of the following: a virtual interrupt of the target VM, a virtual clock used by the target VM, and an MMIO register used by the target VM.
[0011] In this implementation, the processor simulates the target VM's virtual interrupts, virtual clocks for the target VM, and MMIO registers for the target VM on the REE side, rather than simulating them on the TEE side. This makes the trusted computing base (TCB) on the TEE side relatively thin.
[0012] In one possible implementation, before the processor runs the target VM on the TEE side, the method provided by the first aspect or any possible implementation of the first aspect further includes the following step: the processor determines the integrity of the target VM.
[0013] Specifically, the processor can provide the configuration information of the target VM, the version information of the operating system installed on the target VM, and the APP name to the user on the REE side for integrity checking to ensure that the target VM meets the user's expectations and further improve the security of user data.
[0014] In one possible implementation, before the processor runs the target VM on the TEE side, the method provided by the first aspect or any possible implementation of the first aspect further includes the following step: the processor determines the legitimacy of the computing device.
[0015] Specifically, the processor can provide the computing device's certificate to the user on the TEE side for legitimacy checking to ensure that the computing device meets the user's expectations and further improve the security of user data.
[0016] In a possible implementation, when the specifications of the target VM are changed, the method provided by the first aspect or any possible implementation of the first aspect further includes the following step: the processor determines the legitimacy of the target VM after the specifications are changed.
[0017] In one possible implementation, the method provided by the first aspect or any possible implementation of the first aspect further includes the following steps: the processor obtains a first management command for the life cycle of the target VM on the REE side, and then performs one or any combination of the following operations on the target VM according to the first management command on the TEE side: power on, power off, specification change, migration, and release.
[0018] This implementation method can manage the life cycle of the VM on the TEE side.
[0019] In one possible implementation, the method provided by the first aspect or any possible implementation of the first aspect further includes the following steps: the processor obtains a second management command for the target VM on the REE side, and then performs one or any combination of the following operations on the target VM according to the second management command on the TEE side: installing an application, starting an application, shutting down an application, upgrading an application, and uninstalling an application.
[0020] This implementation method can manage the applications of the VM on the TEE side.
[0021] In one possible implementation, the method provided by the first aspect or any possible implementation of the first aspect further includes the following steps: when an exception occurs in the target VM, the processor establishes the context of the target VM on the TEE side, and then processes the exception that occurs in the target VM. After the processor has processed the exception that occurs in the target VM, the processor restores the context of the target VM to the target VM to resume the operation of the target VM.
[0022] In one possible implementation, the method provided by the first aspect or any possible implementation of the first aspect further includes the following steps: the processor performs one or any combination of the following operations on the TEE side: creating, changing or destroying the secondary page table of the target VM, where the secondary page table of the target VM refers to a page table that maps the virtual address of the target VM to an intermediate address, and maps the intermediate address to a physical address.
[0023] This implementation method can manage the secondary page table of the VM on the TEE side.
[0024] In one possible implementation, the method provided by the first aspect or any possible implementation of the first aspect further includes the following steps: the processor provides the processing result to the user on the REE side, and the processing result is obtained by the processor running the target VM on the TEE side to process the data to be processed.
[0025] In one possible implementation, the configuration information includes memory information allocated to the target VM and virtual processor core information, an operating system kernel, and a file system used by the target VM;
[0026] Specifically, the processor can create a target VM on the TEE side according to the configuration information in the following manner: the processor divides a first memory matching the memory information for use by the target VM from the memory resources on the TEE side, simulates a virtual processor core matching the virtual processor core information for use by the target VM on the TEE side, and stores the operating system kernel and the file system in the first memory.
[0027] This implementation enables the creation of a VM on the TEE side.
[0028] In one possible implementation, the processor can specifically store the operating system kernel and the file system in the first memory in the following manner: the processor determines the address of the first memory on the REE side based on the address of the memory resource on the REE side and the first offset, where the first offset is the offset between the address of the memory resource on the REE side and the address of the first memory, and then the processor stores the operating system kernel and the file system in the first memory on the TEE side based on the address of the first memory.
[0029] In one possible implementation, before the processor divides the first memory on the TEE side that matches the first memory information and is used by the target VM in the memory resources on the TEE side, the method provided by the first aspect or any possible implementation of the first aspect further includes the following steps: the processor divides the memory resources on the TEE side in the memory resources of the computing device.
[0030] In this implementation, the memory resources of the computing device are not statically divided at startup, but are dynamically divided by the processor. When a certain number of VMs have occupied all the memory resources on the dynamically divided TEE side and a new VM needs to be created, the processor can reallocate the memory resources of the computing device so that the reallocated memory resources on the TEE side can not only meet the memory requirements of the VMs that have been created, but also meet the memory requirements of the new VMs to be created, effectively reducing the complexity of memory management.
[0031] Optionally, when a certain number of VMs have occupied all the dynamically allocated memory resources on the TEE side and a new VM needs to be created, the processor can also determine whether there is free memory on the REE side. If there is free memory, part or all of the free memory can be allocated to the TEE side, and then memory that can be used by the new VM can be allocated from the part or all of the free memory on the TEE side. In this way, the complexity of memory management can also be reduced.
[0032] In one possible implementation, a first virtual machine manager is deployed on the REE side, and a second virtual machine manager is deployed on the TEE side. The operations performed by the processor on the REE side are performed by the processor running the first virtual machine manager, and the operations performed by the processor on the TEE side are performed by the processor running the second virtual machine manager.
[0033] In a second aspect, a data processing apparatus is provided, which is applied to a computing device, wherein hardware resources of the computing device are divided into a REE side and a TEE side, and the apparatus includes:
[0034] The acquisition module is used to obtain the data to be processed on the REE side;
[0035] The processing module is used to run a target VM on the TEE side to process the data to be processed, where the target VM is any one of the one or more VMs included on the TEE side.
[0036] In a possible implementation, the acquisition module is used to obtain configuration information of the target VM to be created on the REE side; the processing module is also used to create the target VM on the TEE side according to the configuration information.
[0037] In one possible implementation, a processing module is configured to simulate obtaining first data on the REE side, where the first data includes one or any combination of the following: a virtual interrupt of a target VM, a virtual clock used by the target VM, and an MMIO register used by the target VM; the processing module is configured to inject the first data into the target VM; and the processing module is configured to run the target VM according to the first data on the TEE side.
[0038] In a possible implementation manner, the data processing device provided by the second aspect or any possible implementation manner of the second aspect further includes: a first verification module, configured to determine the integrity of the target VM.
[0039] In a possible implementation manner, the data processing apparatus provided by the second aspect or any possible implementation manner of the second aspect further includes: a second verification module, configured to determine the legitimacy of the computing device.
[0040] In a possible implementation, when the specifications of the target VM are changed, the first verification module is further configured to determine the legitimacy of the target VM after the specifications are changed.
[0041] In one possible implementation, the acquisition module is used to obtain the first management command for the life cycle of the target VM on the REE side; the processing module is also used to perform one or any combination of the following operations on the target VM according to the first management command on the TEE side: power on, power off, change specifications, migrate, and release.
[0042] In one possible implementation, the acquisition module is used to obtain a second management command for the target VM on the REE side; the processing module is also used to perform one or any combination of the following operations on the target VM according to the second management command on the TEE side: installing an application, starting an application, shutting down an application, upgrading an application, and uninstalling an application.
[0043] In one possible implementation, the processing module is also used to: establish the context of the target VM on the TEE side when an exception occurs in the target VM; process the exception that occurs in the target VM; and restore the context of the target VM to the target VM after processing the exception that occurs in the target VM to resume the operation of the target VM.
[0044] In one possible implementation, the processing module is also used to perform one or any combination of the following operations on the TEE side: create, change, or destroy the secondary page table of the target VM, where the secondary page table of the target VM refers to a page table that maps the virtual address of the target VM to an intermediate address, and maps the intermediate address to a physical address.
[0045] In a possible implementation, the processing module is further configured to provide a processing result to a user on the REE side, where the processing result is obtained by the processor running the target VM on the TEE side to process the data to be processed.
[0046] In one possible implementation, the configuration information includes memory information allocated to the target VM and virtual processor core information, operating system kernel and file system used by the target VM; the processing module is specifically used to: divide the first memory matching the memory information and used by the target VM from the memory resources on the TEE side; simulate a virtual processor core matching the virtual processor core information and used by the target VM on the TEE side; and store the operating system kernel and file system in the first memory.
[0047] In one possible implementation, the processing module is specifically used to: determine the address of the first memory on the REE side based on the address of the memory resource on the REE side and the first offset, where the first offset is the offset between the address of the memory resource on the REE side and the address of the first memory; and store the operating system kernel and the file system in the first memory on the TEE side based on the address of the first memory.
[0048] In a possible implementation, the processing module is further configured to: partition the memory resources of the computing device into memory resources on the TEE side.
[0049] For the relevant beneficial effects and descriptions of the data processing device provided by the second aspect and any implementation method of the second aspect, please refer to the relevant beneficial effects and descriptions of the aforementioned first aspect and any implementation method of the first aspect, and will not be repeated here.
[0050] In a third aspect, a computing device is provided, comprising a processor and a memory; the processor is configured to execute instructions stored in the memory, so that the computing device implements the method provided in the first aspect or any possible implementation of the first aspect.
[0051] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and the instructions are used to implement the method provided in the first aspect or any possible implementation of the first aspect.
[0052] In a fifth aspect, a computer program product is provided, comprising a computer program. When the computer program is read and executed by a computing device, the computing device executes the method provided in the first aspect or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] FIG1 is a schematic diagram of the hardware architecture of an ARM processor provided in an embodiment of the present application;
[0054] FIG2 is a schematic diagram of a process of layer 2 memory address translation provided by an embodiment of the present application;
[0055] FIG3 is a schematic diagram of the structure of an ARM architecture server provided in an embodiment of the present application;
[0056] FIG4 is a schematic diagram of the structure of an ARM architecture smart terminal provided in an embodiment of the present application;
[0057] FIG5 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0058] FIG6 is a flow chart of a data processing method provided in an embodiment of the present application;
[0059] FIG7 is a schematic diagram of an offset between an address of a memory resource on the REE side and an address of a memory corresponding to a trusted VM provided by an embodiment of the present application;
[0060] FIG8 is a schematic diagram of the structure of another computing device provided in an embodiment of the present application;
[0061] FIG9 is a schematic diagram of a process of creating and running a trusted VM from the perspective of a first virtual machine manager according to an embodiment of the present application;
[0062] FIG10 is a schematic structural diagram of a data processing device exemplarily shown in an embodiment of the present application;
[0063] FIG11 is a schematic diagram of the structure of another computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The technical solution provided in this application will be described below in conjunction with the accompanying drawings.
[0065] In order to make the technical solution provided by this application clearer, the relevant terms are first explained.
[0066] (1) Ordinary VM refers to the VM included in the rich execution environment (REE) side.
[0067] (2) Trusted VM refers to the VM included in the trusted execution environment (TEE) side.
[0068] As the performance of advanced RISC (ARM) processors continues to improve, computing devices running ARM processors, such as servers and smart devices, have brought significant convenience to people's lives. At the same time, computing devices carry increasing amounts of user data, and users are increasingly concerned about the security of their computing devices. TrustZone technology is currently the mainstream system-level solution for ARM processors.
[0069] TrustZone technology, first introduced as a security extension in ARMv6, divides a computing device's hardware resources into two worlds: the REE side (also known as the non-secure world) and the TEE side (also known as the secure world). As a hardware security feature, TrustZone operates on the TEE side.
[0070] The REE side doesn't necessarily mean that the operating system (OS) or software running on it is malicious, but rather that the security environment it inhabits is less secure than the TEE side. When the processor operates on the REE side, access to TEE resources (such as registers, memory, cache, and peripherals) is prohibited. Any attempt by the processor to access these resources will result in a system crash. For example, TrustZone can configure the trustzone address space controller (TZASC) and trustzone memory adapter (TZMA) registers to set sensitive memory as secure memory, preventing access from the REE side. When the processor operates on the TEE side, it can access resources on both the TEE and REE sides. Because the TEE side has higher privileges than the REE operating system, TrustZone can serve as a root of trust, providing a higher level of security protection for the REE operating system.
[0071] Figure 1 depicts the ARMv8.4 hardware architecture. The left side shows the REE architecture, and the right side shows the TEE architecture. The REE has four operating modes: exception level 0 (EL0), EL1, EL2, and EL3. The TEE also has four operating modes: secure exception level 0 (SEL0), SEL1, SEL2, and SEL3. EL0 is also known as user mode, EL1 as kernel mode, EL2 as hypervisor mode, and EL3 as monitor mode. A higher value indicates a higher exception level, while a lower value indicates a lower exception level.
[0072] Operating systems closely connected to users run in EL0 / SEL0 and EL1 / SEL1 modes on the REE / TEE side. Virtual machine managers (such as hypervisors and kernel-based virtual machines (KVM)) run in EL2 / SEL2 mode. ARM trusted firmware runs in EL3 / SEL3 mode. ARM trusted firmware (ATF) is the first thing that runs when the processor boots. ARM trusted firmware provides many services, such as platform initialization, trusted operating system installation, and command routing in EL3 mode.
[0073] To support memory virtualization, ARM introduced a memory virtualization technology called stage-2 translation. This technology, as shown in Figure 2, transforms the typical stage-2 translation of virtual addresses (VA) to physical addresses (PA) into a two-stage translation process: from VA to an intermediate physical address (IPA), and then from IPA to PA. The stage-2 translation process (IPA->PA) is fully controlled by the virtual machine manager and is transparent to the operating system. The operating system sees the IPA as its "physical address." By setting the access control bit attributes of the stage-2 translation page table entry (page table descriptor), the virtual machine manager can control the operating system's memory access. Page table entries contain three control bits: read (R), write (W), and execute (X). The read and write control bits are related to memory data protection, while the execute control bit is related to memory code execution. By configuring the read, write, and execute control bits, the virtual machine manager can monitor access to physical memory at a page granularity, thereby protecting relevant sensitive information.
[0074] The above is an introduction to the ARM processor. The following is an introduction to the application scenarios involved in the embodiments of this application.
[0075] Scenario 1. The method provided in the embodiment of the present application can be applied to a server scenario based on the ARM architecture, as shown in FIG3 . In this scenario, both the REE side and the TEE side support hardware virtualization features. The tenant will establish multiple ordinary VMs on the REE side (in FIG3 , the REE side includes two ordinary VMs as an example). An operating system is installed in each ordinary VM, and the operating system includes an operating system kernel (kernel). Applications (applications, APPs) can be installed in the operating system. The virtual machine manager is used to manage the multiple ordinary VMs. One or more TEE operating systems (TEE OS) are installed on the TEE side (in FIG3 , the TEE side includes two TEE OSs as an example). The TEE OS also includes an operating system kernel, and APPs can be installed in the TEE OS. In order to provide TEE support, when a certain ordinary VM is started, a TEE OS will be run on the TEE side accordingly to support the security services in the ordinary VM. During operation, the APP in the ordinary VM will request the security services of the corresponding APP in the TEE OS.
[0076] Scenario 2: The method provided in the embodiment of the present application can also be applied to smart terminal scenarios based on the ARM architecture (such as portable devices such as smartphones). As shown in Figure 4, in the smart terminal scenario, although the demand for starting multiple VMs on the REE side is not strong, when the memory virtualization feature on the REE side is turned on, the operating system on the REE side that is closely related to the user can be considered to be running in an ordinary VM, so the interaction between the REE and TEE can also be regarded as the interaction between an ordinary VM and TEE.
[0077] In the above scenarios 1 and 2, the VM is easily attacked by hackers when processing user services, and the security of user data cannot be guaranteed. The computing device and data processing method provided in the embodiments of the present application can be used to reduce the risk of VM being attacked by hackers and improve the security of user data. The computing device and data processing method provided in the embodiments of the present application are introduced below.
[0078] Please refer to Figure 5, which is a schematic diagram of a computing device 500 provided in an embodiment of the present application. As shown in Figure 5, the hardware resources of the computing device 500 are divided into a REE side and a TEE side. The TEE side includes one or more trusted VMs. In Figure 5, the TEE side includes two trusted VMs as an example. The REE side can include one or more ordinary VMs. In Figure 5, the REE side includes 2 ordinary VMs as an example.
[0079] A trusted VM, like a regular VM, has an operating system installed, including an operating system kernel and apps. A trusted VM may also contain a container (not shown in Figure 5). The operating system installed in a trusted VM can be a rich operating system such as Linux, or other types of operating systems, and this application does not limit this.
[0080] The following describes the process of data processing performed by the computing device shown in FIG5 in conjunction with the flowchart of a data processing method provided in an embodiment of the present application shown in FIG6 .
[0081] As shown in FIG6 , the method includes the following steps:
[0082] S601: The processor obtains data to be processed on the REE side.
[0083] S602: The processor injects the data to be processed into a target trusted VM on the TEE side, where the target trusted VM is any trusted VM among one or more trusted VMs included in the TEE side.
[0084] S603: The processor runs the target trusted VM on the TEE side to process the data to be processed.
[0085] The data to be processed can be facial images to be recognized, voice signals to be recognized, text data to be recognized, etc. It can also be models to be trained and training data, or data to be encrypted and stored. This application does not specifically limit the data to be processed.
[0086] The data to be processed can be input into the computing device 500 by the user through the interface provided by the computing device 500. After obtaining the data to be processed input by the user, the computing device 500 stores the data to be processed in the memory on the REE side. The subsequent processor reads the data to be processed from the memory on the REE side and runs the target trusted VM for processing.
[0087] In this embodiment, when the data to be processed is a facial image to be subjected to face recognition / a voice signal to be subjected to voice recognition / text data to be subjected to text recognition, the processor runs the target trusted VM on the TEE side to recognize the facial image / voice signal / text data to obtain the corresponding recognition result, and then provides the recognition result to the user on the REE side. When the data to be processed is a model to be trained and training data, the processor runs the target trusted VM on the TEE side to train the model using the training data to obtain a trained model, and then provides the trained model to the user on the REE side. In other words, the trusted VM on the TEE side communicates with the external network of the computing device 500 through the REE side. It can be understood that this can improve the security of the trusted VM.
[0088] When the data to be processed is data to be encrypted and stored, the processor runs the target trusted VM on the TEE side to encrypt the data and then stores it in the corresponding location.
[0089] It can be seen that in the embodiment of the present application, the computing device 500 creates a trusted VM on the TEE side and runs the trusted VM on the TEE side to process user business. Since the security of the TEE side is higher than that of the REE side, the risk of the trusted VM being maliciously attacked by hackers is greatly reduced, thereby improving the security of user data.
[0090] It is understood that before computing device 500 executes the data processing method shown in FIG6 , it is necessary to first create one or more trusted VMs on the TEE side. It is also understood that after computing device 500 creates one or more trusted VMs on the TEE side, it can also manage the one or more trusted VMs. The above processes are described in detail below.
[0091] (1) The computing device 500 creates a trusted VM on the TEE side:
[0092] The processor of the computing device 500 obtains the configuration information of the trusted VM to be created on the REE side, and then creates the trusted VM on the TEE side according to the configuration information of the trusted VM. The configuration information includes the specifications of the trusted VM to be created, such as the size of the memory, the type of the memory, the size of the memory, the type of the memory, the type of the processor core, the number of processor cores, the computing speed of the processor core, the number of cores of the processor core, the network bandwidth, the operating system kernel and the file system, etc. When creating the trusted VM, the processor can provide the trusted VM with virtual hardware resources that match the configuration information based on the configuration information. For example, based on the memory information included in the configuration information, the processor can divide the memory resources on the TEE side into memory that matches the memory information and is used by the trusted VM, simulate the virtual processor core that matches the processor core information and is used by the trusted VM based on the processor core information included in the configuration information, and load the operating system kernel and file system included in the configuration information into the memory corresponding to the trusted VM, etc., thereby achieving the creation of the trusted VM.
[0093] The way in which the processor loads the operating system kernel and the file system into the memory corresponding to the trusted VM can be: the processor determines the address of the memory corresponding to the trusted VM on the REE side based on the address of the memory resource on the REE side and the first offset (referring to the offset between the address of the memory resource on the REE side and the address of the memory corresponding to the trusted VM, as shown in Figure 7), and then, based on the address corresponding to the trusted VM, loads the operating system kernel and the file system into the memory corresponding to the trusted VM.
[0094] The processor can obtain the configuration information of the trusted VM on the REE side by referring to either method 1 or method 2 below:
[0095] In method 1, the configuration information can be entered by the user on the interface of computing device 500. The user can enter the required processor core type, number of processor cores, computing power requirements, memory type, number of memory, memory size, memory type, network bandwidth requirements, and so on according to their needs. In this case, the trusted VM can be understood as customized. After obtaining the configuration information entered by the user, computing device 500 stores it in the memory on the REE side, and the processor subsequently retrieves the configuration information from the memory on the REE side.
[0096] In method 2, the user can select configuration information from a variety of possible configurations provided by the computing device 500 interface. This means that the user can only select from a variety of configurations and cannot independently determine the processor core type, number of processor cores, required computing power, memory type, number of memories, memory size, memory type, network bandwidth requirements, and so on based on their needs. In this case, the trusted VM can be understood as provided by specification, and the user can only select the appropriate specification from a limited set of specifications. After obtaining the user-selected configuration information, the computing device 500 stores it in the REE's memory, from which the processor subsequently retrieves the configuration information.
[0097] It should be noted that the above-mentioned methods 1 and 2 are merely examples of how the processor obtains the configuration information of the trusted VM on the REE side. For example, the processor can obtain part of the configuration information of the trusted VM through the above-mentioned method 1 and obtain another part of the configuration information of the trusted VM through the above-mentioned method 2. This application does not specifically limit this.
[0098] (2) The computing device 500 manages the trusted VM:
[0099] ① The computing device 500 manages the life cycle of the trusted VM.
[0100] The processor of the computing device 500 can obtain the first management command for the life cycle of the trusted VM on the REE side, and then perform one or any combination of the following operations on the trusted VM according to the first management command on the TEE side: power on, power off, change specifications, migrate, and release (destruction).
[0101] Specifically, before releasing a trusted VM, the processor may first determine whether the trusted VM is in a non-operating state. If the trusted VM is determined to be in a non-operating state, the processor releases the trusted VM. If the trusted VM is determined to be in an operating state, the processor waits for the trusted VM to complete its operation before releasing the trusted VM. The specific process of the processor releasing the trusted VM may include erasing the trusted VM's context information, erasing the content related to the trusted VM in the computing device's memory, and releasing resources occupied by the trusted VM, such as memory.
[0102] ② The computing device 500 manages the APP on the trusted VM.
[0103] The processor of the computing device 500 can obtain the second management command for the trusted VM on the REE side, and then perform one or any combination of the following operations on the trusted VM according to the second management command on the TEE side: install, start, shut down, upgrade and uninstall the APP.
[0104] ③ The computing device 500 manages the secondary page table of the trusted VM.
[0105] The processor of the computing device 500 can create, modify or destroy the secondary page table of the trusted VM on the TEE side. The secondary page table of the trusted VM refers to the page table that maps the VA of the trusted VM to IPA and maps IPA to PA.
[0106] ④ The computing device 500 manages the context of the trusted VM.
[0107] When an exception occurs in the trusted VM, the processor of the computing device 500 establishes a trusted VM context on the TEE side, then handles the exception of the target VM, and after handling the exception, restores the established trusted VM context to the trusted VM to resume running the trusted VM. Among them, the exceptions that occur in the trusted VM can be wait for interrupt (WFI), wait for event (WFE), execution of hypervisor call (HVC) instructions, execution of secure monitor call (SMC) instructions, reading and writing system registers, instruction abort (instruction abort), data abort (data abort), interrupt request (IRQ) and fast interrupt request (FIQ), power management instruction exit of the power management interface (PSCI), and system error exit.
[0108] ⑤ Before running the trusted VM, the computing device 500 checks the integrity of the trusted VM and the legitimacy of the computing device 500 itself.
[0109] Specifically, the processor can provide the configuration information of the trusted VM, the version information of the operating system installed on the trusted VM, the APP name, etc. to the user on the REE side for integrity checking to ensure that the trusted VM meets the user's expectations.
[0110] The processor can provide the certificate of the computing device 500 to the user on the TEE side for a legitimacy check to ensure that the computing device 500 meets the user's expectations.
[0111] Optionally, if the specification of the trusted VM is changed, the processor of the computing device 500 may re-determine the legitimacy of the trusted VM with the changed specifications before running the trusted VM with the changed specifications.
[0112] ⑥ The computing device 500 manages the various virtualization functions of the trusted VM.
[0113] Before running the trusted VM on the TEE side, the processor of the computing device 500 may also obtain one or any combination of the following on the REE side or the TEE side: the trusted VM's virtual interrupt, the virtual clock used by the trusted VM, and the memory-mapped input / output (MMI / O) registers used by the trusted VM, etc., and then inject this information into the trusted VM. After that, the target VM is run based on this information. Among them, the virtual clock can be used by the trusted VM to measure time intervals, and the purpose of the trusted VM measuring time intervals can be to perform task scheduling. The MMI / O registers can be used by the trusted VM to access I / O devices like accessing memory.
[0114] It is understandable that if the processor obtains information such as the virtual interrupt of the trusted VM and the virtual clock used by the trusted VM on the REE side instead of obtaining this information on the TEE side, the trusted computing base (TCB) on the TEE side can be made thinner.
[0115] ⑦ The computing device 500 manages the communication between the trusted VM and the external network of the computing device 500.
[0116] The processor of the computing device 500 can forward the messages related to the trusted VM from the external network of the computing device 500 obtained on the REE side to the trusted VM on the TEE side, and can also provide the messages sent by the trusted VM to the external network of the computing device 500 to the external network of the computing device 500 through the REE side.
[0117] It should be noted that in addition to performing the above operations, the processor of the computing device 500 can also perform other operations, such as creating, modifying and destroying the secondary page table on the REE side. This application does not specifically limit the operations that the processor of the computing device 500 can perform.
[0118] In a possible embodiment, the TEE side of the computing device 500 may include, in addition to the trusted VM, a virtual machine manager for managing the trusted VM. In order to distinguish the virtual machine manager on the TEE side from the virtual machine manager on the REE side, in the following embodiments, the virtual machine manager on the REE side is referred to as the first virtual machine manager, and the virtual machine manager on the TEE side is referred to as the second virtual machine manager, as shown in Figure 8.
[0119] In the computing device 500 shown in Figure 8, the operations performed by the processor of the computing device 500 on the REE side can be implemented by the processor running the first virtual machine manager on the REE side, and the operations performed by the processor of the computing device 500 on the TEE side can be implemented by the processor running the second virtual machine manager on the TEE side.
[0120] In a possible embodiment, as shown in FIG8 , the REE side may further include a shadow of the trusted VM. The shadow of the trusted VM may be used by the processor to save the context of the trusted VM when the processor stops running the trusted VM and runs other programs. When the processor finishes executing other programs and resumes running the trusted VM, the processor restores the context of the trusted VM saved in the shadow of the trusted VM to the trusted VM, thereby resuming the operation of the trusted VM.
[0121] To better understand the process of creating and running a trusted VM, the following describes the process of creating and running a trusted VM from the perspective of the first virtual machine manager, as shown in FIG9 . As shown in FIG9 , the process includes the following steps:
[0122] S901: The first virtual machine manager obtains configuration information of a trusted VM to be created, where the configuration information includes memory information allocated to the trusted VM, virtual processor core information used by the trusted VM, an operating system kernel, and a file system.
[0123] The configuration information may also include other content, which is not specifically limited in this application.
[0124] S902: The first virtual machine manager calls the VM creation interface provided by the second virtual machine manager, and passes the memory information allocated to the trusted VM to the second virtual machine manager, so that the second virtual machine manager divides the memory for the trusted VM in the memory resources on the TEE side based on the memory information.
[0125] S903: The first virtual machine manager calls the virtual processor core creation interface provided by the second virtual machine manager, and passes the virtual processor core information for the trusted VM to the second virtual machine manager, so that the second virtual machine manager simulates a virtual machine processor core for the trusted VM based on the virtual processor core information.
[0126] S904: The first virtual machine manager calls the communication interface provided by the second virtual machine manager, and passes the operating system kernel and file system for use by the trusted VM to the second virtual machine manager, so that the second virtual machine manager stores the operating system kernel and file system for use by the trusted VM in the above-mentioned memory for use by the trusted VM, thereby completing the creation of the trusted VM.
[0127] S905: The first virtual machine manager calls the VM running interface provided by the second virtual machine manager, passes the virtual interrupt, virtual clock and MMIO register of the trusted VM to the second virtual machine manager, so that the second virtual machine manager injects the virtual interrupt, virtual clock and MMIO register into the trusted VM and starts running the trusted VM.
[0128] S906: During the operation of the trusted VM, if an exception occurs in the trusted VM that needs to be handled by the first virtual machine manager, handle the exception of the trusted VM.
[0129] S907: After processing the exception of the trusted VM, the first virtual machine manager calls the VM running interface provided by the second virtual machine manager again to resume the running of the trusted VM.
[0130] The traditional way of using TrustZone is to statically divide all the memory resources of a computing device at startup. In other words, the memory resources of the computing device are statically divided into memory resources on the REE side and memory resources on the TEE side at startup. This will result in the processor being able to allocate the fixed-size TEE-side memory resources that have been divided to trusted VMs. When a certain number of trusted VMs have occupied all the TEE-side memory resources and new trusted VMs need to be created, the processor can only dynamically allocate from the fixed-size TEE-side memory resources to free up a piece of memory for the new trusted VM to be created, making memory management more complicated.
[0131] In the present application, the memory resources of the computing device 500 are not statically divided at startup. After the computing device 500 is started, the processor can dynamically divide the memory resources. When a certain number of trusted VMs occupy the dynamically divided TEE side memory resources and a new trusted VM needs to be created, the processor can dynamically re-divide the memory resources of the computing device 500. This allows the re-divided TEE side memory resources to not only meet the memory requirements of the trusted VMs that have been created, but also meet the memory requirements of the new trusted VMs to be created, effectively reducing the complexity of memory management.
[0132] Optionally, when a certain number of trusted VMs have occupied all the dynamically allocated memory resources on the TEE side and a new trusted VM needs to be created, the processor can also determine whether there is free memory on the REE side. If there is free memory, part or all of the free memory can be allocated to the TEE side, and then memory that can be used by the new trusted VM can be allocated from the part or all of the free memory on the TEE side. In this way, the complexity of memory management can also be reduced.
[0133] In a specific implementation, the operation of the processor dividing the memory resources of the computing device 500 may be performed by the processor running the first virtual machine manager on the REE side shown in FIG8 .
[0134] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0135] The data processing method provided by the present application is described in detail above. Based on the same inventive concept, the data processing apparatus and computing device provided by the present application are further introduced below.
[0136] It should be understood that the unit modules within the data processing device may be divided into various types. Each module may be a software module, a hardware module, or partly a software module and partly a hardware module. This application does not limit this. When the data processing device includes multiple unit modules, each of the multiple unit modules may be deployed on the same computing device or on different computing devices. This application does not impose any specific limitations.
[0137] Referring to Figure 10, Figure 10 is a schematic diagram of the structure of a data processing device 1000 exemplarily shown in an embodiment of the present application. It can be applied to the computing device 500 shown in Figure 5 in which the hardware resources are divided into the REE side and the TEE side. As shown in Figure 10, the data processing device 1000 includes: an acquisition module 1010 and a processing module 1020. The functions of each module of the data processing device 1000 are introduced below by way of example. It should be understood that the functions of each module described below are only functions that the data processing device 1000 may have in some embodiments of the present application, and the present application does not limit the functions of each module.
[0138] The acquisition module 1010 is configured to acquire the data to be processed on the REE side.
[0139] The processing module 1020 is used to run a target VM (ie, the above-mentioned target trusted VM) on the TEE side to process the data to be processed. The target VM is any VM among the one or more VMs (ie, trusted VMs) included in the TEE side.
[0140] In a possible embodiment, the acquisition module 1010 is used to acquire configuration information of a target VM to be created on the REE side; and the processing module 1020 is used to create the target VM according to the configuration information on the TEE side.
[0141] In a possible embodiment, the processing module 1020 is used to simulate and obtain first data on the REE side, where the first data includes one or any combination of the following: a virtual interrupt of the target VM, a virtual clock used by the target VM, and a memory-mapped input / output (MMIO) register used by the target VM; the processing module 1020 is used to inject the first data into the target VM; and the processing module 1020 is used to run the target VM according to the first data on the TEE side.
[0142] In a possible embodiment, the data processing apparatus 1000 further includes: a first verification module 1030 (not shown in FIG. 10 ), configured to determine the integrity of the target VM.
[0143] In a possible embodiment, the data processing apparatus 1000 further includes: a second verification module 1040 (not shown in FIG. 10 ), configured to determine the legitimacy of the computing device 500 to which the data processing apparatus 1000 belongs.
[0144] In a possible embodiment, when the specifications of the target VM are changed, the first verification module 1030 is further configured to determine the legitimacy of the target VM after the specifications are changed.
[0145] In one possible embodiment, the acquisition module 1010 is used to obtain a first management command for the life cycle of the target VM on the REE side; the processing module 1020 is used to perform one or any combination of the following operations on the target VM according to the first management command on the TEE side: power on, power off, change specifications, migrate, and release.
[0146] In a possible embodiment, the acquisition module 1010 is used to obtain a second management command for the target VM on the REE side; the processing module 1020 is used to perform one or any combination of the following operations on the target VM according to the second management command on the TEE side: install, start, shut down, upgrade and uninstall APP.
[0147] In a possible embodiment, the processing module 1020 is used to: establish the context of the target VM on the TEE side when an exception occurs in the target VM; process the exception that occurs in the target VM; and after processing the exception that occurs in the target VM, restore the context of the target VM to the target VM to resume the operation of the target VM.
[0148] In a possible embodiment, the processing module 1020 is used to perform one or any combination of the following operations on the TEE side: create, change or destroy the secondary page table of the target VM, where the secondary page table of the target VM refers to a page table that maps the virtual address of the target VM to an intermediate address, and maps the intermediate address to a physical address.
[0149] In a possible embodiment, the processing module 1020 is configured to provide a processing result to a user on the REE side, where the processing result is obtained by the processor running the target VM on the TEE side to process the data to be processed.
[0150] In a possible embodiment, the configuration information includes memory information allocated to the target VM and virtual processor core information, operating system kernel and file system for use by the target VM; the processing module 1020 is specifically used to: divide the first memory matching the memory information and for use by the target VM from the memory resources on the TEE side; simulate a virtual processor core matching the virtual processor core information and for use by the target VM on the TEE side; and store the operating system kernel and file system for use by the target VM in the first memory.
[0151] In a possible embodiment, the processing module 1020 is specifically used to: determine the address of the first memory on the REE side based on the address of the memory resource on the REE side and the first offset, where the first offset is the offset between the address of the memory resource on the REE side and the address of the first memory; and store the operating system kernel and file system for use by the target VM in the first memory on the TEE side based on the address of the first memory.
[0152] In a possible embodiment, the processing module 1020 is further configured to: divide the memory resources of the computing device 500 into memory resources on the TEE side.
[0153] Specifically, the specific implementation of various operations performed by the above-mentioned data processing device 1000 can refer to the description in the relevant content of the above-mentioned data processing method embodiment, and for the sake of brevity of the specification, it will not be repeated here.
[0154] Referring to FIG11 , FIG11 is a schematic diagram of the structure of a computing device 1100 provided in an embodiment of the present application. The computing device 1100 includes: a processor 1110, a memory unit 1120, a communication interface 1130, a storage 1140, an input device 1150, and an output device 1160. The processor 1110, the memory unit 1120, the communication interface 1130, the storage 1140, the input device 1150, and the output device 1160 can be interconnected via a bus 1170.
[0155] The processor 1110 can read the program code (including instructions) stored in the memory unit 1120 and execute the program code stored in the memory unit 1120, so that the computing device 1100 performs the steps in the data processing method provided by the above method embodiment.
[0156] The processor 1110 can have a variety of specific implementation forms. For example, the processor 1110 can be at least one central processing unit (CPU), as shown in Figure 11, including CPU0 and CPU1. The processor 1110 can also be a graphics processing unit (GPU), etc. The processor 1110 can also be a single-core processor or a multi-core processor. The processor 1110 can be a combination of a CPU and a hardware chip. The above-mentioned hardware chip can be implemented as an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The above-mentioned PLD can be implemented as a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The processor 1110 can also be implemented using a logic device with built-in processing logic, such as an FPGA or a digital signal processor (DSP).
[0157] The memory unit 1120 is used to store the kernel, program code, and program data generated when the processor 1110 executes the program code stored in the memory unit 1120. The program code includes the code of the acquisition module 1010 and the code of the processing module 1020, and the program data includes data to be processed, configuration information of the trusted VM, and processing results obtained by the trusted VM on the data to be processed.
[0158] The communication interface 1130 may be a wired interface (e.g., an Ethernet interface, a fiber optic interface, or other types of interfaces (e.g., an InfiniBand (IB) interface)) or a wireless interface (e.g., a cellular network interface or a wireless local area network interface) for communicating with other computing devices or apparatuses. When the communication interface 1130 is a wired interface, the communication interface 1130 may employ a protocol suite above the Transmission Control Protocol / Internet Protocol (TCP / IP), such as the Remote Function Call (RFC) protocol, the Simple Object Access Protocol (SOAP) protocol, the Simple Network Management Protocol (SNMP) protocol, the Common Object Request Broker Architecture (CORBA) protocol, and distributed protocols, etc.
[0159] The memory 1140 may be a non-volatile memory, such as a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The memory 1140 may also be a volatile memory, such as a random access memory (RAM), which is used as an external cache.
[0160] The input device 1150 may include a mouse and a keyboard, etc. The user may input data or instructions to the computing device 1100 through the input device 1150 , such as the aforementioned data to be processed, configuration information of the trusted VM, the first management instruction, the second management instruction, etc.
[0161] The output device 1160 may include a display, and the output device 1160 may provide data to the user through the display, such as providing the user with the results of the processing of the to-be-processed data by the trusted VM as described above. The display may include a cathode ray tube display (CRT), a plasma display panel (PDP), a liquid crystal display (LCD), and the like. Taking an LCD display as an example, the liquid crystal display includes a liquid crystal panel and a backlight module, wherein the liquid crystal display panel includes a polarizing film, a glass substrate, a black matrix, a color filter, a protective film, a common electrode, a calibration layer, a liquid crystal layer (liquid crystal, spacer, sealant), a capacitor, a display electrode, a prism layer, and a light-scattering layer. The backlight module includes: an illumination light source, a reflector, a light guide plate, a diffuser, a brightness enhancement film (prism sheet), and a frame, and the like.
[0162] Bus 1170 may be a Peripheral Component Interconnect Express (PCIe) or Extended Industry Standard Architecture (EISA) bus. Bus 1170 may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, FIG11 shows only one thick line, but this does not imply that there is only one bus or only one type of bus.
[0163] It should be understood that the computing device 1100 according to the embodiment of the present application may correspond to the computing device including the data processing device 1000 in the embodiment of the present application, and may correspond to executing the corresponding subject in the method shown in Figure 6 in the embodiment of the present application, and the operations and / or functions of each module in the computing device 1100 are respectively for implementing the corresponding process of the method shown in Figure 6. For the sake of brevity, they will not be repeated here.
[0164] It should be understood that computing device 1100 is only an example provided for an embodiment of the present application, and computing device 1100 may have more or fewer components than those shown in FIG. 11 , may combine two or more components, or may have different configuration implementations of components.
[0165] The present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed, some or all of the steps of the data processing method described in the above embodiment can be implemented.
[0166] The present application also provides a computer program product. When the computer program product is read and executed by a computer, it can implement some or all of the steps of the data processing method described in the above method embodiment.
[0167] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0168] In the above embodiments, it can be implemented in whole or in part by software, hardware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium, or a semiconductor medium.
[0169] The above is only a specific embodiment of the present application. Those skilled in the art may conceive of changes or substitutions based on the specific embodiment provided in this application, and all such changes or substitutions shall fall within the scope of protection of this application.
Claims
1. A data processing method, characterized in that: Applied to a computing device, the hardware resources of the computing device are divided into a rich execution environment (REE) side and a trusted execution environment (TEE) side, the method comprising: The processor obtains the data to be processed at the REE side; The processor runs a target virtual machine VM on the TEE side to process the data to be processed, and the target VM is any VM of one or more VMs included in the TEE side.
2. The method according to claim 1, characterized in that Before the processor obtains the data to be processed on the REE side, the method further includes: The processor obtains, on the REE side, configuration information of the target VM to be created; The processor creates the target VM on the TEE side according to the configuration information.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: The processor simulates and obtains first data at the REE side, where the first data includes one or any combination of the following: a virtual interrupt of the target VM, a virtual clock used by the target VM, and a memory-mapped input / output MMIO register used by the target VM; The processor injects the first data into the target VM; The processor runs the target VM on the TEE side, including: The processor runs the target VM according to the first data on the TEE side.
4. The method according to any one of claims 1 to 3, characterized in that: Before the processor runs the target VM on the TEE side, the method further includes: The processor determines the integrity of the target VM.
5. The method according to any one of claims 1 to 4, characterized in that: Before the processor runs the target VM on the TEE side, the method further includes: The processor determines the legitimacy of the computing device.
6. The method according to claim 4 or 5, characterized in that: In the case where the specification of the target VM is changed, the method further includes: The processor determines the legitimacy of the target VM after the specification is changed.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The processor obtains, on the REE side, a first management command for the life cycle of the target VM; The processor performs one or any combination of the following operations on the target VM at the TEE side according to the first management command: power on, power off, specification change, migration, and release.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: The processor obtains, at the REE side, a second management command for the target VM; The processor performs one or any combination of the following operations on the target VM at the TEE side according to the second management command: installing the application, starting the application, closing the application, upgrading the application, and uninstalling the application.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: When an exception occurs in the target VM, the processor establishes a context of the target VM on the TEE side; The processor processes an exception that occurs in the target VM; When the processor finishes processing the exception occurring in the target VM, the processor restores the context of the target VM to the target VM to resume the operation of the target VM.
10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: The processor performs one or any combination of the following operations on the TEE side: Create, modify or destroy the secondary page table of the target VM, where the secondary page table of the target VM refers to a page table that maps the virtual address of the target VM to an intermediate address and maps the intermediate address to a physical address.
11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: The processor provides a processing result to a user on the REE side, where the processing result is obtained by the processor running the target VM on the TEE side to process the data to be processed.
12. The method according to any one of claims 2 to 11, characterized in that The configuration information includes memory information allocated to the target VM and virtual processor core information, operating system kernel and file system used by the target VM; The processor creates the target VM on the TEE side according to the configuration information, including: The processor divides a first memory matching the memory information and used by the target VM from the memory resources on the TEE side; The processor simulates, on the TEE side, a virtual processor core that matches the virtual processor core information and is used by the target VM; The processor stores the operating system kernel and the file system in the first memory.
13. The method according to claim 12, characterized in that The processor stores the operating system kernel and the file system in the first memory, including: The processor determines, at the REE side, an address of the first memory according to an address of a memory resource on the REE side and a first offset, where the first offset is an offset between the address of the memory resource on the REE side and the address of the first memory; The processor stores the operating system kernel and the file system in the first memory according to the address of the first memory on the TEE side.
14. The method according to claim 12 or 13, characterized in that Before the processor divides out a first memory matching the first memory information and used by the target VM from the memory resources on the TEE side, the method further includes: The processor divides the memory resources of the TEE side from the memory resources of the computing device.
15. The method according to any one of claims 1 to 14, characterized in that A first virtual machine manager is deployed on the REE side, and a second virtual machine manager is deployed on the TEE side. The operations performed by the processor on the REE side are performed by the processor running the first virtual machine manager, and the operations performed by the processor on the TEE side are performed by the processor running the second virtual machine manager.
16. A computing device, characterized in that The computing device comprises a processor and a memory; the processor of the computing device is used to execute instructions stored in the memory of the computing device, so that the computing device executes the method according to any one of claims 1 to 15.
17. A computer-readable storage medium, characterized in that: The method comprises computer program instructions, and when the computer program instructions are executed by a computing device, the computing device performs the method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Data processing method and device and computer readable storage medium
CN118821113A
Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN102799464A
Security system implementation method based on virtual security element in trusted execution environment
CN104899506A
Virtual encryption machine platform based on trusted technology and creation method thereof
CN114117412A
Virtualization implementation method and device, electronic equipment, medium and ARM (Advanced RISC Machines) platform
CN114625484A
