Electronic control device

The electronic control device addresses the issue of unauthorized access by abnormal virtual machines through a monitoring system that determines and manages access rights, ensuring secure resource access until reset.

JP2024115749APending Publication Date: 2024-08-27DENSO CORP

Patent Information

Application Number
JP2023021574
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing virtual machines can illegally access resources before being reset, posing risks such as writing invalid data to memory or operating input/output devices abnormally.

Method used

An electronic control device with a monitoring virtual machine and hypervisor that determines abnormal virtual machines and prohibits access to resources, employing a determination unit and access management unit to manage access rights and perform failsafe operations.

Benefits of technology

Prevents unauthorized access by abnormal virtual machines, ensuring secure resource access until they are reset and restored to a normal state, thereby preventing unauthorized vehicle control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024115749000001_ABST
    Figure 2024115749000001_ABST
Patent Text Reader

Abstract

To provide a technique to suppress an abnormal virtual machine from accessing a resource.SOLUTION: An electronic control device 10 according to one aspect of the present disclosure includes: a plurality of virtual machines 40 to 70; a hypervisor 30 that manages operations of the plurality of virtual machines; and a resource 20 that allows the plurality of virtual machines to access. A monitoring virtual machine 40 of the plurality of virtual machines includes a determination unit 42 configured to determine whether other virtual machines 50 to 70 other than the monitoring virtual machine determine are normal or abnormal. The hypervisor includes an access management unit 32 that prohibits access to the resource of the abnormal virtual machine when the determination unit determines that at least one of the other virtual machines is abnormal.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to techniques for managing the operation of virtual machines. [Background technology]

[0002] The following Patent Document 1 describes a technique in which a monitoring program executed by a second virtual CPU monitors the operation of an application program executed by a first virtual CPU in an electronic control device. The monitoring program determines whether the application program is operating normally by determining whether the application program writes a predetermined value to a register at regular intervals.

[0003] If the monitor program determines that the application program is not operating normally, it resets the first virtual CPU. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2011-22934 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, after detailed investigation by the inventors, a problem was found in that the first virtual CPU, before being reset and returning to a normal state, may access resources such as the memory and input / output devices of the electronic control device.

[0006] For example, before returning to a normal state, the first virtual CPU may perform unauthorized access to the resources of the electronic control device, such as by writing unauthorized data to memory or by operating an input / output device in an unauthorized manner.

[0007] One aspect of the present disclosure desirably provides a technique for restricting abnormal virtual machines from accessing resources. [Means for solving the problem]

[0008] An electronic control device (10) according to one embodiment of the present disclosure includes a plurality of virtual machines (40-70), a hypervisor (30) that manages the operation of the plurality of virtual machines, and resources (20) accessed by the plurality of virtual machines.

[0009] A monitoring virtual machine (40) among the multiple virtual machines includes a determination unit (42, S400 to S406) configured to determine whether the virtual machines (50 to 70) other than the monitoring virtual machine are normal or abnormal.

[0010] The hypervisor includes an access management unit (32, S410 to S418) that prohibits access to resources of the abnormal virtual machine when the determination unit determines that at least one of the other virtual machines is abnormal.

[0011] According to this configuration, since the abnormal virtual machine is prohibited from accessing the resources of the electronic control device, the abnormal virtual machine is prevented from making unauthorized access to the resources of the electronic control device. [Brief description of the drawings]

[0012] [Figure 1] FIG. 2 is a block diagram showing the configuration of the electronic control device according to the embodiment; [Diagram 2] A diagram explaining the access rights settings when the virtual machine is normal. [Diagram 3] A diagram explaining the setting of access rights when a virtual machine becomes abnormal. [Figure 4] 11 is a flowchart showing a monitoring process by a monitoring virtual machine. [Diagram 5] 11 is a flowchart showing an access right setting process by a hypervisor. [Figure 6] 11 is a flowchart showing a fail-safe process by a hypervisor. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. [1. Configuration] 1 is mounted on, for example, a vehicle, and includes a resource 20, a hypervisor 30, and virtual machines 40 to 70. Hereinafter, the electronic control device is also referred to as an ECU, the hypervisor as an HV, and the virtual machine as a VM.

[0014] The ECU 10 is mainly composed of one or more microcomputers including a CPU, RAM, ROM, an input / output interface, etc. The CPU executes a program stored in a non-transient physical recording medium such as a ROM. When the program is executed, a process corresponding to the program is performed.

[0015] The resources 20 include a shared memory 22 and an input / output device 24. Although not shown, the resources 20 also include an interface to an in-vehicle network. The HV 30 includes, as functional blocks for managing the operations of the VMs 40 to 70, an access management unit 32 that is realized by the CPU executing a program stored in the ROM, and a fail-safe unit .

[0016] The access management unit 32 manages the access rights of the VMs 50 to 70 to the resource 20. The access rights of the VM 40 to the resource 20 are not managed by the access management unit 32, and the VM 40 is permitted to access the resource 20. The fail-safe unit 34 executes a fail-safe such as a reset for the VMs 50 to 70 that are abnormal.

[0017] The VMs 40 to 70 communicate with each other by writing and reading data to and from the shared memory 22. The VMs 40 to 70 may communicate with each other using the input / output device 24. The input / output device 24 may be, for example, an external device such as a sensor or an actuator, or may be a communication device that is a means of communication not between the VMs 40 to 70 but between the VMs 40 to 70 and other ECUs.

[0018] The VM 40 includes a determination unit 42 and a notification unit 44 as functional blocks realized by the CPU executing a program stored in the ROM. The determination unit 42 determines whether the VMs 50-70 other than the VM 40 are normal or abnormal. The notification unit 44 notifies the HV 30 of a request to set the access rights of the VMs 50-70 to the resource 20.

[0019] The VMs 50 to 70 each include, as functional blocks implemented by a CPU executing a program stored in a ROM, processing units 52, 62, 72 and diagnosis units 54, 64, 74. The processing units 52, 62, 72 are each assigned a vehicle control function for controlling a vehicle.

[0020] The diagnostic units 54, 64, 74 each diagnose whether its own VM is normal or abnormal, and write the diagnosis result to an area allocated to its own VM in the shared memory 22. For example, the diagnostic units 54, 64, 74 diagnose whether its own VM is normal or abnormal by self-diagnosis.

[0021] As the self-diagnosis, a ROM diagnosis, a RAM diagnosis, a register diagnosis, a flow diagnosis, a CPU diagnosis, etc. are executed. The RAM diagnosis is performed by determining whether the storage area of ​​the RAM (not shown) allocated to each of the VMs 50 to 70 is normal or abnormal by ECC when, for example, reading and writing are performed in the storage area of ​​the RAM. ECC is an abbreviation for Error Correcting Code.

[0022] The RAM diagnosis is not limited to ECC, and may be performed based on whether or not written data can be read normally. The ROM diagnosis diagnoses whether the storage area of ​​the ROM (not shown) allocated to each of the VMs 50 to 70 is normal or abnormal, for example, by CRC. CRC is an abbreviation for Cyclic Redundancy Check.

[0023] The ROM diagnosis is not limited to CRC, but may be performed based on whether or not the checksums match. The register diagnosis is performed, for example, by checking whether data written to a register (not shown) assigned to each of the VMs 50 to 70 can be read normally.

[0024] The flow diagnosis is performed by determining whether or not a step that should be executed has been executed in the process flow executed by each of the VMs 50 to 70. CPU diagnosis is performed as follows. First, the diagnostic units 54, 64, 74 calculate the sample questions posed by VM 40 to VMs 50-70, and write the calculation results to the shared memory 22 assigned to the VM. The judgment unit 42 of VM 40 compares the calculation results of VMs 50-70 with the expected answer values ​​for the sample questions, and judges whether each of VMs 50-70 is normal or abnormal.

[0025] [2. Access Rights] 2, normal access rights are set for the VMs 50-70 with respect to the shared memory 22 and the input / output device 24, which are the resources 20. The normal access rights are access rights set for the VMs 50-70 with respect to the shared memory 22 and the input / output device 24 when the VMs 50-70 are normal. Access rights are set for each of the VMs 50-70 with respect to each of the resources 20, which in this embodiment are the shared memory 22 and the input / output device 24.

[0026] In this embodiment, the VM 40 is not judged to be normal or abnormal, and is able to access the shared memory 22 and the input / output device 24. Therefore, in Fig. 2, "-" is written in the normal access right of the VM 40 to the shared memory 22 and the input / output device 24, indicating that no setting is required.

[0027] A normal access right of 1 indicates that access is permitted, and a normal access right of 0 indicates that access is prohibited. Normal or abnormal is set as the quality level of the VMs 50 to 70. A mask value of 1 is set for normal, and a mask value of 0 is set for abnormal.

[0028] As described above, since the VM 40 is not judged as being normal or abnormal, neither a quality level nor a mask value is set. As shown in FIG. 3, for example, when VM 50 becomes abnormal, the quality level is set to abnormal, and the mask value is set to 0.

[0029] When the mask value of the VM 50 is set to 0, the normal access right and the mask value are ANDed and multiplied, so that the access right of the VM 50 to the shared memory 22 and the I / O device 24 becomes 0. As a result, access to the shared memory 22 and the I / O device 24 by the VM 50 is prohibited.

[0030] [3. Processing] (1) Monitoring process for VM40 The monitoring process flowchart shown in FIG. 4 is periodically executed by the VM 40, which is a monitoring VM.

[0031] In S400, the determination unit 42 of the VM 40 determines whether or not the diagnosis result of the self-diagnosis by the target VM that is the monitoring target and that is written in the shared memory 22 is normal. In addition, the judgment unit 42 acquires the calculation result of the example problem that the VM 40 has issued to the target VM as the diagnosis result, and judges whether the diagnosis result of the target VM is normal or not based on whether the calculation result of the target VM for the example problem matches the expected answer value.

[0032] If the determination in S400 is No, that is, if the diagnosis result of the target VM is abnormal, the process proceeds to S406. If the determination in S400 is Yes, that is, if the diagnosis result of the target VM is normal, in S402, the determination unit 42 determines whether or not normal is set as the quality level of the target VM. If the determination in S402 is Yes, that is, if normal is set as the quality level of the target VM, the determination unit 42 ends this process.

[0033] If the determination in S402 is No, that is, if the quality level of the target VM is set to abnormal, the determination unit 42 requests the HV 30 to set the quality level of the target VM to normal in S404, and ends this process.

[0034] In S406, the determination unit 42 requests the HV 30 to set the quality level of the target VM to abnormal. In S408, the determination unit 42 requests the HV 30 to perform a fail-safe for the target VM, and ends this process. As the fail-safe for the target VM, for example, a reset of the target VM is requested.

[0035] The requests from the VM 40 to the HV 30 in S404 to S408 are made by, for example, the determination unit 42 writing the requests in an area of ​​the shared memory 22 allocated to the VM 40. (2) Access right setting process for HV30 The flowchart of the access right setting process shown in FIG. 5 is executed by the HV 30 when the VM 40 requests a change in the quality level in S404 and S406 in FIG.

[0036] In S410, the access management unit 32 of the HV30 reads the quality level setting request written in the area of ​​the shared memory 22 allocated to the VM40, and determines whether the request is to set the quality level of the target VM to normal or abnormal.

[0037] If the determination in S410 is Yes, that is, if there is a request to set the quality level of the target VM to normal, the access management unit 32 sets the quality level of the target VM to normal in S412, and transitions to the process in S416.

[0038] If the determination in S410 is No, that is, if there is a request to set the quality level of the target VM to abnormal, the access management unit 32 sets the quality level of the target VM to abnormal in S414, and transitions to the process of S416.

[0039] In S416, the access management unit 32 reads out the normal access right of the target VM. In S418, the access management unit 32 sets the access right of the target VM by performing an AND process and multiplying the normal access right of the target VM by a mask value according to the quality level of the target VM.

[0040] (3) Fail-safe processing of HV30 The flow chart of the fail-safe process shown in FIG. 6 is executed by the HV 30 when the VM 40 requests execution of the fail-safe process in S408 of FIG.

[0041] In S420, the fail-safe unit 34 of the HV 30 resets the VM, for example, as a fail-safe for the target VM, and ends this process. In the embodiment described above, the VM 40 corresponds to the monitoring virtual machine, and the VMs 50 to 70 correspond to the virtual machines other than the monitoring virtual machine.

[0042] Moreover, S400 to S406 correspond to the processing of the determination unit of the monitoring virtual machine, S410 to S418 correspond to the processing of the access management unit of the hypervisor, and S420 corresponds to the processing of the fail-safe unit of the hypervisor.

[0043] [4. Effects] According to the embodiment described above, the following effects can be obtained. (4a) When the VM 40, which is a monitoring virtual machine, judges that any of the VMs 50 to 70 other than its own VM is abnormal, the HV 30 prohibits the abnormal VM from accessing the resource 20.

[0044] This makes it possible to prevent unauthorized access to the resource 20 until the abnormal VM is reset to the HV 30 and returns to a normal state. As a result, it is possible to prevent the abnormal VM from accessing the shared memory 22 or the input / output device 24 and performing unauthorized communication with other VMs until the abnormal VM is reset by the HV 30 and returns to a normal state.

[0045] Furthermore, it is possible to prevent an abnormal VM from accessing the resource 20 and performing unauthorized vehicle control until the HV 30 is reset and returns to a normal state. (4b) When the abnormal VM becomes normal, the normal access rights to the resource 20 that were set when the VM was normal are set, so that the resource 20 can be accessed with the same access rights as when the VM was normal.

[0046] 5. Other embodiments Although the embodiments of the present disclosure have been described above, the present disclosure is not limited to the above-described embodiments and can be implemented in various modified forms.

[0047] (5a) In the above embodiment, the VM 40, which is the monitoring virtual machine, performs only the monitoring process for other VMs, but this is not limited to the above. The VM 40, which is the monitoring virtual machine, may perform some vehicle control process in addition to the monitoring process.

[0048] In this case, it is desirable that the vehicle control process executed by VM40, which is the monitoring virtual machine, is a process such as door opening / closing control, which has a small processing load. (5b) In the above-described embodiment, for each of the VMs 50 to 70, the access right to the resource 20 when the VM 50 to 70 is normal is set for the resource 20, but this is not limited thereto. For example, the same access right to the resource 20 may be set for each of the VMs 50 to 70.

[0049] (5c) In the above-described embodiment, the ECU 10, which is an electronic control device, is mounted on a vehicle and executes vehicle control, but the present invention is not limited to this. As long as a hypervisor in the electronic control device manages the operation of virtual machines and the hypervisor prohibits access to resources of an abnormal virtual machine, the electronic control device may be used in any technical field.

[0050] (5d) The ECU 10 and the techniques described in this disclosure may be implemented by a special purpose computer provided by configuring a processor and memory programmed to perform one or more functions embodied in a computer program.

[0051] Alternatively, the ECU 10 and the techniques described herein may be implemented by a special purpose computer provided by configuring a processor with one or more special purpose hardware logic circuits.

[0052] Alternatively, the ECU 10 and techniques described herein may be implemented by one or more special purpose computers configured with a processor and memory programmed to perform one or more functions in combination with a processor configured with one or more hardware logic circuits.

[0053] The computer program may be stored in a computer-readable non-transitive tangible recording medium as instructions executed by a computer. The method for realizing the functions of each unit included in the microcomputers 2 to 6 does not necessarily need to include software, and all of the functions may be realized using one or more pieces of hardware.

[0054] (5e) Multiple functions provided by one component in the above-mentioned embodiments may be realized by multiple components, or one function provided by one component may be realized by multiple components. Furthermore, multiple functions provided by multiple components may be realized by one component, or one function realized by multiple components may be realized by one component. Furthermore, part of the configuration of the above-mentioned embodiments may be omitted. Furthermore, at least part of the configuration of the above-mentioned embodiments may be added to or substituted for the configuration of another of the above-mentioned embodiments.

[0055] (5f) In addition to the ECU 10 described above, the present disclosure can be realized in various forms, such as a system including the ECU 10 as a component, a program for causing a computer to function as the ECU 10, a non-transient physical recording medium such as a semiconductor memory on which this program is recorded, and an electronic control method executed by the ECU 10.

[0056] [Technical idea disclosed in this specification] [Item 1] Multiple virtual machines (40-70) and A hypervisor (30) that manages the operation of the plurality of virtual machines; A resource (20) accessed by the plurality of virtual machines; An electronic control device (10) comprising: A monitoring virtual machine (40) among the plurality of virtual machines includes a determination unit (42, S400 to S406) configured to determine whether the virtual machines (50 to 70) other than the monitoring virtual machine are normal or abnormal; The hypervisor includes an access management unit (32, S410 to S418) configured to prohibit the abnormal virtual machine from accessing the resource when the determination unit determines that at least one of the other virtual machines is abnormal. Electronic control unit.

[0057] [Item 2] The electronic control device according to item 1, The hypervisor further comprises a fail-safe unit (34, S420) configured to perform a fail-safe on the abnormal virtual machine. Electronic control unit.

[0058] [Item 3] Item 1 or 2, an electronic control device comprising: At least one of the resources is a shared memory (22) used for communication between the multiple virtual machines. Electronic control unit.

[0059] [Item 4] An electronic control device according to any one of items 1 to 3, For each of the other virtual machines, an access right to the resource when the virtual machine is normal is set for each of the resources. Electronic control unit.

[0060] [Item 5] An electronic control device according to any one of items 1 to 4, the access management unit (S416, S418) is configured to set, when the determination unit determines that the abnormal virtual machine has become normal, the access right to the resource of the virtual machine that has become normal to the access right when the virtual machine is normal; Electronic control unit. [Explanation of symbols]

[0061] 10: ECU (electronic control unit), 20: resource, 22: shared memory (resource), 24: input / output device (resource), 30: VM (hypervisor), 32: access management unit, 34: fail-safe unit, 40: VM (monitoring virtual machine), 42: judgment unit, 50 to 70: VM (virtual machines other than the monitoring virtual machine)

Claims

1. Multiple virtual machines (40 to 70); A hypervisor (30) for managing the operation of the plurality of virtual machines; A resource (20) accessed by the plurality of virtual machines; An electronic control device (10) comprising: A monitoring virtual machine (40) among the plurality of virtual machines includes a determination unit (42, S400 to S406) configured to determine whether the other virtual machines (50 to 70) other than the monitoring virtual machine are normal or abnormal; The hypervisor includes an access management unit (32, S410 to S418) configured to prohibit an abnormal virtual machine from accessing the resource when the determination unit determines that at least one of the other virtual machines is abnormal. Electronic control unit.

2. 2. The electronic control device according to claim 1, The hypervisor further comprises a fail-safe unit (34, S420) configured to perform a fail-safe on the abnormal virtual machine. Electronic control unit.

3. 2. The electronic control device according to claim 1, At least one of the resources is a shared memory (22) used for communication between the virtual machines. Electronic control unit.

4. 2. The electronic control device according to claim 1, For each of the other virtual machines, an access right to the resource when the virtual machine is normal is set for each of the resources. Electronic control unit.

5. 5. The electronic control device according to claim 4, The access management unit (S416, S418) is configured to set the access right to the resource of the virtual machine that has become normal to the access right when the virtual machine is normal, when the determination unit determines that the abnormal virtual machine has become normal. Electronic control unit.

Citation Information

Patent Citations

  • Providing / Control method for operation management information of virtual computer system and virtual computer system

    JP2002318700A

  • Electronic control unit and electronic control system

    JP2019185130A

  • Computing apparatus, method, and machine-readable storage medium for secure shared memory communication between virtual machines

    JP5989862B2

  • Sharing memory spaces for access by hardware and software in a virtual machine environment

    US20120017029A1

  • Input output memory management unit based zero copy virtual machine to virtual machine communication

    US9875132B2

Cited By

  • Electronic control unit

    JP2026139145A