Microkernel-based scalable virtual machine monitor and embedded system

By adopting a microkernel-based design in the virtual machine monitor and running the microkernel and virtualization service layer at different privilege levels, the deficiencies in security and scalability of the virtual machine monitor in the existing technology are solved. It achieves the stable operation of secure virtual machines and the scalability of non-secure virtual machines, ensuring the safe and stable operation of security-critical services.

CN111880891BActive Publication Date: 2024-10-25SAMSUNG (CHINA) SEMICONDUCTOR CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010533671.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-10-25
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

Existing virtual machine monitors have deficiencies in security and scalability, cannot effectively manage security-critical services and non-security-critical services, and have poor scalability.

Method used

An extensible virtual machine monitor based on microkernel is used to provide a virtualization environment and service interface by running the microkernel and virtualization service layer at different privilege levels to ensure the separation and interaction of secure virtual machines and non-secure virtual machines. Without interference, resource management and communication are achieved through the collaborative work of the microkernel and virtualization service layer.

Benefits of technology

It achieves the stable operation of secure virtual machines and the scalability of non-secure virtual machines, ensuring the safe and stable operation of security-critical services. It also provides flexible resource management and communication functions and improves the scalability of virtual machine monitors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111880891B_ABST
    Figure CN111880891B_ABST
Patent Text Reader

Abstract

The present disclosure provides a microkernel-based extensible virtual machine monitor and an embedded system. The microkernel-based extensible virtual machine monitor may include: a microkernel configured to provide a virtualization environment for a secure virtual machine; a virtualization service layer configured to provide a service interface for a non-secure virtual machine, wherein the microkernel and the virtualization service layer run at different privilege levels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of system software, and more specifically, to a microkernel-based extensible virtual machine monitor and an embedded system. Background Art

[0002] With the development of the system software industry, it is necessary to provide secure and reliable services on the hardware platform, while also providing scalability to meet user needs. Therefore, more and more embedded systems have introduced virtualization technology.

[0003] The current virtualization technology is not perfect. For example, the current virtualization technology involves the use of a virtual machine monitor (Hypervisor), such as XEN Hypervisor, Wind River, QNX, Mentor, etc. However, the existing virtual machine monitor cannot effectively manage safety-critical services and non-safety-critical services, and has poor scalability. In other words, such a virtual machine monitor has deficiencies in terms of security and scalability. Summary of the invention

[0004] The purpose of the present disclosure is to provide a virtual machine monitor that can ensure stability and security while having scalability.

[0005] According to an exemplary embodiment of the present disclosure, a microkernel-based extensible virtual machine monitor is provided. The extensible virtual machine monitor may include: a microkernel configured to provide a virtualization environment for a secure virtual machine; a virtualization service layer configured to provide a service interface for a non-secure virtual machine, wherein the microkernel and the virtualization service layer run at different privilege levels. The extensible virtual machine monitor of the present disclosure can separate secure virtual machines from non-secure virtual machines through the microkernel and the virtualization service layer, and the microkernel and the virtualization service layer running at different privilege levels do not interfere with each other, thereby enabling the service to run stably and securely.

[0006] Optionally, the microkernel is further configured to perform at least one of the following operations: statically allocate processor resources and / or memory resources for the secure virtual machine; provide a communication channel for the secure virtual machine; and communicate with at least one of the secure virtual machine, the non-secure virtual machine, and the virtualization service layer. Static resource allocation through the microkernel can ensure the normal operation of the secure virtual machine, and providing communication functions through the microkernel can enable various parts of the virtual machine monitor to interact effectively.

[0007] Optionally, the operation of managing the virtualization service layer includes: monitoring the virtualization service layer, and the monitoring includes: creating, destroying or resetting. By monitoring the virtualization service layer, the virtualization service layer can be managed more flexibly.

[0008] Optionally, the operation of communicating with the secure virtual machine includes: forwarding information between multiple secure virtual machines. By forwarding information, smooth communication can be ensured.

[0009] Optionally, the microkernel communicates with the secure virtual machine and / or the non-secure virtual machine through trap instructions, and the microkernel communicates with the virtualization service layer through system calls and trap instructions. Communicating through system calls and trap instructions can ensure smooth interaction and security of interaction.

[0010] Optionally, the virtualization service layer is further configured to control at least one of the following operations: dynamically scheduling the processor resources and / or memory resources of the non-secure virtual machine; monitoring the non-secure virtual machine, wherein the monitoring includes creation, destruction or resetting; forwarding information between multiple non-secure virtual machines; providing device virtualization services to achieve device sharing for non-secure virtual machines. The virtualization service layer achieves more flexible and effective control operations through the above operations, and ensures the smooth implementation of the functions of the non-secure virtual machine.

[0011] Optionally, the virtualization service layer is further configured to: control the non-secure virtual machine by means of the following: trap instructions and system calls between the virtualization service layer and the microkernel, and trap instructions between the microkernel and the non-secure virtual machine. The virtualization service layer can control the non-secure virtual machine with the cooperation of the microkernel, that is, the microkernel provides a guarantee for the virtualization service layer to control the non-secure virtual machine.

[0012] According to another exemplary embodiment of the present disclosure, an embedded system is provided. The embedded system includes: a memory configured to store codes or instructions; and a processor configured to implement the above-mentioned scalable virtual machine monitor by executing the codes or instructions.

[0013] According to another exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions is provided, wherein when the instructions are executed on a system on chip, the system on chip is prompted to implement the scalable virtual machine monitor as described above.

[0014] In summary, according to the scalable virtual machine monitor and embedded system disclosed in the present invention, a virtualization environment can be provided for a secure virtual machine through a microkernel, and a service interface can be provided for a non-secure virtual machine through a virtualization service layer, so that the operation of the secure virtual machine and the operation of the non-secure virtual machine do not interfere with each other. The microkernel for the secure virtual machine and the virtualization service layer for the non-secure virtual machine run at different privilege levels, which can ensure that even if the non-secure virtual machine fails, it will not affect the operation of the secure virtual machine. Therefore, the stable and safe operation of the secure virtual machine can be guaranteed. Since the non-secure virtual machine provides a service interface to support extended services (for example, communication services, resource sharing services, etc.), the virtual machine monitor is also scalable. When security-critical services are run on the secure virtual machine and non-security-critical services are run on the non-secure virtual machine, the safe and stable operation of security-critical services can be guaranteed.

[0015] Additional aspects and / or advantages of the present disclosure will be set forth in part in the following description and in part will be apparent from the description or may be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and other objects, features and advantages of the present disclosure will become more apparent through the following detailed description in conjunction with the accompanying drawings, in which:

[0017] Figure 1 A schematic diagram showing the structure of an extensible virtual machine monitor according to an exemplary embodiment of the present disclosure is shown;

[0018] Figure 2 A schematic diagram showing the interaction of an extensible virtual machine monitor according to an exemplary embodiment of the present disclosure;

[0019] Figure 3 A block diagram of an embedded system according to an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0020] Exemplary embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0021] In an exemplary embodiment of the present disclosure, the virtual machine monitor may be provided in an embedded system, and the embedded system may be implemented with reference to a system on chip (SoC) such as an ARM system, etc. However, this is merely exemplary and is not intended to limit the scope of protection of the present disclosure.

[0022] The present disclosure sets up a virtual machine monitor including a microkernel and a virtualization service layer, wherein the microkernel provides a virtualization environment for a secure virtual machine, the virtualization service layer provides a service interface for a non-secure virtual machine, and the non-secure virtual machine supports extended services, for example, a service supporting communication with a device (for example, an electronic device), a service for sharing resources between devices, etc. At the same time, the microkernel and the virtualization service layer run at different privilege levels, so that the operation of the microkernel and the operation of the virtualization service layer do not affect each other, thereby ensuring the security of the microkernel and the secure virtual machine corresponding to the microkernel.

[0023] In an exemplary embodiment of the present disclosure, safety-critical services may include services related to operations such as automatic driving, braking, and throttle control; non-safety-critical services may include services related to operations such as music playback and video playback. However, this is merely exemplary, and it is also feasible to divide safety-critical services and non-safety-critical services by other division methods.

[0024] Figure 1 A schematic diagram of the structure of an extensible virtual machine monitor according to an exemplary embodiment of the present disclosure is shown.

[0025] Reference Figure 1 , the virtual machine monitor may include: a microkernel configured to: provide a secure virtual machine (VM 11 To VM 1n ) provides a virtualization environment; the virtualization service layer is configured to: manage non-secure virtual machines (VM 21 To VM 2n ) provides a service interface, wherein the microkernel and the virtualization service layer run at different privilege levels, and the non-secure virtual machine that provides the service interface supports extended services.

[0026] As an example, the non-secure virtual machine supports extended services, which means that the non-secure virtual machine may have an extensible capability. Therefore, the virtual machine monitor of this exemplary embodiment may be referred to as an extensible virtual machine monitor. The extensible capability may include providing communication capabilities, providing resource sharing capabilities, etc., and the extensible capability may be implemented through an interface. The extensible capability of the non-secure virtual machine may also be reflected in providing support for operating systems (e.g., Linux operating systems, Android operating systems, etc.), and the non-secure virtual machine has better compatibility.

[0027] As an example, a secure virtual machine can support security-critical services, so that the secure virtual machine provides a virtualized environment for security-critical services. A non-secure virtual machine can support non-security-critical services, so that the non-secure virtual machine provides a virtualized environment for non-security-critical services. The microkernel and the virtualization service layer can be understood as units of a virtual machine monitor. The virtual machine monitor manages secure virtual machines and non-secure virtual machines respectively through different units, and the different units run at different privilege levels. Since an error in running a unit at a privilege level does not affect the operation of a unit running at another privilege level, the impact between the microkernel and the virtualization service layer can be reduced, ensuring the stability of the secure virtual machine and even the virtual machine monitor. Preferably, the privilege level of the microkernel is higher than the privilege level of the virtualization service layer.

[0028] For the secure virtual machine, the microkernel is also configured to perform at least one of the following operations: statically allocate processor resources and / or memory resources for the secure virtual machine; provide a communication channel for the secure virtual machine; manage the virtualization service layer; and communicate with the secure virtual machine, the non-secure virtual machine, and at least one of the virtualization service layers.

[0029] As an example, processor resources may be represented by the ability to use a processor, and memory resources may be represented by the ability to use a memory (e.g., physical memory). Static allocation may mean that processor resources and / or memory resources are not changed for a period of time after they are allocated. The processor here may mean a central processing unit (CPU), etc.

[0030] As an example, the operation of managing the virtualization service layer includes: monitoring the virtualization service layer, and the monitoring includes: creating, destroying or resetting. It can be seen that the microkernel is the core of the virtual machine monitor.

[0031] As an example, the operation of communicating with the security virtual machine includes: forwarding information between multiple security virtual machines. Through communication, simple and necessary information can be transmitted between the multiple security virtual machines. The device virtualized by the security virtual machine can be placed in a pass-through mode.

[0032] For non-secure virtual machines, the virtualization service layer is also configured to control at least one of the following operations: dynamically scheduling processor resources and / or memory resources of non-secure virtual machines; monitoring non-secure virtual machines, wherein the monitoring includes creation, destruction or resetting; forwarding information between multiple non-secure virtual machines; and providing device virtualization services to enable device sharing for non-secure virtual machines, wherein the device virtualization service may represent a service for virtualizing a device in a virtual machine.

[0033] Since the processor resources and / or memory resources of non-secure virtual machines can be dynamically scheduled, the operation is more flexible. The virtualization service layer also provides a rich communication channel for non-secure virtual machines to frequently transfer large amounts of data between non-secure virtual machines. Device sharing achieved by non-secure virtual machines can improve device utilization.

[0034] In order to better understand the specific operations of the microkernel and virtualization service layer, refer to the following Figure 2 for a more detailed description.

[0035] Figure 2 A schematic diagram showing the interaction of an extensible virtual machine monitor according to an exemplary embodiment of the present disclosure, Figure 2 The privilege levels of the microkernel and virtualization service layer are also illustrated.

[0036] like Figure 2 As shown in the microkernel and secure virtual machine (VM 11 To VM 1n ) and / or non-secure virtual machines (VM 21 To VM 2n ) communicates through trap instructions, and the microkernel and the virtualization service layer communicate through system calls and trap instructions. The non-secure virtual machine may also include an input / output domain (I / O Domain) interface, and the I / O Domain may represent a virtual machine used to provide device virtualization services.

[0037] from Figure 2 It can be seen that the microkernel manages the virtualization service layer through system calls and trap instructions, and the microkernel manages the secure virtual machine through trap instructions. The microkernel can also forward the virtualization service layer's commands for controlling the non-secure virtual machine to the non-secure virtual machine.

[0038] from Figure 2 It can also be seen that the control of the virtualization service layer over the non-secure virtual machine can be achieved with the help of the microkernel. Specifically, the virtualization service layer is also configured to achieve control over the non-secure virtual machine with the help of the following contents: trap instructions and system calls between the virtualization service layer and the microkernel, and trap instructions between the microkernel and the non-secure virtual machine.

[0039] in addition, Figure 2 Multiple privilege levels are shown, including: user level, kernel level, and management level. The privilege level between the two dotted lines is the kernel level. In order of privilege level from low to high, they are user level, kernel level, and management level. The user level can provide non-safety-critical services such as entertainment services. The virtualization service layer is located at the user level, and the microkernel is located at the management level, so as mentioned above, stability can be guaranteed.

[0040] The above exemplary embodiments describe a virtual machine monitor. In actual use, the virtual machine monitor may be applied to an embedded system or may be implemented with the aid of a computer-readable storage medium storing instructions or codes. Figure 3 To understand the embedded system according to the exemplary embodiment of the present disclosure.

[0041] like Figure 3 As shown in , an embedded system according to an exemplary embodiment of the present disclosure may include: a memory configured to store codes or instructions; a processor configured to implement a virtual machine monitor by executing the codes or instructions. The virtual machine monitor implemented by the embedded system can be understood with reference to the above embodiments, and will not be described in detail here.

[0042] According to another exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions or codes is provided, wherein when the instructions or codes are executed on a system on chip, the system on chip is prompted to implement a virtual machine monitor.

[0043] While the present disclosure has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the following claims.

Claims

1. A microkernel-based scalable virtual machine monitor, include: The microkernel,is configured to: provide a virtualization environment for secure virtual machines; The virtualization service layer is configured to: provide service interfaces for non-secure virtual machines, The microkernel and virtualization service layer run at different privilege levels, and the privilege level of the microkernel is higher than that of the virtualization service layer. The microkernel is further configured to forward commands of the virtualization service layer for controlling the non-secure virtual machine to the non-secure virtual machine.

2. The scalable virtual machine monitor according to claim 1, in, The microkernel is further configured to perform at least one of the following operations: Static allocation of processor resources and / or memory resources for secure virtual machines; Provide a communication channel for secure virtual machines; Manage the virtualized service layer; Communicate with at least one of a secure virtual machine, a non-secure virtual machine, and a virtualization service layer.

3. The scalable virtual machine monitor according to claim 2, in, The operation of managing the virtualization service layer includes: monitoring the virtualization service layer, and the monitoring includes: creating, destroying or resetting.

4. The scalable virtual machine monitor according to claim 2, in, Operations for communicating with the secure virtual machine include: Forward information between multiple secure virtual machines.

5. The scalable virtual machine monitor according to claim 2, in, The microkernel communicates with the secure virtual machine and / or the non-secure virtual machine through trap instructions, and the microkernel communicates with the virtualization service layer through system calls and trap instructions.

6. The scalable virtual machine monitor according to claim 1, in, The virtualization service layer is further configured to control at least one of the following operations: Performing dynamic scheduling of processor resources and / or memory resources of a non-secure virtual machine; Monitoring a non-secure virtual machine, wherein the monitoring includes creating, destroying or resetting; Forwarding information between multiple non-secure virtual machines; Provides device virtualization services to enable device sharing for non-secure virtual machines.

7. The scalable virtual machine monitor according to claim 6, in, The virtualization service layer is also configured to implement control over the non-secure virtual machine by means of: trap instructions and system calls between the virtualization service layer and the microkernel, and trap instructions between the microkernel and the non-secure virtual machine.

8. An embedded system, include: a memory configured to store code or instructions; A processor is configured to implement the extensible virtual machine monitor according to any one of claims 1 to 7 by executing the codes or instructions.

9. A computer-readable storage medium storing instructions, in, When the instructions are executed on a system on chip, the system on chip is prompted to implement the scalable virtual machine monitor according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Integration of untrusted framework component with secure operating system environment

    CN103778389A

  • A high-security trusted mobile terminal security architecture and security service method

    CN109086100A

  • Method for integrated virtualization system based on microcontroller platform

    CN110147265A

  • Mobile communication device and method of operating thereof

    US20150074745A1