A secure virtual machine management method and related equipment
By performing security checks before the secure virtual machine enters any life stage, the problem of security vulnerabilities in the life cycle of the secure virtual machine in the existing technology is solved, and security assurance throughout the entire life cycle is achieved.
Patent Information
- Application Number
- CN202410674563.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing secure virtual machines may have security vulnerabilities at certain stages in their lifecycle and fail to remain secure throughout their lifecycle.
Before a secure virtual machine enters any life stage, the application processor sends a security check request to the security coprocessor, which performs a security check and decides whether to allow the virtual machine to enter this stage based on the check results.
The security of the secure virtual machine is ensured throughout its life cycle, preventing data leakage and other security risks.
Smart Images

Figure CN118260027B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a secure virtual machine management method and related equipment. Background Art
[0002] As a computer technology mainly used in cloud platforms, virtualization technology can achieve efficient use of host device hardware resources by virtualizing multiple secure virtual machines (VMs). However, the infrastructure or personnel of cloud platforms are not always trustworthy, and shared hardware between multiple users may also cause security issues. Although secure virtual machines (SVMs) can currently prevent hypervisors from snooping on virtual machine data, they can only guarantee the security of secure virtual machines at a certain stage in their life cycle, which is not enough to provide security protection for the entire life cycle of secure virtual machines. Summary of the invention
[0003] The present application discloses a secure virtual machine management method and related equipment to ensure the security of the secure virtual machine throughout its entire life cycle.
[0004] In a first aspect, the present application discloses a secure virtual machine management method, which is applied to a cloud platform device, wherein the cloud platform device includes an application processor and a security coprocessor, and a secure virtual machine is deployed on the application processor. The secure virtual machine management method includes the following operations performed by the application processor: before any secure virtual machine enters any life stage, sending a security check request to the security coprocessor, wherein the security check request is used to perform a security check on the secure virtual machine; receiving a security check result fed back by the security coprocessor; the security check result is obtained after the security coprocessor performs a corresponding security check on the secure virtual machine in response to the security check request; and when the security check result indicates that the secure virtual machine is secure, controlling the secure virtual machine to enter the life stage.
[0005] In some optional examples, the life stage includes a creation stage, a startup stage, a measurement stage, a key injection stage, an operation stage or a destruction stage; the operation stage includes a state switching stage and / or a migration stage; the creation stage is a stage for creating the secure virtual machine based on the user's initial configuration policy; the startup stage is a stage for starting the secure virtual machine; the measurement stage is a stage for measuring the secure virtual machine; the key injection stage is a stage for generating a disk encryption key and transmitting the disk encryption key to the security coprocessor; the operation stage is a stage for running the secure virtual machine; the destruction stage is a stage for destroying the secure virtual machine; the state switching stage is a stage for switching the state of the secure virtual machine from a first state to a second state, and the migration stage is a stage for migrating the secure virtual machine from a virtual machine migration-out device to a virtual machine migration-in device.
[0006] In a second aspect, the present application discloses a secure virtual machine management method, which is applied to a cloud platform device, wherein the cloud platform device includes an application processor and a security coprocessor, and a secure virtual machine is deployed on the application processor. The secure virtual machine management method includes the following operations performed by the security coprocessor: before any secure virtual machine enters any life stage, receiving a security check request sent by the application processor, wherein the security check request is used to perform a security check on the secure virtual machine; in response to the security check request, performing a corresponding security check on the secure virtual machine and obtaining a corresponding security check result; and feeding back the security check result to the application processor so that the application processor controls the secure virtual machine to enter the life stage when the security check result indicates that the secure virtual machine is secure.
[0007] In some optional examples, the life stage includes a creation stage, a startup stage, a measurement stage, a key injection stage, an operation stage or a destruction stage; the operation stage includes a state switching stage and / or a migration stage; the creation stage is a stage for creating the secure virtual machine based on the user's initial configuration policy; the startup stage is a stage for starting the secure virtual machine; the measurement stage is a stage for measuring the secure virtual machine; the key injection stage is a stage for generating a disk encryption key and transmitting the disk encryption key to the security coprocessor; the operation stage is a stage for running the secure virtual machine; the destruction stage is a stage for destroying the secure virtual machine; the state switching stage is a stage for switching the state of the secure virtual machine from a first state to a second state, and the migration stage is a stage for migrating the secure virtual machine from a virtual machine migration-out device to a virtual machine migration-in device.
[0008] In some optional examples, when the life stage is the creation stage, the corresponding security check on the secure virtual machine includes: checking at least the certificate of the cloud platform device, the certificate of the chip in the cloud platform device, and the hardware capabilities of the cloud platform device; wherein, the security check result indicates that the secure virtual machine is secure only when at least the certificate of the cloud platform device is valid, the certificate of the chip is valid, and the cloud platform device has the hardware capabilities to create a secure virtual machine.
[0009] In some optional examples, when the life stage is the startup stage, the corresponding security check on the secure virtual machine includes: at least checking whether the resources applied for by the initial configuration policy exceed the resource limit of the cloud platform device; wherein, at least when the resources applied for by the initial configuration policy do not exceed the resource limit of the cloud platform device, the security check result indicates that the secure virtual machine is secure.
[0010] In some optional examples, when the life stage is the measurement stage, the corresponding security check on the secure virtual machine includes: checking at least the hardware status of the cloud platform device, the software status of the cloud platform device, the startup policy of the secure virtual machine, and the address and length of the buffer storing the data of the secure virtual machine; the data of the secure virtual machine includes the certificate and key of the secure virtual machine; wherein, the security check result indicates that the secure virtual machine is secure only when at least the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the startup policy of the secure virtual machine does not violate the initial configuration policy of the secure virtual machine, and the address and length of the buffer are legal.
[0011] In some optional examples, when the life stage is the key injection stage, the corresponding security check on the secure virtual machine also includes: checking at least the hardware status of the cloud platform device, the software status of the cloud platform device, the life stage of the secure virtual machine, and the transmission address and length of the data of the secure virtual machine; the data of the secure virtual machine includes the measurement results of the secure virtual machine; wherein, at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the life stage of the secure virtual machine is the startup stage, and the transmission address and length are legal, the security check result indicates that the secure virtual machine is secure.
[0012] In some optional examples, when the life stage is the running stage, the corresponding security check on the secure virtual machine also includes: checking at least the hardware status of the cloud platform device, the software status of the cloud platform device, the life stage of the secure virtual machine, and the transmission address and length of the data of the secure virtual machine; the data of the secure virtual machine includes the key of the secure virtual machine; wherein, at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in the working status, the life stage of the secure virtual machine is the key injection stage, and the transmission address and length are legal, the security check result indicates that the secure virtual machine is secure.
[0013] In some optional examples, when the life stage is the state switching stage, the corresponding security check on the secure virtual machine includes: checking at least the hardware status of the cloud platform device, the software status of the cloud platform device, the status of the secure virtual machine, and the virtual machine identifier and address of the secure virtual machine; wherein, at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in a working state, the status of the secure virtual machine is not in the second state, the virtual machine identifier of the secure virtual machine is legal, and the address of the secure virtual machine is legal, the security check result indicates that the secure virtual machine is safe.
[0014] In some optional examples, when the life stage is the migration stage, the corresponding security check on the secure virtual machine includes: checking at least the virtual machine migration device and the secure virtual machine; wherein, at least when the certificate of the virtual machine migration device is valid, the certificate of the chip in the virtual machine migration device is valid, and the hardware capabilities of the virtual machine migration device meet the migration requirements, the security check result indicates that the virtual machine migration device is safe; at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in a working state, and the state of the secure virtual machine is not in the second state, the security check result indicates that the secure virtual machine is safe.
[0015] In some optional examples, when the life stage is the destruction stage, the corresponding security check on the secure virtual machine includes: checking at least the hardware status of the cloud platform device and the software status of the cloud platform device; wherein, at least when the hardware status of the cloud platform device is normal and the software status of the cloud platform device is in a working state, the security check result indicates that the secure virtual machine is secure.
[0016] In a third aspect, the present application discloses a processor configured as a secure virtual machine management method as described in any one of the above items.
[0017] In a fourth aspect, the present application discloses an electronic device, including an application processor and a security coprocessor, on which a security virtual machine is deployed; the application processor is configured to execute the operations performed by the application processor in the security virtual machine management method as described above, and the security coprocessor is configured to execute the operations performed by the security coprocessor in the security virtual machine management method as described above.
[0018] In a fifth aspect, the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a program code. When the program code runs on a processor, the processor executes the secure virtual machine management method as described in any one of the above items.
[0019] The secure virtual machine management method and related equipment disclosed in the present application are such that before any secure virtual machine enters any life stage, the application processor sends a security check request to the security coprocessor, and only after confirming that the secure virtual machine is secure based on the security check result fed back by the security coprocessor, does it control the secure virtual machine to enter that life stage, thereby ensuring the security of the secure virtual machine at any life stage throughout its life cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0021] Figure 1 A schematic diagram of the architecture of a cloud platform disclosed in an embodiment of the present application.
[0022] Figure 2 A schematic diagram of the structure of a host device of a cloud platform disclosed in an embodiment of the present application.
[0023] Figure 3 A flowchart of operations performed by an application processor in a secure virtual machine management method disclosed in an embodiment of the present application.
[0024] Figure 4 A schematic diagram of the interaction between an application processor and a security coprocessor disclosed in an embodiment of the present application.
[0025] Figure 5 A flowchart of operations performed by a security coprocessor in a secure virtual machine management method disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] Virtualization technology can be applied to a variety of scenarios. In particular, with the development of cloud platforms, virtualization technology has been increasingly widely used in cloud platforms. To facilitate understanding of virtualization technology, the following introduces virtualization technology using cloud platforms as an example.
[0028] like Figure 1 As shown, a cloud platform may include a host device 1, a network 2, and one or more users 3. The host device 1 is a device deployed on the network side by a cloud platform provider (such as a cloud platform manufacturer) for providing cloud platform services. The host device 1 may be a server. The host device 1 may create a virtual machine through virtualization technology. The network 2 may be considered as the Internet or other forms of networks with communication functions. Communication and data transmission may be achieved between the host device 1 and the user 3 through the network 2. The user 3 is a registered user using the cloud platform. Each user 3 may have one or more virtual machines belonging to him in the host device 1 to use the virtual machines belonging to him to complete specific services.
[0029] like Figure 2 As shown, a host device may include an application processor 11, a memory controller 12, a memory 13 and a secure coprocessor (Secure Coprocessor, SCP) 14. Among them, a virtual machine manager 111 and multiple virtual machines are deployed on the application processor 11, and the multiple virtual machines include a secure virtual machine 112 and a common virtual machine 113. The multiple virtual machines can be memory managed by the virtual machine manager 111. The memory controller 12 is a device that controls the memory 13 and enables the memory 13 to exchange data with the application processor 11. The secure coprocessor 14 is a processor responsible for the data security of the secure virtual machine 112. The secure coprocessor 4 can create a key for the secure virtual machine 112 and transmit the key to the key storage unit of the cryptographic engine 120 of the memory controller 12, so that the cryptographic engine 120 encrypts and decrypts the memory data of the secure virtual machine 112 based on the key in the key storage unit to ensure the data security of the secure virtual machine 112.
[0030] Although the security of memory data can be guaranteed by a secure virtual machine, the inventors have found that the entire life cycle of a secure virtual machine includes multiple life stages, such as a configuration stage or a creation stage. Currently, the security of a secure virtual machine can only be guaranteed in a certain life stage in its life cycle, such as the operation stage, and the security of the secure virtual machine cannot be guaranteed throughout its entire life cycle.
[0031] Based on this, the present application discloses a secure virtual machine management method, in which the application processor sends a security check request to the security coprocessor before the secure virtual machine enters any life stage. The secure virtual machine is controlled to enter this life stage only when the security check result obtained after the security coprocessor performs a corresponding security check on the secure virtual machine determines that the secure virtual machine is safe, thereby ensuring the security of the secure virtual machine throughout its entire life cycle.
[0032] As an optional implementation of the disclosure of this application, the embodiment of this application discloses a secure virtual machine management method, which is applied to a cloud platform device. The cloud platform device can be Figure 1 The host device 1 of the cloud platform shown in the figure may include Figure 2 The application processor 11 and the security coprocessor 14 are shown, and a security virtual machine 112 is deployed on the application processor 11.
[0033] like Figure 3 As shown, a secure virtual machine management method disclosed in an embodiment of the present application includes the following operations performed by an application processor:
[0034] S101: before any secure virtual machine enters any life stage, a security check request is sent to a security coprocessor, where the security check request is used to perform a security check on the secure virtual machine.
[0035] like Figure 4 As shown, before any secure virtual machine enters any life stage, the application processor sends a security check request to the security coprocessor, and the security check request is used to perform a security check on the secure virtual machine. The life cycle of a secure virtual machine includes multiple life stages, which at least include a creation stage, a startup stage, a running stage, and a destruction stage.
[0036] In some optional examples, the secure virtual machine operates in a secure isolation encryption environment, for example, the execution environment of the application processor is a trusted execution environment. In the secure isolation encryption environment, not only can the data of the secure virtual machine in the memory be encrypted and protected using the virtual machine encryption key of the secure virtual machine, but the secure coprocessor and the secure virtual machine identifier (VMID) can also be used to achieve secure isolation of the data of the secure virtual machine.
[0037] S102: Receive a security check result fed back by the security coprocessor, where the security check result is obtained after the security coprocessor performs a corresponding security check on the security virtual machine in response to a security check request.
[0038] like Figure 4As shown, after the application processor sends a security check request to the security coprocessor, it receives a security check result fed back by the security coprocessor, which is obtained after the security coprocessor performs a corresponding security check on the security virtual machine in response to the security check request.
[0039] S103: When the security check result indicates that the security virtual machine is safe, control the security virtual machine to enter this life stage.
[0040] like Figure 4 As shown, after receiving the security check result fed back by the security coprocessor, the application processor determines whether the secure virtual machine is secure based on the security check result. If the security check result indicates that the secure virtual machine is secure, the application processor controls the secure virtual machine to enter the life stage. If the security check result indicates that the secure virtual machine is not secure, the application processor controls the secure virtual machine to suspend subsequent operations to prevent the data of the secure virtual machine from being leaked, etc.
[0041] In some optional examples, the life stage includes a creation stage, a startup stage, an operation stage, or a destruction stage. Of course, the present invention is not limited thereto. In other embodiments, the life stage includes a creation stage, a startup stage, a measurement stage, a key injection stage, an operation stage, or a destruction stage. Among them, the operation stage may include a state switching stage and / or a migration stage.
[0042] Among them, the creation phase is the phase of creating a secure virtual machine based on the user's initial configuration policy; the startup phase is the phase of starting the secure virtual machine; the measurement phase is the phase of measuring the secure virtual machine; the key injection phase is the phase of generating a disk encryption key and transmitting the disk encryption key to the security coprocessor; the operation phase is the phase of running the secure virtual machine; the destruction phase is the phase of destroying the secure virtual machine; the state switching phase is the phase of switching the state of the secure virtual machine from the first state to the second state, and the migration phase is the phase of migrating the secure virtual machine from the virtual machine migration-out device to the virtual machine migration-in device.
[0043] It should be noted that a virtual machine manager is deployed on the application processor, and all operations performed by the application processor during the secure virtual machine management process can be performed by the virtual machine manager on it. A secure firmware is deployed on the security coprocessor, and all operations performed by the security coprocessor during the secure virtual machine management process can be performed by the secure firmware on it.
[0044] In the management process of ordinary virtual machines, all operations are performed by the virtual machine manager, and the virtual machine manager does not perform operations such as security checks, so it cannot guarantee the security of the secure virtual machine throughout its life cycle. In this application, before the secure virtual machine enters any life stage, the application processor will request the security coprocessor to perform a security check on the secure virtual machine, and only after confirming the security of the secure virtual machine based on the security check results, will it control the secure virtual machine to enter that life stage, so the security of the secure virtual machine throughout its life cycle can be guaranteed. Furthermore, in this application, the use of a security coprocessor to perform operations such as security checks can further guarantee the security of the secure virtual machine throughout its life cycle when the application processor, such as the virtual machine manager, is attacked.
[0045] like Figure 5 As shown, a secure virtual machine management method disclosed in an embodiment of the present application includes the following operations performed by a security coprocessor:
[0046] S201: Before any secure virtual machine enters any life stage, a security check request sent by an application processor is received, where the security check request is used to perform a security check on the secure virtual machine.
[0047] like Figure 4 As shown, before any secure virtual machine enters any life stage, the security coprocessor receives a security check request sent by the application processor, and the security check request is used to perform a security check on the secure virtual machine.
[0048] S202: In response to the security check request, perform a corresponding security check on the security virtual machine and obtain a corresponding security check result.
[0049] like Figure 4 As shown, after the application processor sends a security check request to the security coprocessor, the security coprocessor responds to the security check request, performs a corresponding security check on the security virtual machine, obtains a corresponding security check result, and feeds back the security check result to the application processor and the security virtual machine user.
[0050] S203: Feedback the security check result to the application processor, so that the application processor controls the security virtual machine to enter this life stage when the security check result indicates that the security virtual machine is safe.
[0051] like Figure 4As shown, after the security coprocessor obtains the corresponding security check result, it feeds back the security check result to the application processor, so that when the security check result indicates that the security virtual machine is safe, the application processor controls the security virtual machine to enter the life stage; when the security check result indicates that the security virtual machine is not safe, the application processor controls the security virtual machine to terminate subsequent operations to prevent the data of the security virtual machine from being leaked, etc.
[0052] In some optional examples, when the life stage is the creation stage, that is, before the secure virtual machine enters the creation stage, a corresponding security check is performed on the secure virtual machine, including: at least checking the certificate of the cloud platform device, the certificate of the chip in the cloud platform device, and the hardware capabilities of the cloud platform device.
[0053] Among them, at least when the certificate of the cloud platform device is valid, the certificate of the chip is valid, and the cloud platform device has the hardware capability to create a secure virtual machine, the security check result indicates that the secure virtual machine is secure, and the application processor controls the secure virtual machine to enter the creation phase. At least when the certificate of the cloud platform device is invalid, the certificate of the chip is invalid, or the cloud platform device does not have the hardware capability to create a secure virtual machine, the security check result indicates that the secure virtual machine is not secure, and the application processor suspends subsequent operations to enter the creation phase.
[0054] It should be noted that the security coprocessor will verify the certificate of the cloud platform device and the certificate of the chip in the cloud platform device. If the verification passes, it is confirmed that the cloud platform device is secure. If the verification fails, it is confirmed that the cloud platform device is unsafe.
[0055] The security coprocessor will confirm whether the cloud platform device has the hardware capability to create a secure virtual machine based on the hardware capability information of the cloud platform device. If the cloud platform device does not have the hardware capability to create a secure virtual machine, the cloud platform device is unsafe. If the cloud platform device has the hardware capability to create a secure virtual machine, the cloud platform device is safe. The hardware capability information may include information about the remaining secure virtual machine identifiers of the cloud platform device, information about the remaining processors, memory, hard disks, networks and other resources of the cloud platform device, and whether the cloud platform device has enabled the encryption security isolation function.
[0056] It should also be noted that before entering the creation phase, the application processor will receive the initial configuration policy of the secure virtual machine sent by the user, and will also feed back the security check results to the secure virtual machine user so that the secure virtual machine user can confirm whether the secure virtual machine is secure, and after the secure virtual machine user confirms that the secure virtual machine is secure, a secure channel is established between the security coprocessor and the secure virtual machine user so that the security coprocessor can communicate with the secure virtual machine user through the secure channel. Among them, the stage before entering the creation phase can also be called the configuration phase.
[0057] In other optional examples, when the life stage is the startup stage, that is, before the security virtual machine enters the startup stage, the corresponding security check on the security virtual machine includes: at least checking whether the resources applied for by the initial configuration policy exceed the resource limits of the cloud platform device.
[0058] Among them, at least when the resources requested by the initial configuration policy do not exceed the resource limit of the cloud platform device, the security check result indicates that the security virtual machine is safe, and the application processor controls the security virtual machine to enter the startup phase. At least when the resources requested by the initial configuration policy exceed the resource limit of the cloud platform device, the security check result indicates that the security virtual machine is not safe, and the security coprocessor will send an error message to the security virtual machine user through a secure channel so that the security virtual machine user can modify the initial configuration policy.
[0059] It should be noted that the resources requested by the initial configuration policy include the processor, memory, hard disk and other resources of the cloud platform device. If the resources requested by the initial configuration policy exceed the resource limit of the cloud platform device, it means that the cloud platform device cannot provide the resources requested by the initial configuration policy. For example, the remaining space in the memory is less than the space requested.
[0060] It should also be noted that during the secure virtual machine creation phase, the application processor will create a secure virtual machine based on the initial configuration policy sent by the user and store the initial configuration policy in the secure coprocessor. The secure virtual machine will not enter the startup phase until at least the secure coprocessor confirms that the resources requested by the initial configuration policy do not exceed the resource limits of the cloud platform device.
[0061] In some other optional examples, when the life stage is the measurement stage, that is, before the secure virtual machine enters the measurement stage, the corresponding security check on the secure virtual machine includes: at least checking the hardware status of the cloud platform device, the software status of the cloud platform device, the startup policy of the secure virtual machine, and the address and length of the buffer storing the data of the secure virtual machine. The data of the secure virtual machine includes the certificate and key of the secure virtual machine, and the key includes a disk encryption key, etc.
[0062] Among them, at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the startup policy of the secure virtual machine does not violate the initial configuration policy, and the address and length of the buffer are legal, the security check result indicates that the secure virtual machine is secure, and the application processor will control the secure virtual machine to enter the measurement phase. At least when the hardware status of the cloud platform device is abnormal, the software status of the cloud platform device is not working, the startup policy of the secure virtual machine violates the initial configuration policy, or the address or length of the buffer is illegal, the security check result indicates that the secure virtual machine is unsafe, and the application processor suspends subsequent operations to enter the measurement phase.
[0063] It should be noted that during the measurement phase, the security coprocessor will measure key information during the secure virtual machine startup process and send the measurement results to the secure virtual machine user so that the secure virtual machine user can confirm whether the secure virtual machine startup policy violates the initial configuration policy based on the measurement results.
[0064] In other optional examples, when the life stage is the key injection stage, that is, before the secure virtual machine enters the key injection stage, the corresponding security check on the secure virtual machine also includes: at least checking the hardware status of the cloud platform device, the software status of the cloud platform device, the life stage of the secure virtual machine, and the transmission address and length of the measurement results of the secure virtual machine.
[0065] Among them, at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the life stage of the security virtual machine is in the startup stage, and the transmission address and length of the measurement result are legal, the security check result indicates that the security virtual machine is safe, and the application processor will control the security virtual machine to enter the key injection stage. At least when the hardware status of the cloud platform device is abnormal, the software status of the cloud platform device is in a non-working state, the life stage of the security virtual machine is in a non-startup stage, and the transmission address or length of the measurement result is illegal, the security check result indicates that the security virtual machine is unsafe, and the application processor will control the security virtual machine to terminate the operation of entering the key injection stage.
[0066] It should be noted that during the key injection phase, the secure virtual machine user will generate a disk encryption key and transmit the disk encryption key to the secure coprocessor through a secure channel. Of course, during the secure virtual machine creation phase, the secure coprocessor will also generate a virtual machine encryption key for the secure virtual machine. Among them, the disk encryption key is used to encrypt and decrypt the data on the hard disk in the cloud platform device. The virtual machine encryption key of the secure virtual machine is used to encrypt and decrypt the data in the memory of the secure virtual machine. In addition, the certificate of the cloud platform device and the certificate of the chip in the cloud platform device will also be stored in the secure coprocessor.
[0067] In other embodiments, when the life stage is the running stage, that is, before the secure virtual machine enters the running stage, the corresponding security check on the secure virtual machine also includes: at least checking the hardware status of the cloud platform device, the software status of the cloud platform device, the life stage of the secure virtual machine, and the transmission address and length of the virtual machine encryption key of the secure virtual machine.
[0068] Among them, at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the life stage of the secure virtual machine is the key injection stage, and the transmission address and length of the virtual machine encryption key of the secure virtual machine are legal, the security check result indicates that the secure virtual machine is secure, and the application processor will control the secure virtual machine to enter the running stage. At least when the hardware status of the cloud platform device is abnormal, the software status of the cloud platform device is in a non-working state, the life stage of the secure virtual machine is not in the key injection stage, and the transmission address or length of the virtual machine encryption key of the secure virtual machine is illegal, the security check result indicates that the secure virtual machine is unsafe, and the application processor will control the secure virtual machine to terminate the operation of entering the running stage.
[0069] It should be noted that during the operation phase, the security coprocessor will transfer the virtual machine encryption key of the secure virtual machine to the key storage unit of the cryptographic engine of the memory controller so that the cryptographic engine can encrypt and decrypt the memory data of the secure virtual machine based on the virtual machine encryption key.
[0070] In some other optional examples, when the life stage is the state switching stage, that is, before the secure virtual machine enters the state switching stage, the corresponding security check on the secure virtual machine includes: at least checking the hardware state of the cloud platform device, the software state of the cloud platform device, the state of the secure virtual machine, and the virtual machine identifier and address of the secure virtual machine. The data of the secure virtual machine includes the virtual machine encryption key of the secure virtual machine.
[0071] Among them, at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the status of the security virtual machine is not in the second status, the virtual machine identifier of the security virtual machine is legal, and the address of the security virtual machine is legal, the security check result indicates that the security virtual machine is safe, and the application processor will control the security virtual machine to enter the state switching stage. At least when the hardware status of the cloud platform device is abnormal, the software status of the cloud platform device is not in working status, the status of the security virtual machine is in the second status, the virtual machine identifier of the security virtual machine is illegal, or the address of the security virtual machine is illegal, the security check result indicates that the security virtual machine is unsafe, and the application processor will control the security virtual machine to terminate the operation of entering the state switching stage.
[0072] It should be noted that, in the state switching stage, the secure virtual machine switches from a first state to a second state, wherein the first state is one of an activated state and an inactivated state, and the second state is the other of the activated state and the inactivated state.
[0073] In some other optional examples, when the life stage is the migration stage, performing corresponding security checks on the secure virtual machine includes: performing corresponding security checks on the secure virtual machines that migrate into the device and migrate out of the device.
[0074] The security check result indicates that the virtual machine migration device is safe only when at least the certificate of the virtual machine migration device and the certificate of the chip in the virtual machine migration device are valid and the hardware capability of the virtual machine migration device meets the migration requirements. The security check result indicates that the virtual machine migration device is unsafe only when at least the certificate of the virtual machine migration device is invalid, the certificate of the chip in the virtual machine migration device is invalid or the hardware capability of the virtual machine migration device does not meet the migration requirements.
[0075] At least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in a working state, and the state of the security virtual machine is not in the second state, the security check result indicates that the security virtual machine is safe. At least when the hardware status of the cloud platform device is abnormal, the software status of the cloud platform device is in a non-working state, or the state of the security virtual machine is in the second state, the security check result indicates that the security virtual machine is unsafe.
[0076] At least when the secure virtual machines of the virtual machine migration-in device and the virtual machine migration-out device are both secure, the application processor of the virtual machine migration-out device will control the secure virtual machine to enter the migration phase and send the data of the secure virtual machine to the virtual machine migration-out device. At least when the virtual machine migration-in device is not secure or the secure virtual machine of the virtual machine migration-out device is not secure, the application processor of the virtual machine migration-out device will control the secure virtual machine to stop entering the migration phase.
[0077] During the migration phase, the virtual machine migration device will send the data of the secure virtual machine to the virtual machine migration device, and the virtual machine migration device will create a new secure virtual machine based on the data of the secure virtual machine to achieve the continuous availability of the secure virtual machine. In some optional examples, when the virtual machine migration device sends the certificate of the virtual machine migration device and the certificate of the chip in the virtual machine migration device to the virtual machine migration device for inspection, the virtual machine transmission key will be sent to the virtual machine migration device at the same time, so that the virtual machine migration device can use the virtual machine transmission key to encrypt the data of the secure virtual machine before sending it to the virtual machine migration device to ensure the security of the data of the secure virtual machine during transmission.
[0078] In some other optional examples, when the life stage is the destruction stage, performing corresponding security checks on the secure virtual machine includes: checking at least the hardware status of the cloud platform device and the software status of the cloud platform device.
[0079] Among them, at least when the hardware status of the cloud platform device is normal and the software status of the cloud platform device is in working state, the security check result indicates that the security virtual machine is safe, and the application processor will control the security virtual machine to enter the destruction stage. At least when the hardware status of the cloud platform device is abnormal or the software status of the cloud platform device is in non-working state, the security check result indicates that the security virtual machine is unsafe, and the application processor will control the security virtual machine to stop entering the destruction stage.
[0080] During the destruction phase, the secure virtual machine user will send a destruction request to the secure coprocessor through a secure channel. The secure coprocessor will destroy the secure virtual machine only after confirming that the destruction request is legitimate and performing corresponding security checks on the secure virtual machine. In the process of destroying the secure virtual machine, the data and keys of the secure virtual machine will be deleted.
[0081] As another optional implementation of the disclosure of the present application, the embodiment of the present application further discloses a processor, which is configured to execute the secure virtual machine management method disclosed in any of the above embodiments. In other words, the processor can be an application processor of a cloud platform device or a security coprocessor of a cloud platform device.
[0082] As another optional implementation of the content disclosed in the present application, the embodiment of the present application also discloses an electronic device, which can be Figure 1 The host device shown may include Figure 2 The application processor and the security coprocessor shown in the figure have a security virtual machine deployed on the application processor. The application processor can be configured to execute the operations executed by the application processor in the above-mentioned security virtual machine management method, and the security coprocessor can be configured to execute the operations executed by the security coprocessor in the above-mentioned security virtual machine management method.
[0083] As another optional implementation of the contents disclosed in the present application, an embodiment of the present application further discloses a computer-readable storage medium, which stores a program code. When the program code runs on a processor, the processor executes the secure virtual machine management method disclosed in any of the above embodiments.
[0084] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0085] The above embodiments only express several implementation methods of this specification, and the descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this specification, which all belong to the protection scope of this specification. Therefore, the protection scope of the patent of this specification shall be based on the attached claims.
Claims
1. A secure virtual machine management method, It is characterized in that Applied to a cloud platform device, the cloud platform device includes an application processor and a security coprocessor, a security virtual machine is deployed on the application processor, and the security virtual machine management method includes the following operations performed by the application processor: Before any secure virtual machine enters any life stage, a security check request is sent to the security coprocessor, wherein the security check request is used to perform a security check on the secure virtual machine; the life stage includes at least a creation stage, a startup stage, a running stage or a destruction stage; Receiving a security check result fed back by the security coprocessor; The security check result is obtained after the security coprocessor performs a corresponding security check on the security virtual machine in response to the security check request; When the security check result indicates that the secure virtual machine is secure, the secure virtual machine is controlled to enter the life stage.
2. The secure virtual machine management method according to claim 1, It is characterized in that The life stage includes a creation stage, a startup stage, a measurement stage, a key injection stage, an operation stage or a destruction stage; the operation stage includes a state switching stage and / or a migration stage; The creation phase is a phase of creating the secure virtual machine based on the user's initial configuration policy; The startup phase is the phase of starting the secure virtual machine; the measurement phase is the phase of measuring the secure virtual machine; the key injection phase is the phase of generating a disk encryption key and transmitting the disk encryption key to the secure coprocessor; the operation phase is the phase of running the secure virtual machine; the destruction phase is the phase of destroying the secure virtual machine; the state switching phase is the phase of switching the state of the secure virtual machine from a first state to a second state, and the migration phase is the phase of migrating the secure virtual machine from a virtual machine migration-out device to a virtual machine migration-in device.
3. A secure virtual machine management method, It is characterized in that Applied to a cloud platform device, the cloud platform device includes an application processor and a security coprocessor, a security virtual machine is deployed on the application processor, and the security virtual machine management method includes the following operations performed by the security coprocessor: Before any secure virtual machine enters any life stage, receiving a security check request sent by the application processor, wherein the security check request is used to perform a security check on the secure virtual machine; the life stage includes at least a creation stage, a startup stage, a running stage or a destruction stage; In response to the security check request, performing a security check on the secure virtual machine to obtain a security check result; The security check result is fed back to the application processor, so that the application processor controls the security virtual machine to enter the life stage when the security check result indicates that the security virtual machine is safe.
4. The secure virtual machine management method according to claim 3, It is characterized in that The life stage includes a creation stage, a startup stage, a measurement stage, a key injection stage, an operation stage or a destruction stage; the operation stage includes a state switching stage and / or a migration stage; The creation phase is a phase of creating the secure virtual machine based on the user's initial configuration policy; The startup phase is the phase of starting the secure virtual machine; the measurement phase is the phase of measuring the secure virtual machine; the key injection phase is the phase of generating a disk encryption key and transmitting the disk encryption key to the secure coprocessor; the operation phase is the phase of running the secure virtual machine; the destruction phase is the phase of destroying the secure virtual machine; the state switching phase is the phase of switching the state of the secure virtual machine from a first state to a second state, and the migration phase is the phase of migrating the secure virtual machine from a virtual machine migration-out device to a virtual machine migration-in device.
5. The secure virtual machine management method according to claim 4, It is characterized in that In the case where the life stage is the creation stage, the performing corresponding security checks on the secure virtual machine includes: At least the certificate of the cloud platform device, the certificate of the chip in the cloud platform device and the hardware capabilities of the cloud platform device are checked; wherein, the security check result indicates that the secure virtual machine is secure only when at least the certificate of the cloud platform device is valid, the certificate of the chip is valid and the cloud platform device has the hardware capabilities to create a secure virtual machine.
6. The secure virtual machine management method according to claim 4, It is characterized in that In the case where the life stage is the startup stage, the performing corresponding security checks on the secure virtual machine includes: At least a check is performed to determine whether the resources applied for by the initial configuration policy exceed the resource limits of the cloud platform device; wherein, at least when the resources applied for by the initial configuration policy do not exceed the resource limits of the cloud platform device, the security check result indicates that the secure virtual machine is secure.
7. The secure virtual machine management method according to claim 4, It is characterized in that In a case where the life stage is the measurement stage, the performing a corresponding security check on the secure virtual machine includes: Check at least the hardware status of the cloud platform device, the software status of the cloud platform device, the startup policy of the secure virtual machine, and the address and length of the buffer storing the data of the secure virtual machine; the data of the secure virtual machine includes the certificate and key of the secure virtual machine; Among them, the security check result indicates that the security virtual machine is safe only when at least the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the startup policy of the security virtual machine does not violate the initial configuration policy of the security virtual machine, and the address and length of the buffer are legal.
8. The secure virtual machine management method according to claim 4, It is characterized in that In the case where the life stage is the key injection stage, the performing corresponding security checks on the secure virtual machine further includes: At least the hardware status of the cloud platform device, the software status of the cloud platform device, the life stage of the secure virtual machine, and the transmission address and length of the data of the secure virtual machine are checked; the data of the secure virtual machine includes the measurement results of the secure virtual machine; Among them, the security check result indicates that the security virtual machine is safe only when at least the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the life stage of the security virtual machine is the startup stage, and the transmission address and length are legal.
9. The secure virtual machine management method according to claim 4, It is characterized in that In the case where the life stage is the running stage, the performing corresponding security checks on the secure virtual machine further includes: Check at least the hardware status of the cloud platform device, the software status of the cloud platform device, the life stage of the secure virtual machine, and the transmission address and length of the data of the secure virtual machine; the data of the secure virtual machine includes the key of the secure virtual machine; Among them, the security check result indicates that the secure virtual machine is secure only when at least the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the life stage of the secure virtual machine is the key injection stage, and the transmission address and length are legal.
10. The secure virtual machine management method according to claim 4, It is characterized in that In the case where the life stage is the state switching stage, the performing corresponding security checks on the secure virtual machine includes: Check at least the hardware status of the cloud platform device, the software status of the cloud platform device, the status of the secure virtual machine, and the virtual machine identifier and address of the secure virtual machine; Among them, the security check result indicates that the security virtual machine is safe at least when the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, the status of the security virtual machine is not the second state, the virtual machine identifier of the security virtual machine is legal, and the address of the security virtual machine is legal.
11. The secure virtual machine management method according to claim 4, It is characterized in that In the case where the life stage is the migration stage, the performing corresponding security checks on the secure virtual machine includes: Check at least the virtual machine migration device and the secure virtual machine; Among them, the security check result indicates that the virtual machine migration device is safe only when at least the certificate of the virtual machine migration device is valid, the certificate of the chip in the virtual machine migration device is valid, and the hardware capabilities of the virtual machine migration device meet the migration requirements; the security check result indicates that the secure virtual machine is safe only when at least the hardware status of the cloud platform device is normal, the software status of the cloud platform device is in working status, and the status of the secure virtual machine is not the second status.
12. The secure virtual machine management method according to claim 4, It is characterized in that In the case where the life stage is the destruction stage, the performing corresponding security checks on the secure virtual machine includes: At least the hardware status of the cloud platform device and the software status of the cloud platform device are checked; wherein, at least when the hardware status of the cloud platform device is normal and the software status of the cloud platform device is in working state, the security check result indicates that the secure virtual machine is safe.
13. A processor, It is characterized in that The method is configured to execute the secure virtual machine management method described in any one of claims 1 to 12.
14. An electronic device, It is characterized in that It includes an application processor and a security coprocessor, and a security virtual machine is deployed on the application processor; the application processor is configured to execute the security virtual machine management method described in any one of claims 1-2, and the security coprocessor is configured to execute the security virtual machine management method described in any one of claims 3-12.
15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program code, and when the program code runs on a processor, the processor executes the secure virtual machine management method according to any one of claims 1 to 12.
