Information processing device, control method, control program, and vehicle

The information processing device optimizes CPU core utilization through priority-based virtual machine allocation, addressing the challenge of managing diverse functional safety requirements in ECUs for improved processing efficiency.

JP7537272B2Active Publication Date: 2024-08-21TOYOTA JIDOSHA KK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020212732
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-12-22
Publication Date
2024-08-21
Estimated Expiration
2040-12-22

AI Technical Summary

Technical Problem

Existing control devices struggle to efficiently manage multiple applications with different functional safety requirements and high processing performance in electronic control units (ECUs), making them unsuitable for direct application in vehicles.

Method used

An information processing device with multiple CPU cores and a hypervisor that allocates virtual machines based on priority levels, using lockstep and non-lockstep modes to optimize processing for applications with varying safety requirements.

Benefits of technology

The device achieves high processing performance and efficiency by parallel processing of applications with different functional safety requirements, enhancing CPU capacity and overall system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007537272000001
    Figure 0007537272000001
  • Figure 0007537272000006
    Figure 0007537272000006
  • Figure 0007537272000005
    Figure 0007537272000005
Patent Text Reader

Abstract

To provide an information processing device capable of achieving high processing performance to a plurality of applications having different function securities that are required.SOLUTION: An information processing device including a plurality of CPU cores and a hypervisor capable of achieving a plurality of virtual machines includes a storage part for storing a priority including at least a request level about function securities of the plurality of virtual machines, and a control part for performing control so as to cause at least two or more among the plurality of CPU cores to execute the same processing of a first virtual machine when a virtual machine to be executed is the first virtual machine having a request level that is equal to or more than prescribed reference.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an information processing device mounted on a vehicle or the like. [Background technology]

[0002] Patent Document 1 discloses a control device using lockstep dual core (LSDC) technology. In the control device described in Patent Document 1, when a first CPU (Central Processing Unit) having an LSDC function and a second CPU not having an LSDC function are running applications, if the second CPU fails, the lockstep mode of the first CPU is released and the application running on the second CPU is degenerated and run on one of the CPU cores constituting the first CPU. In this way, the control device described in Patent Document 1 suppresses the influence of a failure of the second CPU. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] International Publication No. 2018 / 198184 Summary of the Invention [Problem to be solved by the invention]

[0004] However, the control executed by the control device described in Patent Document 1 is intended only as an emergency response in the event of a failure, and there is an issue that it is difficult to directly apply the control to an electronic control unit (ECU) that requires high processing performance and has multiple applications with different functional safety requirements mixed in it.

[0005] The present disclosure has been made in consideration of the above-mentioned problems, and aims to provide an information processing device and the like that can achieve high processing performance for multiple applications that require different functional safety. [Means for solving the problem]

[0006] In order to solve the above problems, one aspect of the disclosed technology is an information processing device having multiple CPU cores and a hypervisor capable of realizing multiple virtual machines, comprising: a memory unit that stores priorities including at least a requirement level regarding the functional safety of the multiple virtual machines; and a control unit that, when the virtual machine to be executed is a first virtual machine having a requirement level equal to or higher than a predetermined standard, controls at least two or more of the multiple CPU cores to execute processing of the same first virtual machine. Effect of the Invention

[0007] According to the information processing device of the present disclosure, high processing performance can be achieved for a plurality of applications that require different functional safety. This can be suppressed. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a block diagram showing a schematic configuration of an information processing device according to an embodiment of the present disclosure. [Figure 2A] A flowchart showing the procedure of a virtual machine allocation process executed by a hypervisor of an information processing device. [Figure 2B] A flowchart showing the procedure of a virtual machine allocation process executed by a hypervisor of an information processing device. [Diagram 3] FIG. 1 is a diagram showing an example of a configuration of an information processing device (specific example 1); [Figure 4] FIG. 1 is a diagram showing how virtual machines are allocated to CPU cores by the method disclosed herein (Example 1). [Diagram 5] FIG. 2 is a diagram showing an example of a configuration of an information processing device (Example 2); [Figure 6] FIG. 13 is a diagram showing how virtual machines are allocated to CPU cores by the method disclosed herein (Example 2). [Figure 7] FIG. 13 is a diagram showing an example of a configuration of an information processing device (Example 3). [Figure 8] FIG. 13 is a diagram showing how virtual machines are allocated to CPU cores by the method disclosed herein (Example 3). [Figure 9] A diagram showing how multiple virtual machines are allocated to multiple CPU cores using the conventional method DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] The information processing device disclosed herein uses a virtualization technology such as a hypervisor to consolidate and integrate multiple electronic control units (ECUs) into one high-performance processor, and determines the method and order of allocating multiple virtual machines to multiple CPU cores based on the priorities given to the virtual machines in advance, thereby making the processing of the information processing device more efficient. Hereinafter, an embodiment of the present disclosure will be described in detail with reference to the drawings.

[0010] <Embodiment> [composition] Fig. 1 is a block diagram showing a schematic configuration of an information processing device 1 according to an embodiment of the present disclosure. The information processing device 1 illustrated in Fig. 1 includes a CPU 10, a hypervisor 20, OSs 31 to 33, BSWs 41 to 43, and applications 51 to 55.

[0011] The CPU 10 is a high-performance processor built into an SoC (System on a Chip), etc. This CPU 10 is equipped with multiple CPU cores 11 and 12 as processing units, and has a so-called lockstep dual core (LSDC) function that can switch between lockstep mode and non-lockstep mode using a register or the like.

[0012] The hypervisor 20 is software that runs on the CPU 10, and is a virtualization mechanism that realizes a plurality of virtual machines 21 to 23. The hypervisor 20 can configure, separate, and manage the virtual machines 21 to 23, and can add predetermined parameters to the virtual machines 21 to 23. The hypervisor 20 of this embodiment can appropriately assign the virtual machines 21 to 23 to the CPU cores 11 and 12 based on priorities, which will be described later, and can control the virtual machines 21 to 23 assigned to the CPU cores 11 and 12 to execute processing (control unit).

[0013] The virtual machines (VM) 21 to 23 are virtualized computers that are managed and run on the hypervisor 20. Each of the virtual machines 21 to 23 is composed of a virtual CPU, a virtual memory, a virtual network, a virtual storage, and the like, and can simulate the operation of a computer and behave like one piece of computer hardware. The virtual machine 21 is equipped with an OS (operating system) 31 and a BSW (basic software) 41 for running an application 51 mounted on the virtual machine 21. The virtual machine 22 is equipped with an OS 32 and a BSW 42 for running applications 52 and 53 mounted on the virtual machine 22. The virtual machine 23 is equipped with an OS 33 and a BSW 43 for running applications 54 and 55 mounted on the virtual machine 23. The OS 31 to 33 may all be the same, or some or all may be different. The BSW 41 to 43 may all be the same, or some or all may be different.

[0014] Each of the virtual machines 21 to 23 is assigned a priority including information on the priority and the requirement level in advance. The priority is information indicating the order in which the virtual machines 21 to 23 should be assigned to the CPU core 11 and / or the CPU core 12 and executed. The requirement level is information indicating requirements regarding the functional safety of the applications 51 to 55 installed in each of the virtual machines 21 to 23. In the example of FIG. 1, the virtual machine 21 is assigned the highest priority, and the virtual machine 23 is assigned the lowest priority. In addition, the virtual machine 21 is assigned the requirement level a, the virtual machine 22 is assigned the requirement level b, and the virtual machine 23 is assigned the requirement level c. For example, the requirement level may be a parameter based on the Automotive Safety Integrity Level (ASIL), which is a risk classification defined in the ISO_26262 standard related to the functional safety of vehicles.

[0015] ASIL is classified into five levels, ASIL-D, ASIL-C, ASIL-B, ASIL-A, and QM, based on the occurrence rate of danger in the event of a vehicle breakdown, the possibility of avoiding the danger, and the magnitude of the impact of the danger. The levels are determined from ASIL-D, which is the highest parameter required for failure detection mechanisms, to QM, which is the lowest parameter. For example, ASIL-D, which requires the strictest requirements to ensure safety, is assigned to functions that are directly related to vehicle operation and safety, such as airbags, antilock braking systems (ABS), and electric power steering (EPS). ASIL-B is assigned to functions that are mainly indirectly connected to safety, such as headlights and brake lights. QM is assigned to functions that do not affect safety even if they fail, such as car audio.

[0016] 1 shows a configuration including three virtual machines 21 to 23, but is not limited to this. Furthermore, the number and types of applications 51 to 55 implemented in each of the virtual machines 21 to 23 are not limited to those shown in the figure.

[0017] When multiple requests to execute processing are issued from multiple virtual machines 21-23, the information processing device 1 disclosed herein suitably controls the allocation of the virtual machines 21-23 to the CPU cores 11 and 12 to execute the multiple requests as follows.

[0018] [control] Control executed by the information processing device 1 of the present disclosure will be described with further reference to Figures 2A, 2B, 3, and 4. Figure 2 is a flowchart showing the procedure of a virtual machine allocation process executed by the hypervisor 20 of the information processing device 1. The process of Figure 2A and the process of Figure 2B are connected by connectors X and Y. The allocation process of this embodiment is repeatedly executed every time an "allocation time", which is a unit of time during which a CPU core can be occupied and a virtual machine can be allocated, elapses.

[0019] In the description of the allocation process of this embodiment, an example (specific example 1) will be given in which the information processing device 1 has the configuration shown in Fig. 3. In specific example 1 shown in Fig. 3, the processing units mounted on the CPU 10 are a CPU core A and a CPU core B, and virtual machines VM1 to VM5 each implementing an OS, a BSW, and an application (APP) run on a hypervisor 20. Furthermore, the virtual machines VM1, VM2, VM3, VM4, and VM5 are given priority levels of functional safety requirement ASIL-D, ASIL-B, ASIL-B, ASIL-B, and QM, respectively, and are further given the priority order VM1>VM2>VM3>VM4>VM5.

[0020] The virtual machine allocation process illustrated in Figures 2A and 2B begins when the information processing device 1 and each application start up upon power-on and the startup processing is completed, and it is time to allocate each virtual machine VM1 to VM5 to CPU core A and CPU core B (initial allocation time).

[0021] (Step S201) The hypervisor 20 checks the priority (request level and priority order) of all virtual machines (VM) waiting for execution of processing. In the first processing in this concrete example 1, all virtual machines VM1 to VM5 are checked, and it is confirmed that the respective request levels are virtual machine VM1=ASIL-D, virtual machine VM2=ASIL-B, virtual machine VM3=ASIL-B, virtual machine VM4=ASIL-B, and virtual machine VM5=QM, and the priority order is virtual machine VM1>virtual machine VM2>virtual machine VM3>virtual machine VM4>virtual machine VM5. From the virtual machines to be checked, virtual machines assigned in steps S205, S209, and S210 described later are sequentially removed. When the priority order of all virtual machines waiting for execution is confirmed, the processing proceeds to step S202.

[0022] (Step S202) The hypervisor 20 selects a first virtual machine (first VM) having the highest priority among the virtual machines (VM) whose priorities have been confirmed in step S201 above, as a target for the allocation process. In the first process in this specific example 1, the virtual machine VM1 is selected as the first virtual machine. When the first virtual machine is selected as a target for the allocation process, the process proceeds to step S203.

[0023] (Step S203) The hypervisor 20 judges whether the requirement level of the first virtual machine (first VM) is equal to or higher than a predetermined standard. This predetermined standard is a standard for judging whether the virtual machine is executed by a plurality of CPU cores or a single CPU core, and is set based on the functional safety required for the application installed in the virtual machine. In the present embodiment, as an example, ASIL-D is set as the standard, and whether the requirement level of the first virtual machine is equal to or higher than ASIL-D is judged. In the first process in this concrete example 1, the virtual machine VM1 having the requirement level ASIL-D becomes the first virtual machine, and is judged to be equal to or higher than the standard. If it is judged that the requirement level of the first virtual machine is equal to or higher than the standard (step S203, Yes), the process proceeds to step S204, and if it is judged that the requirement level of the first virtual machine is lower than the standard (step S203, No), the process proceeds to step S206.

[0024] (Step S204) The hypervisor 20 sets the CPU 10 to lockstep mode. That is, if the current setting is lockstep mode, the setting is maintained, and if it is non-lockstep mode, it switches to lockstep mode. This allows the CPU core A and CPU core B to perform the same arithmetic processing using the same input. Once the lockstep mode is set, the process proceeds to step S205.

[0025] (Step S205) The hypervisor 20 allocates a first virtual machine (first VM) to both CPU core A and CPU core B in the lockstep mode. In the first process in this specific example 1, the virtual machine VM1 is allocated to both CPU core A and CPU core B. When the allocation of the first virtual machine is completed, the process proceeds to step S211.

[0026] (Step S206) The hypervisor 20 sets the CPU 10 to non-lockstep mode. That is, if the current setting is non-lockstep mode, the setting is maintained, and if it is lockstep mode, the mode is switched to non-lockstep mode. This allows the CPU core A and the CPU core B to perform separate arithmetic processing using separate inputs. When the non-lockstep mode is set, the process proceeds to step S207.

[0027] (Step S207) The hypervisor 20 judges whether or not there is a virtual machine (VM) having a requirement level below the reference level among all virtual machines waiting to be executed except for the first virtual machine (1 VM). In the first process in this specific example 1, since the virtual machines VM2 to VM5 except for the virtual machine VM1 have the requirement level ASIL-B or QM, it is judged that there is a virtual machine having a requirement level below the reference level. If it is judged that there is a virtual machine having a requirement level below the reference level (step S207, Yes), the process proceeds to step S208, and if it is judged that there is no virtual machine having a requirement level below the reference level (step S207, No), the process proceeds to step S210.

[0028] (Step S208) The hypervisor 20 selects a second virtual machine (2 VM) having a requirement level below the reference and having the second highest priority after the first virtual machine (1 VM) as a target for the allocation process. In the first process in this specific example 1, a virtual machine VM2 having a requirement level of ASIL-B and having the second highest priority is selected as the second virtual machine. When the second virtual machine is selected as a target for the allocation process, the process proceeds to step S209.

[0029] (Step S209) The hypervisor 20 assigns a first virtual machine (first VM) and a second virtual machine (second VM) to CPU core A and CPU core B in non-lockstep mode, respectively. In the first process in this specific example 1, virtual machine VM1 is assigned to CPU core A, and virtual machine VM2 is assigned to CPU core B. Note that the assignment destinations of virtual machines VM1 and VM2 may be reversed, that is, CPU core A and CPU core B. When the assignment of the first virtual machine and the second virtual machine is completed, the process proceeds to step S211.

[0030] (Step S210) The hypervisor 20 allocates a first virtual machine (first VM) to the CPU core A (or CPU core B) in the non-lockstep mode. When the allocation of the first virtual machine is completed, the process proceeds to step S211.

[0031] (Step S211) The hypervisor 20 starts the operations of the virtual machines (VMs) assigned to the CPU core A and the CPU core B. When the operations of the virtual machines start, the process proceeds to step S212.

[0032] (Step S212) The hypervisor 20 determines whether or not the time allocated to the virtual machines (VM) for the CPU core A and the CPU core B has ended. If the time allocated to the virtual machines has ended (Yes in step S212), the process proceeds to step S213; otherwise, the process waits until the time allocated to the virtual machines ends.

[0033] (Step S213) The hypervisor 20 judges whether or not the allocation of all virtual machines (VMs) waiting for processing execution has been completed. If the allocation of the virtual machines has been completed (step S213, Yes), the allocation process is terminated, and if the allocation of the virtual machines has not been completed (step S213, No), the process proceeds to step S201.

[0034] FIG. 4 shows how the virtual machines VM1 to VM5 shown in FIG. 3 are allocated to the CPU core A and the CPU core B in accordance with the allocation process of this embodiment.

[0035] As shown in FIG. 4, at allocation time "0", all of the virtual machines VM1 to VM5 are checked, and the virtual machine VM1 with the highest priority is assigned to both CPU core A and CPU core B in the lockstep mode based on the required level ASIL-D. At allocation time "1", the virtual machines VM2 to VM5 are checked, and from among them, the virtual machines VM2 and VM3 are assigned to the CPU core A and CPU core B in the non-lockstep mode based on the required level ASIL-B based on the priority. At allocation time "2", the virtual machines VM4 and VM5 are checked, and the virtual machines VM4 and VM5 are assigned to the CPU core A and CPU core B in the non-lockstep mode based on the priority and the required level.

[0036] For comparison, Fig. 9 shows a conventional allocation method in which all virtual machines waiting to be executed are allocated to both CPU core A and CPU core B. As shown in concrete example 1 in Fig. 4, the allocation method of this embodiment improves the CPU processing capacity for applications with low priority requirement levels and improves the amount that can be processed (efficiency) of the device as a whole, compared to the conventional allocation method shown in Fig. 9.

[0037] [Other examples] Fig. 5 shows another configuration example (specific example 2) of the information processing device 1. Fig. 6 shows how the virtual machines VM1 to VM5 in Fig. 5 are allocated to the CPU core A and CPU core B in accordance with the allocation process of this embodiment.

[0038] 5, the processing units mounted on the CPU 10 are a CPU core A and a CPU core B, and virtual machines VM1 to VM5 each implementing an OS, a BSW, and an application (APP) run on a hypervisor 20. The virtual machines VM1, VM2, VM3, VM4, and VM5 are given priority levels ASIL-D, ASIL-D, ASIL-B, ASIL-B, and QM for functional safety, respectively, and are further given the order of priority VM1>VM2>VM3>VM4>VM5. This specific example 2 is an example in which there are multiple virtual machines with a required level ASIL-D that run in lockstep mode.

[0039] As shown in FIG. 6, at allocation time “0”, all of the virtual machines VM1 to VM5 are checked, and the virtual machine VM1 with the highest priority is assigned to both CPU core A and CPU core B in the lockstep mode based on the required level ASIL-D. At allocation time “1”, the virtual machines VM2 to VM5 are checked, and the virtual machine VM2 with the highest priority among them is assigned to both CPU core A and CPU core B in the lockstep mode based on the required level ASIL-D. At allocation time “2”, the virtual machines VM3 to VM5 are checked, and from among them, the virtual machines VM3 and VM4 are assigned to the CPU core A and CPU core B in the non-lockstep mode based on the required level ASIL-B, respectively, based on their priorities. At allocation time “3”, the remaining virtual machine VM5 is assigned to the CPU core A (or CPU core B) in the non-lockstep mode.

[0040] Fig. 7 shows another configuration example (concrete example 3) of the information processing device 1. Fig. 8 shows how the virtual machines VM1 to VM5 in Fig. 7 are allocated to the CPU core A and CPU core B in accordance with the allocation process of this embodiment.

[0041] 7, the processing units mounted on the CPU 10 are a CPU core A and a CPU core B, and virtual machines VM1 to VM5 each implementing an OS, a BSW, and an application (APP) are running on a hypervisor 20. The virtual machines VM1, VM2, VM3, VM4, and VM5 are given priority levels ASIL-D, ASIL-B, ASIL-D, ASIL-B, and QM for functional safety, respectively, and are further given a priority order VM1>VM2>VM3>VM4>VM5. This specific example 3 is an example in which there are multiple virtual machines with a required level ASIL-D that are operated in lockstep mode, and there is a virtual machine with a required level ASIL-B that has a higher priority than the virtual machine with the required level ASIL-D.

[0042] As shown in FIG. 8, at allocation time “0”, all of the virtual machines VM1 to VM5 are checked, and the virtual machine VM1 with the highest priority is assigned to both the CPU core A and the CPU core B in the lockstep mode based on the required level ASIL-D. At allocation time “1”, the virtual machines VM2 to VM5 are checked, and the virtual machine VM2 with the highest priority among them is first assigned to the CPU core A in the non-lockstep mode based on the required level ASIL-B. On the other hand, the virtual machine VM4 with the required level ASIL-B, which has the highest priority among the virtual machines that are allowed to be executed in the non-lockstep mode, is assigned to the CPU core B. At allocation time “2”, the virtual machines VM3 and VM5 are checked, and the virtual machine VM3 with the highest priority among them is assigned to both the CPU core A and the CPU core B in the lockstep mode based on the required level ASIL-D. At allocation time “3”, the remaining virtual machine VM5 is assigned to the CPU core A (or CPU core B) in the non-lockstep mode.

[0043] In both of the above-mentioned specific example 2 shown in FIG. 6 and specific example 3 shown in FIG. 8, it can be seen that the allocation method of this embodiment improves the CPU processing capacity for applications with low priority requirement levels and improves the amount that can be processed (efficiency) of the device as a whole, compared to the conventional allocation method shown in FIG. 9.

[0044] <Actions and Effects> As described above, the information processing device according to an embodiment of the present disclosure stores, in a storage unit, priorities including a requirement level for the functional safety of a virtual machine and a priority order of the virtual machine that are given in advance for the virtual machine. Then, the information processing device according to the present embodiment assigns the virtual machines waiting to execute a process to a plurality of CPU cores based on the priority order (requirement level, priority order).

[0045] In this allocation process, virtual machines having a demand level equal to or greater than a predetermined threshold are allocated in parallel to multiple CPU cores in lockstep mode, and virtual machines having a demand level below the predetermined threshold are allocated to one of the multiple CPU cores in non-lockstep mode.

[0046] As a result, in the information processing apparatus of this embodiment, the CPU processing capacity for applications with low priority requirement levels is improved, and the amount that can be processed (efficiency) of the entire apparatus can be improved.

[0047] Although one embodiment of the disclosed technology has been described above, the present disclosure can be understood not only as a control device, but also as a control method executed by a control device having a processor and a memory, a control program for that method, a computer-readable non-transitory recording medium storing the control program, or a vehicle equipped with a control device. [Industrial Applicability]

[0048] The present disclosure can be used as an information processing device mounted on a vehicle or the like. [Explanation of symbols]

[0049] 10 CPU 11, 12 CPU cores 20 Hypervisor 21~23 Virtual Machine (VM) 31~33 OS 41~43 BSW 51~55 Application (APP)

Claims

1. An information processing device including a plurality of CPU cores and a hypervisor capable of implementing a plurality of virtual machines, a storage unit that stores a priority level including at least a required level for functional safety of the plurality of virtual machines and a priority level of the plurality of virtual machines; a control unit that controls at least two or more of the plurality of CPU cores to execute processing of the same first virtual machine when the virtual machine to be executed is a first virtual machine having the requirement level equal to or higher than a predetermined standard, the control unit, when there are a plurality of the virtual machines to be executed, controls the plurality of CPU cores to execute the processes of the virtual machines in order from a higher order based on the priority order; Information processing device.

2. when the virtual machine to be executed is a second virtual machine having the requirement level lower than the predetermined standard, the control unit causes any one of the plurality of CPU cores to execute processing of the second virtual machine; The information processing device according to claim 1 .

3. A control method executed by a computer of an information processing device having a plurality of CPU cores and a hypervisor capable of realizing a plurality of virtual machines, comprising: storing a priority level including at least a requirement level for functional safety of the plurality of virtual machines and a priority level of the plurality of virtual machines; When the virtual machine to be executed is a first virtual machine having the requirement level equal to or higher than a predetermined standard, controlling at least two or more of the plurality of CPU cores to execute processing of the same first virtual machine; and when there are a plurality of the virtual machines to be executed, controlling the plurality of CPU cores to execute the processes of the virtual machines in order from the highest priority based on the priority order. Control methods.

4. A control program to be executed by a computer of an information processing device having a plurality of CPU cores and a hypervisor capable of realizing a plurality of virtual machines, storing a priority level including at least a requirement level for functional safety of the plurality of virtual machines and a priority level of the plurality of virtual machines; When the virtual machine to be executed is a first virtual machine having the requirement level equal to or higher than a predetermined standard, controlling at least two or more of the plurality of CPU cores to execute processing of the same first virtual machine; and when there are a plurality of the virtual machines to be executed, controlling the plurality of CPU cores to execute the processes of the virtual machines in order from the highest priority based on the priority order. Control program.

5. A vehicle equipped with the information processing device according to claim 1 or 2.

Citation Information

Patent Citations

  • Method of managing configuration of computer system, computer system, and program for managing configuration

    JP2010134518A

  • Reconfiguration control device

    WO2018198184A1