IP Library Granted Patent US 10,656,961
Granted Patent B2
US 10,656,961 · App. 15/859,432 · Granted May 19, 2020

Method and apparatus for operating a plurality of operating systems in an industry internet operating system

Inventor: Yan Li (Beijing, CN)
Assignee: KYLAND TECHNOLOGY CO., LTD
G06F9/45558G06F9/50G06F9/5077
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,656,961
App. No.
15/859,432
Granted
May 19, 2020
Kind
B2
Abstract

Disclosed are a method and apparatus for running a plurality of operating systems in an industry internet operating system, wherein the industry internet operating system includes application layer, cloud control layer, and field layer; the cloud control layer includes an industry real-time cloud operating system module configured to acquire and analyze data between the cloud control layer and the application layer, and to transmit a control instruction to the field layer; and the method includes: running a first core of a multi-core CPU in a VMX mode using a preset virtualization technology, creating at least one VM in the first core of the multi-core CPU, and running a first operating system on a VM in the first core, wherein each VM corresponds respectively to a logic partition; and running a second operating system directly on a physical partition in a second core of the multi-core CPU.

Claims (36)

1. A method for running a plurality of operating systems in an industry internet operating system, wherein the industry internet operating system comprises application layer devices, cloud control layer devices, and field layer devices; the cloud control layer devices comprise an industry real-time cloud operating system which includes a multi-core Central Processing Unit (CPU), the industry real-time cloud operating system is configured to acquire and analyze data between the cloud control layer and the application layer, and to transmit a control instruction to the field layer; and the method is applicable to the industry real-time cloud operating system, and comprises:

running a first core of the multi-core CPU in a Virtual Machine eXtensions, VMX, mode using a preset virtualization technology, creating at least one Virtual Machine, VM, in the first core of the multi-core CPU, and running a first operating system on a VM in the first core, wherein each VM corresponds respectively to a logic partition; and

running a second operating system directly on a physical partition in a second core of the multi-core CPU;

wherein if a plurality of VMs are created in the first core of the multi-core CPU, then scheduling the plurality of VMs running the first operating system comprises:

if a first timer for controlling switch of a time window in a schedule, and a second timer for controlling switch of a primary frame period of time in the schedule are preset in the schedule, then determining whether a current instance of time lies in a non-idle time window in the schedule, wherein the primary frame period of time is a sum of lengths of respective time windows in the schedule; and

if the current instance of time lies in the non-idle time window in the schedule, then obtaining a first VM in a ready state from the non-idle time window, and running the first VM;

otherwise, obtaining a second VM in a ready state from a priority ready queue, and running the second VM.

2. The method according to claim 1 , wherein the method further comprises:

managing the at least one VM using a Virtual Machine Monitor, VMM, in the first core, running the at least one VM in a non-root state, and running the VMM in a root state.

3. The method according to claim 1 , wherein the method further comprises:

allocating corresponding computer system resources respectively for the first operating system and the second operating system according to a correspondence relationship between the computer system resources and the operating systems in a preset resource configuration table.

4. The method according to claim 1 , wherein the VMs communicate as follows:

a transmitting VM determines a zone space in a shared memory for a receiving VM with at least a read privilege;

the transmitting VM writes first data into the zone space, and adds a data write request into the zone space, wherein the data write request carries an identifier of position of the first data in the zone space, an identifier of the transmitting VM, and an operation type of the request; and

the transmitting VM receives second data returned by the receiving VM, wherein the second data is obtained by the receiving VM after the receiving VM obtains the data write request, obtains the first data according to the identifier of the position, and then operates correspondingly on the first data according to the operation type of the request.

5. The method according to claim 1 , wherein the first operating system is run on the VM in the first core in either of a host mode and a guest mode.

6. A non-transitory computer readable storage medium on which there is stored computer program, which, upon being executed by one or more processor, perform the operations in the method for running a plurality of operating systems in an industry internet operating system according to claim 1 .

7. An apparatus for running a plurality of operating systems in an industry internet operating system, wherein the industry internet operating system comprises application layer devices, cloud control layer devices, and field layer devices; the cloud control layer devices comprise an industry real-time cloud operating system which includes a multi-core Central Processing Unit (CPU), the industry real-time cloud operating system is configured to acquire and analyze data between the cloud control layer and the application layer, and to transmit a control instruction to the field layer; and the apparatus is applicable to the industry real-time cloud operating system, and comprises:

one or more processors; and

a memory,

wherein one or more computer readable program codes are stored in the memory, and the one or more processors are configured to execute the one or more computer readable program codes to perform:

running a first core of the multi-core CPU in a Virtual Machine eXtensions, VMX, mode using a preset virtualization technology, to create at least one Virtual Machine, VM, in the first core of the multi-core CPU, and running a first operating system on a VM in the first core, wherein each VM corresponds respectively to a logic partition; and

running a second operating system directly on a physical partition in a second core of the multi-core CPU;

wherein if a plurality of VMs are created in the first core of the multi-core CPU, then scheduling the plurality of VMs running the first operating system comprises:

if a first timer for controlling switch of a time window in a schedule, and a second timer for controlling switch of a primary frame period of time in the schedule are preset in the schedule, determining whether a current instance of time lies in a non-idle time window in the schedule, wherein the primary frame period of time is a sum of lengths of the respective time windows in the schedule; and

if the current instance of time lies in the non-idle time window in the schedule, obtaining a first VM in a ready state from the non-idle time window, and run the first VM;

otherwise, obtaining a second VM in a ready state from a priority ready queue, and run the second VM.

8. The apparatus according to claim 7 , wherein the one or more processors are configured to execute the one or more computer readable program codes to further perform:

managing the at least one VM using a Virtual Machine Monitor, VMM, in the first core, to run the at least one VM in a non-root state, and to run the VMM in a root state.

9. The apparatus according to claim 7 , wherein the one or more processors are configured to execute the one or more computer readable program codes to further perform:

allocating corresponding computer system resources for the first operating system and the second operating system according to a correspondence relationship between the computer system resources and the operating systems in a preset resource configuration table.

10. The apparatus according to claim 7 , wherein the VMs communicate as follows:

a transmitting VM determines a zone space in a shared memory for a receiving VM with at least a read privilege;

the transmitting VM writes first data into the zone space, and adds a data write request into the zone space, wherein the data write request carries an identifier of position of the first data in the zone space, an identifier of the transmitting VM, and an operation type of the request; and

the transmitting VM receives second data returned by the receiving VM, wherein the second data is obtained by the receiving VM after the receiving VM obtains the data write request, obtains the first data according to the identifier of the position, and then operates correspondingly on the first data according to the operation type of the request.

11. The apparatus according to claim 7 , wherein the first operating system is run on the VM in the first core in either of a host mode and a guest mode.

Assignments (2)
LICENSE Recorded Dec 30, 2019
From: KYLAND TECHNOLOGY CO., LTD.; CORETEK SYSTEMS CO., LTD.
To: INTEWELL (GUANGZHOU) SOFTWARE TECHNOLOGY CO., LTD.
Reel/Frame 051446/0301 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 30, 2017
From: LI, YAN
To: KYLAND TECHNOLOGY CO., LTD.; CORETEK SYSTEMS INCORPORATED
Reel/Frame 044509/0654 →
Priority Claims (1)
CN 201710534181 · Jul 3, 2017 · national
Continuity (1)
Related Publication 20190004846A1 · Jan 3, 2019