Disclosure of Invention
The main purpose of the embodiment of the application is to provide a multi-platform operating system compatible system based on a core board so as to improve the compatibility of different operating systems.
In order to achieve the above purpose, the embodiment of the application provides a multi-platform operating system compatible system based on a core board, wherein the compatible system comprises a core board module, a virtualization module, a resource scheduling module, a cross-platform communication module, a drive compatible module, a safety management module and a system monitoring module, wherein:
The core board module is used for simultaneously bearing a plurality of different operating systems, communicating with the virtualization module, the resource scheduling module, the cross-platform communication module, the drive compatibility module, the security management module and the system monitoring module through internal buses, and distributing the hardware resources required by each operating system;
the virtualization module is used for realizing the isolation and sharing of a plurality of operating systems on the hardware resources through a hardware virtualization technology, and supports the parallel operation of the operating systems on a processor level through a hardware auxiliary virtualization function so as to reduce the virtualization overhead and improve the overall performance;
The resource scheduling module is used for dynamically distributing the use of the hardware resources according to the task priority, the real-time requirement and the current system load of each operating system;
The cross-platform communication module is used for realizing data transmission among the operating systems, and the accuracy and timeliness of data exchange among the operating systems are improved through a shared memory mechanism and an interrupt trigger mechanism;
The drive compatible module provides a unified hardware drive interface layer for solving the drive compatibility problem of each operating system on the hardware equipment, and the drive compatible module enables each operating system to share the same hardware equipment through abstracting a standardized API interface;
The security management module is used for controlling the access rights of each operating system to the hardware resources and the data, and the security management module improves the security of the data through a multi-layer access control mechanism based on identity verification and a hardware-level encryption technology and prevents the unauthorized operating system from accessing the hardware resources;
The system monitoring module is used for dynamically monitoring the running state of each operating system, detecting the resource use condition of each operating system, and triggering an alarm or reallocating system resources according to a preset threshold value.
In some embodiments, the hardware resources include a processor unit, a memory unit, and a variety of I/O interfaces, wherein:
the processor unit comprises a plurality of core processors, and the processor unit supports multithreading parallel processing and is used for processing task requests from each operating system;
The memory unit comprises a dynamic random access memory or a static random access memory, supports an on-demand allocation mechanism, and dynamically allocates memory space according to the requirements of different operating systems;
the I/O interface comprises a universal serial bus, a serial communication interface, an Ethernet interface and an I/O interface with preset purposes, and the I/O interface is used for supporting communication and interaction between each operating system and external equipment;
the internal bus in the core board module adopts a target communication protocol, and the internal bus is used for connecting the processor unit, the memory unit and various I/O interfaces, wherein the bandwidth of the target communication protocol reaches a preset bandwidth threshold and the delay is lower than a preset delay threshold.
In some embodiments, the virtualization module comprises a hardware-assisted virtualization function module, a virtual machine monitor, a resource isolation module and a virtualization overhead optimization algorithm module, wherein:
the virtualization module supports hardware resource isolation of each operating system through processor virtualization expansion based on the hardware auxiliary virtualization function module;
The virtual machine monitor operates in a virtualization layer and is used for managing the access of each operating system to the hardware resources and controlling the virtualization processes of the processor unit, the memory unit and various I/O interfaces;
the virtualization module prevents resource conflict among the operating systems through the resource isolation module;
the virtualization module adopts an optimization algorithm through the virtualization overhead optimization algorithm module, so that interrupt overhead between the virtual machine and the hardware resource is reduced.
In some embodiments, the resource scheduling module comprises a task priority scheduling algorithm module and a resource usage model module, wherein:
The resource scheduling module utilizes the task priority scheduling algorithm module to allocate the hardware resources to each operating system through a preset priority queue based on the priority and real-time requirements of the task, and the scheduling algorithm adopts a weighted polling mechanism to enable the high-priority task to obtain the resources preferentially;
And the resource scheduling module dynamically monitors the hardware resource use state through the resource use model module and establishes a resource use model.
In some embodiments, the cross-platform communication module comprises a shared memory mechanism module, an interrupt trigger mechanism module and a communication scheduling algorithm module, wherein:
The cross-platform communication module realizes data transmission among different operating systems through the shared memory mechanism module, and the shared memory mechanism module is provided with a locking mechanism to prevent data conflict caused by simultaneous access of the operating systems;
The cross-platform communication module triggers communication and data synchronization among the operating systems based on a target event by utilizing hardware interrupt according to the interrupt trigger mechanism module so as to improve the instantaneity of cross-operating system data exchange;
The communication scheduling algorithm module adopts a self-adaptive communication scheduling algorithm, optimizes data transmission based on the data exchange frequency and time delay requirements of each operating system, and reduces cross-platform communication delay.
In some embodiments, the driver compatibility module comprises a standardized API interface layer, a driver abstraction mechanism module, and a driver management policy module, wherein:
The drive compatible module abstracts the operation of the hardware equipment into a unified interface through a standardized API based on a standardized API interface layer and supports each operating system to share the same hardware equipment;
The drive compatible module shields the difference between the operating systems through the drive abstract mechanism module, so that the operating systems call a standardized interface to carry out hardware operation without writing a separate drive program for each operating system;
And the drive compatible module dynamically adjusts the loading and unloading of the drive program based on the drive management strategy module according to the requirements of each operating system and the state of the hardware equipment, and improves the resource utilization rate of the hardware equipment.
In some embodiments, the security management module comprises an access control mechanism module, an encryption technology module and an authentication mechanism module, wherein:
The security management module adopts a role-based access control mechanism based on the access control mechanism module, and limits the access of different operating systems to the hardware resources and the data according to the roles and the authorities of the operating systems;
the security management module protects data through the encryption technology module at a hardware level;
the authentication mechanism module is used for enabling each operating system to carry out authentication before accessing the hardware resources through an authentication mechanism based on multi-factor authentication, so that unauthorized operation is avoided.
In some embodiments, the system monitoring module comprises a real-time monitoring mechanism module, a fault diagnosis mechanism module and a dynamic adjustment function module, wherein:
the system monitoring module dynamically detects the use condition of hardware resources of each operating system based on the real-time monitoring mechanism module, and adopts a periodic sampling technology to ensure that the resource scheduling efficiency under a set load state is achieved;
the system monitoring module detects abnormal behaviors in each operating system through the fault diagnosis mechanism module and records logs;
And under the condition of insufficient system resources, the system monitoring module dynamically adjusts the resource allocation of each operating system based on the dynamic adjustment functional module.
In some embodiments, the core board module supports a variety of processor architectures including x86, ARM, and RISC-V architectures, the core board module optimizing resource scheduling and managing the respective operating systems according to the instruction sets of the different processor architectures.
In some embodiments, the operating system for simultaneous loading of the core board module comprises at least two of Windows, linux or Android.
The embodiment of the application at least comprises the following beneficial effects:
The core board module integrates various hardware resources and supports parallel operation of a plurality of operating systems. The virtualization module realizes the isolation and sharing of resources among a plurality of operating systems through a hardware-assisted virtualization technology, and ensures that different operating systems can efficiently utilize hardware resources. The resource scheduling module dynamically allocates resources of the processor, the memory and the I/O interface according to task priority and real-time requirements of each operating system, so that efficient operation of each operating system in a multi-platform environment is ensured, and particularly, the real-time response capability to high-priority tasks is greatly improved.
The application reduces the performance cost caused by the traditional software virtualization by the hardware auxiliary virtualization functions (such as Intel VT-x, AMD-V and the like) in the virtualization module, and particularly directly supports the parallel operation of the operating system at the processor level. The virtualized overhead optimization algorithm further improves overall system performance by reducing delays of processors, memory, and I/O interfaces in virtualized traps. Meanwhile, the cross-platform communication module realizes high-speed data exchange among a plurality of operating systems through a shared memory and an interrupt trigger mechanism, and reduces data transmission delay.
The security management module ensures the security of a plurality of operating systems on hardware resources and data access and prevents unauthorized operation through a role-based access control mechanism (RBAC) and a hardware-level encryption technology. The system monitoring module monitors the resource use condition of each operating system in real time, and triggers an alarm or dynamically adjusts resource allocation when abnormality occurs, so as to ensure the stable operation of the system in a multi-platform environment. In addition, the drive compatible module solves the compatibility problem of a plurality of operating systems to hardware equipment through a standardized API interface, and ensures the efficient sharing of hardware resources and the stable operation of a drive program.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the application, but are merely examples of apparatuses and methods consistent with aspects of embodiments of the application as detailed in the accompanying claims.
It is to be understood that the terms "first," "second," and the like, as used herein, may be used to describe various concepts, but are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of embodiments of the present application. The words "if", as used herein, may be interpreted as "when" or "in response to a determination", depending on the context.
The terms "at least one", "a plurality", "each", "any" and the like as used herein, at least one includes one, two or more, a plurality includes two or more, each means each of the corresponding plurality, and any one means any of the plurality.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
Referring to fig. 1, an embodiment of the present application provides a multi-platform operating system compatible system based on a core board, where the compatible system includes a core board module, a virtualization module, a resource scheduling module, a cross-platform communication module, a drive compatible module, a security management module, and a system monitoring module;
the core board module comprises a processor, a memory and a plurality of I/O interfaces, and is used for simultaneously bearing a plurality of operating systems, wherein the operating systems comprise Windows, linux and Android operating systems, and the core board module is communicated with the virtualization module, the resource scheduling module, the cross-platform communication module, the drive compatibility module, the security management module and the system monitoring module through internal buses and distributes required hardware resources for the operating systems;
the virtualization module is used for realizing the isolation and sharing of a plurality of operating systems on hardware resources of the processor, the memory and the I/O interface through a hardware virtualization technology, and supporting the parallel operation of the operating systems on the processor level through a hardware auxiliary virtualization function, so that the virtualization overhead is reduced and the overall performance is improved;
The resource scheduling module is used for dynamically distributing the use of the processor, the memory, the storage device and the I/O interface according to the task priority, the real-time requirement and the current system load of a plurality of operating systems, so that each operating system can obtain required hardware resources in a multi-platform environment, and the real-time requirement can be met;
the cross-platform communication module is used for realizing high-efficiency data transmission among a plurality of operating systems, and the cross-platform communication module ensures accurate and timely data exchange among the plurality of operating systems through a shared memory mechanism and an interrupt trigger mechanism;
The drive compatible module provides a unified hardware drive interface layer and is used for solving the drive compatibility problem of different operating systems on hardware equipment, and the drive compatible module enables a plurality of operating systems to share the same hardware equipment by abstracting a standardized API interface;
The security management module is used for controlling access rights of a plurality of operating systems to hardware resources and data, ensuring the security of the data and preventing unauthorized operating systems from accessing core hardware resources through a multi-layer access control mechanism based on identity verification and a hardware-level encryption technology;
The system monitoring module is used for monitoring the running states of a plurality of operating systems in real time, detecting the resource use condition of each operating system, triggering an alarm or reallocating system resources according to a preset threshold value, and ensuring the stable and efficient running of the system in a multi-platform environment.
The core board module specifically comprises:
The processor unit comprises a plurality of processing cores and supports multithreading parallel processing and is used for processing task requests from a plurality of operating systems;
the memory unit is a dynamic random access memory or a static random access memory, supports an on-demand allocation mechanism, dynamically allocates memory space according to the requirements of different operating systems, and ensures that each operating system can access the required memory resources;
The I/O interface comprises a universal serial bus, a serial communication interface, an Ethernet interface and other I/O interfaces with specific purposes (target purposes) for supporting the communication and interaction between each operating system and external equipment;
An internal bus, wherein the internal bus adopts a high-bandwidth and low-delay communication protocol (such as AMBA and PCIe) and is used for connecting a processor unit, a memory unit and various I/O interface units, so that the data transmission among the units is fast and efficient;
The core board module supports a plurality of operating systems, wherein the operating systems comprise Windows, linux and Android operating systems, the operating systems are isolated through the virtualization module, and task management and hardware resource allocation are performed through resource scheduling of the core board module;
The core board module supports parallel operation of a plurality of operating systems through a high-efficiency processor, dynamic storage management and various I/O interfaces, and realizes high-efficiency communication among the modules through a high-speed internal bus, thereby ensuring the overall operation efficiency and resource scheduling capability of the system.
Referring to fig. 2, the virtualization module specifically includes:
hardware-assisted virtualization technology, wherein a virtualization module supports hardware resource isolation of different operating systems through processor virtualization expansion based on hardware-assisted virtualization technology (such as Intel VT-x or AMD-V);
The virtual machine monitor (Hypervisor) runs on a virtualization layer and is used for managing the access of a plurality of operating systems to hardware resources, controlling the virtualization processes of a processor, a memory and an I/O interface and ensuring the parallel running of different operating systems on the same hardware resources;
the virtualized module prevents resource conflict among different operating systems through the resource isolation mechanism, and ensures that each operating system can independently run and access own allocated resources;
the virtualization overhead optimization algorithm is that a virtualization module adopts an optimization algorithm, such as an algorithm for minimizing the processing time of a virtualization trap, so that the interrupt overhead between a virtual machine and hardware resources is reduced, and the specific formula is as follows:
Ttrap=Tcpu_overhead+Tmem_access+Tio_delay;
Where T trap represents the total time of virtualized trap processing, T cpu_overhead represents the computational overhead of processor traps, T mem_access represents the latency caused by memory accesses, and T io_delay represents the latency of I/O device accesses.
By optimizing each parameter, the virtualization module realizes the improvement of the overall performance;
The virtualization module ensures that multiple operating systems run in parallel on the same hardware through a hardware-assisted virtualization technology and an optimized virtual machine monitor, reduces virtualization overhead through a resource isolation and optimization algorithm, and improves system performance.
The resource scheduling module specifically comprises:
The resource scheduling module distributes hardware resources for each operating system through a preset priority queue based on the priority and real-time requirements of the task, and the scheduling algorithm adopts a weighted polling mechanism to enable the high-priority task to obtain the resources preferentially, wherein the high-priority task comprises a security task, a communication task and a user interaction task;
Resource use model, the resource scheduling module establishes a resource use model by monitoring the use state of hardware resources in real time, and the expression of the model is as follows:
Wherein R usage represents the current resource utilization, U i represents the resource utilization of the ith operating system, P i represents the priority of the ith operating system, and T represents the total load time of the system;
The model is used for balancing the resource use condition of each operating system and ensuring that the tasks with high priority obtain priority treatment in a multi-platform environment;
the resource scheduling module ensures that a plurality of operating systems realize high-efficiency allocation when resources compete through a task priority scheduling algorithm and a resource using model, avoids system bottlenecks and improves the response speed of key tasks.
The cross-platform communication module specifically comprises:
The shared memory mechanism is used for realizing data transmission among different operating systems through the shared memory by the cross-platform communication module, wherein the shared memory is provided with a locking mechanism to prevent data conflict caused by simultaneous access of a plurality of operating systems;
the cross-platform communication module utilizes hardware interrupt to trigger communication and data synchronization between the operating systems based on a target event, so that the real-time performance of cross-operating system data exchange is ensured;
the communication scheduling algorithm is adopted, and based on the data exchange frequency and time delay requirements of each operating system, data transmission is optimized, so that cross-platform communication delay is reduced;
The cross-platform communication module ensures high-efficiency and reliable data exchange between the operating systems through a shared memory mechanism and an interrupt trigger mechanism, and further improves the collaborative work capability in a multi-platform environment.
The drive compatible module specifically includes:
The drive compatible module abstracts the operation of the hardware equipment into a unified interface through the standardized API interface and supports a plurality of operating systems to share the same hardware equipment;
The drive abstraction mechanism is used for driving the compatible module to shield the difference between the operating systems through the drive abstraction mechanism, so that each operating system calls the standardized interface to carry out hardware operation without writing an independent driver program for each operating system;
The drive management strategy is that the drive compatible module dynamically adjusts the loading and unloading of the drive program according to the requirement of an operating system and the state of the hardware equipment, and improves the resource utilization rate of the hardware equipment;
The drive compatibility module solves the problem of drive compatibility of multiple operating systems to hardware equipment through a standardized API interface and a drive abstraction mechanism, and ensures that hardware resources are efficiently utilized among different operating systems.
The security management module specifically comprises:
The security management module adopts a role-based access control mechanism, and limits the access of different operating systems to hardware resources and data according to the roles and the authorities of the operating systems;
The security management module protects the data through a hardware-level encryption technology, ensures confidentiality in the data transmission and storage process, and avoids unauthorized access and tampering;
The authentication mechanism ensures that each operating system performs authentication before accessing the hardware resource through the authentication mechanism based on multi-factor authentication, thereby avoiding unauthorized operation;
The security management module ensures the security of data and hardware resources of the system in a multi-platform operating environment through a multi-layer access control, encryption and authentication mechanism, and prevents unauthorized operation.
The system monitoring module specifically comprises:
The system monitoring module detects the use condition of the hardware resources of each operating system in real time, and adopts a periodic sampling technology to ensure the resource scheduling efficiency under a high-load state;
The system monitoring module detects abnormal behaviors in the operating system through the built-in fault diagnosis mechanism and records logs to help a system administrator to conduct fault troubleshooting;
dynamic adjustment function, in which the system monitoring module dynamically adjusts the resource allocation of each operating system to ensure the stable operation of the system under the condition of insufficient system resources;
the system monitoring module ensures the efficient operation of the operating system in the multi-platform environment through a real-time monitoring and dynamic adjustment mechanism and provides a fault diagnosis function so as to facilitate the maintenance and optimization of the system.
The core board module supports multiprocessor architectures including x86, ARM, and RISC-V architectures, and optimizes resource scheduling and operating system management according to instruction sets of different processor architectures, ensuring efficient operation of different architecture processors.
The core board module supports a multiprocessor architecture, so that the universality and expansibility of the system are improved, the requirements of different hardware platforms can be met, and the cross-platform efficient compatibility is realized.
The embodiments described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application, and those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
It will be appreciated by persons skilled in the art that the embodiments of the application are not limited by the illustrations, and may include more or fewer modules than shown, or may be combined with certain modules, or may be different modules.
The terms "first," "second," "third," "fourth," and the like in the description of the application and in the above figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" is used to describe an association relationship of an associated object, and indicates that three relationships may exist, for example, "a and/or B" may indicate that only a exists, only B exists, and three cases of a and B exist simultaneously, where a and B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one of a, b or c may represent a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and are not thereby limiting the scope of the claims of the embodiments of the present application. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and spirit of the embodiments of the present application shall fall within the scope of the claims of the embodiments of the present application.