Information processing device, vehicle, and information processing method
A single abnormality detection unit with a watchdog timer detects abnormalities in virtual machines and their management units, addressing cost and complexity issues in existing systems by using a single interface to monitor and reset both units.
Patent Information
- Application Number
- JP2021180654
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-11-04
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-11-04
AI Technical Summary
Existing systems require multiple hardware watchdog timers and additional hardware components to detect abnormalities in virtual machines, increasing cost and complexity.
A single abnormality detection unit with a single interface is used to monitor both virtual machines and their management unit, employing a watchdog timer that outputs a reset signal if a clock signal is not received within a predetermined time or if input data does not match, allowing detection of abnormalities in both units.
This approach enables efficient detection of abnormalities in both virtual machines and their management units using a single hardware component, reducing costs and simplifying the system.
Smart Images

Figure 0007589668000001 
Figure 0007589668000002 
Figure 0007589668000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, a vehicle, and an information processing method for detecting an abnormality. [Background technology]
[0002] Patent Document 1 describes a method of detecting a virtual machine failure by using a timeout of a watchdog timer. In detail, Patent Document 1 describes a method of detecting a virtual machine failure by using a timeout of a watchdog timer, etc., in a duplicated operation system that is composed of a plurality of general-purpose devices on which a plurality of virtual machines are installed, and a virtual machine control device that controls a duplicated operation of the virtual machines by two systems, an active system and a standby system. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-135101 A Summary of the Invention [Problem to be solved by the invention]
[0004] When a watchdog timer for detecting anomalies in a virtual machine is provided as software, a hardware watchdog timer or the like is required to detect anomalies in the software watchdog timer (software WDT). In this case, as shown in Fig. 6, multiple hardware WDTs 52 including a hardware watchdog timer (WDT) for monitoring a hypervisor 50 that generates and executes virtual machines (VMs), or a hardware WDT with multiple interfaces, are required as an anomaly detection unit. In addition, a timer 54 for supplying clocks to each of the hypervisor 50 and the software WDT 56 is also required in correspondence with the anomaly detection unit, which affects costs.
[0005] The present invention has been made in consideration of the above-mentioned facts, and aims to provide an information processing device, a vehicle, and an information processing method that are capable of detecting abnormalities in both a virtual machine and a virtual machine management unit using a single abnormality detection unit having a single interface. [Means for solving the problem]
[0006] In order to achieve the above object, an information processing device according to claim 1 generates and executes a plurality of virtual machines, and provides an anomaly detection function for the plurality of virtual machines. Software Virtual Machine Management Department, and, Provides a clock signal to both of the above abnormality detection functions Hardware A supply unit and a supply unit for detecting an abnormality in the virtual machine management unit by monitoring the supply of the clock signal from the supply unit. Hardware An abnormality detection unit, the abnormality detection unit is a watchdog timer in a timeout mode that outputs a reset signal when the clock signal is not input from the virtual machine management unit within a predetermined time, or a watchdog timer in a Q&A mode that outputs a reset signal when a predetermined signal is not input from the virtual machine management unit. .
[0007] According to the invention recited in claim 1, the virtual machine management unit generates and runs a plurality of virtual machines and provides an anomaly detection function for the plurality of virtual machines, and the supply unit supplies a clock signal to both the virtual machine management unit and the anomaly detection function, thereby driving both the virtual machine management unit and the anomaly detection function.
[0008] The abnormality detection unit detects an abnormality in the virtual machine management unit by monitoring the supply of the clock signal from the supply unit. As a result, since the virtual machine abnormality detection function and the supply of the clock signal to the virtual machine management unit are performed by the same supply unit, if a clock signal is no longer supplied to the virtual machine abnormality detection function due to a failure, the clock is not being supplied to the virtual machine management unit either, and therefore the abnormality detection unit monitoring the virtual machine management unit itself can also detect an abnormality in the virtual machine abnormality detection function, so that a single abnormality detection unit with a single interface can detect abnormalities in both the virtual machines and the virtual machine management unit.
[0009] The anomaly detection unit may be a watchdog timer in a timeout mode that outputs a reset signal if the clock signal is not input from the virtual machine management unit within a predetermined time, a watchdog timer in a window mode that outputs a reset signal if the clock signal is not input from the virtual machine management unit within a predetermined time or if multiple clock signals are input, or a watchdog timer in a Q&A mode that outputs a reset signal if a predetermined signal is not input from the virtual machine management unit. This makes it possible to detect anomalies in both the virtual machine management unit and the anomaly detection function of the virtual machine.
[0010] The present invention also provides a function for generating and executing a plurality of virtual machines, and for detecting anomalies in the plurality of virtual machines. Software Virtual Machine Management Department, and, Provides a clock signal to both of the above abnormality detection functions Hardware A supply unit and a supply unit for detecting an abnormality in the virtual machine management unit by monitoring the supply of the clock signal from the supply unit. Hardware An abnormality detection unit, the abnormality detection unit is a watchdog timer in a timeout mode that outputs a reset signal when the clock signal is not input from the virtual machine management unit within a predetermined time, or a watchdog timer in a Q&A mode that outputs a reset signal when a predetermined signal is not input from the virtual machine management unit. The information processing device may be mounted on a vehicle.
[0011] The present invention also provides a function for generating and executing a plurality of virtual machines, and for detecting anomalies in the plurality of virtual machines. Software Virtual Machine Management Department , and the abnormality detection function Clock signal Hardware Supply from the supply section, a hardware anomaly detection unit which is a watchdog timer in a timeout mode that outputs a reset signal when the clock signal is not input from the virtual machine management unit within a predetermined time, or a watchdog timer in a Q&A mode that outputs a reset signal when a predetermined signal is not input from the virtual machine management unit, By monitoring the supply of the clock signal from the supply unit, an abnormality in the virtual machine management unit is detected. Check The information processing method may also be such that Effect of the Invention
[0012] As described above, according to the present invention, it is possible to provide an information processing device, a vehicle, and an information processing method that are capable of detecting abnormalities in both a virtual machine and a virtual machine manager using a single abnormality detection unit having a single interface. [Brief description of the drawings]
[0013] [Figure 1] 1 is a diagram showing a vehicle equipped with a central ECU according to an embodiment of the present invention. [Diagram 2] 2 is a block diagram showing a schematic configuration of a central ECU according to the present embodiment. FIG. [Diagram 3] FIG. 13 is a diagram for explaining a timeout mode. [Figure 4] FIG. 13 is a diagram for explaining a window mode. [Diagram 5] 11 is a flowchart showing an example of a flow of processing performed in the WDT. [Figure 6] FIG. 13 is a diagram showing an example in which multiple hardware WDTs, including a hardware WDT that monitors a hypervisor, are installed to detect an abnormality in the software WDT. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] An example of an embodiment of the present invention will be described in detail below with reference to the drawings. In this embodiment, a central ECU mounted on a vehicle will be described as an example of an information processing device. In this embodiment, Fig. 1 is a diagram showing a vehicle mounted with a central ECU (Electronic Control Unit) according to this embodiment, and Fig. 2 is a block diagram showing a schematic configuration of the central ECU according to this embodiment.
[0015] The central ECU 12 according to this embodiment is mounted on the vehicle 10 and controls various ECUs provided in the vehicle 10 in an integrated manner.
[0016] The central ECU 12 has, as hardware, a computer configuration 14 including a central processing unit (CPU) 14A, a read only memory (ROM) 14B, and a random access memory (RAM) 14C.
[0017] In this embodiment, a physical CPU 14A is virtualized by a Hypervisor 16 serving as a virtual machine management unit, which is software for virtualizing a computer, and a VM (Virtual Machine) 18 is generated as a virtual machine, and execution of the VM 18 is controlled. In this embodiment, a plurality of VMs 18 are generated by the Hypervisor 16. FIG. 2 shows an example in which three VMs 18, VM0 to VM2, are generated as the plurality of VMs 18.
[0018] The Hypervisor 16 also includes a software WDT 24 that provides a watchdog timer (WDT) as a software function for detecting anomalies. The software WDT 24 monitors each VM 18 generated by the Hypervisor 16 and detects anomalies in each VM 18.
[0019] The central ECU 12 also includes, as hardware, a timer 22 as an example of a supply unit and a WDT 20 as an example of an abnormality detection unit.
[0020] The timer 22 supplies a clock signal to the Hypervisor 16, and also supplies a clock signal to the software WDT 24. That is, the timer 22 supplies clock signals that drive the Hypervisor 16 and the software WDT 24, respectively.
[0021] The WDT 20 detects an abnormality such as runaway or stoppage of the computer configuration 14 by monitoring a clock signal supplied from the timer 22 to the hypervisor 16 .
[0022] Here, an abnormality detection method using the software WDT 24 implemented in the hypervisor 16 and the WDT 20 implemented as hardware will be described.
[0023] As an abnormality detection method for the software WDT 24 and the WDT 20, one of a timeout mode, a window mode, and a Q&A mode is applied.
[0024] FIG. 3 is a diagram for explaining the timeout mode, and FIG. 4 is a diagram for explaining the window mode.
[0025] In the timeout mode, the software WDT 24 monitors signals such as a clock signal supplied to each VM 18 , and the WDT 20 monitors signals such as a clock signal supplied from the timer 22 .
[0026] 3, if the software WDT 24 and WDT 20 detect the occurrence of a signal within a predetermined timeout period after the detection of the occurrence of the signal, they are determined to be normal.On the other hand, if the software WDT 24 and WDT 20 do not detect the occurrence of a signal within the timeout period after the detection of the occurrence of the signal, they are determined to be abnormal and a reset signal is output.
[0027] Even in the window mode, the software WDT 24 monitors signals such as the clock signal supplied to each VM 18 , and the WDT 20 monitors signals such as the clock signal supplied from the timer 22 .
[0028] 4, if the software WDT 24 and WDT 20 detect the occurrence of a signal within a predetermined timeout time after detecting the occurrence of the signal, they determine that the operation is normal, as in the timeout mode. On the other hand, if the occurrence of a signal is not detected within the timeout time after the detection of the occurrence of the signal, they determine that an abnormality has occurred and output a reset signal. Furthermore, in the window mode, if the occurrence of a signal is continuously detected within a predetermined detection time after the detection of the occurrence of the signal, they also determine that an abnormality has occurred and output a reset signal.
[0029] Here, a brief description will be given of specific processing performed by the software WDT 24 and the WDT 20 when the timeout mode or the window mode is applied. The processing of the WDT 20 will be described below as a representative example. Figure 5 is a flowchart showing an example of the flow of processing performed by the WDT 20.
[0030] In step 100, the WDT 20 monitors the timer signal and proceeds to step 102. That is, the WDT 20 monitors the signals supplied from the timer 22 to the hypervisor 16 and the software WDT 24, respectively.
[0031] In step 102, the WDT 20 judges whether an abnormality has been detected. That is, in the timeout mode, it judges whether the signal has not been detected within a predetermined timeout time after the generation of the signal is detected. In the window mode, it judges whether the signal has been detected within a predetermined detection time after the generation of the signal is detected, or whether the signal has not been detected within the timeout time. If the judgment is negative, the process returns to step 100 and the above-mentioned process is repeated. On the other hand, if the judgment is positive, the process proceeds to step 104.
[0032] In step 104, the WDT 20 outputs a reset signal to the computer arrangement 14, thereby resetting the computer arrangement 14 and ending the series of processes.
[0033] On the other hand, in the Q&A mode, predetermined data is input to the software WDT 24 and WDT 20 .
[0034] The software WDT24 and WDT20 then determine whether the input data matches predetermined data, and if it does match, it is determined to be normal, and if it does not match, it is determined to be abnormal and outputs a reset signal.
[0035] Specifically, when the Q&A mode is applied to the software WDT 24, each VM 18 is configured to input predetermined data such as "01000010" to the software WDT 24 as the predetermined data. Then, when the data input from each VM 18 to the software WDT 24 is "01000010", the software WDT 24 judges it to be normal. On the other hand, when different data such as "01000011" is input, the software WDT 24 judges it to be abnormal. Then, a reset signal is output to the VM 18 to reset the VM 18.
[0036] On the other hand, when the Q&A mode is applied to the WDT 20, the Hypervisor 16 is configured to input predetermined data such as "01000010" to the WDT 20 as the predetermined data. Then, when the data input from the Hypervisor 16 to the WDT 20 is "01000010", the WDT 20 judges it to be normal. On the other hand, when different data such as "01000011" is input, the WDT 20 judges it to be abnormal. Then, a reset signal is output to the Hypervisor 16 to reset the Hypervisor 16.
[0037] Next, the operation of the central ECU 12 according to the present embodiment configured as described above will be described.
[0038] In the central ECU 12 according to this embodiment, a plurality of VMs 18 are generated by the hypervisor 16, and the operation of each VM 18 is monitored by the software WDT 24.
[0039] If an abnormality occurs in any of the VMs 18, it is detected by the software WDT 24, and the VM 18 in which the abnormality occurred is reset. This makes it possible to detect runaway or stoppage of the VM 18 and restart it.
[0040] Furthermore, the hardware WDT 20 monitors the clock signal supplied from the timer 22 to the Hypervisor 16. If an abnormality occurs in the Hypervisor 16, it is detected by the WDT 20 and the Hypervisor 16 is reset. This makes it possible to detect runaway or stoppage of the Hypervisor 16 and restart it.
[0041] In this embodiment, the clock is supplied to both the software WDT 24 and the Hypervisor 16 by the same timer 22. If a fault occurs and the clock is no longer supplied to the software WDT 24, the clock is also no longer supplied to the Hypervisor 16. This means that an abnormality in the software WDT 24 can be detected by the hardware WDT 20 that monitors the Hypervisor 16 itself. Therefore, an abnormality in both the VM 18 and the Hypervisor 16 can be detected by the single hardware WDT 20 with a single interface.
[0042] In the above embodiment, the software WDT 24 is provided in the hypervisor 16, but the present invention is not limited to this. For example, the software WDT 24 may be provided for each VM 18.
[0043] Furthermore, the present invention is not limited to the above, and it goes without saying that various modifications can be made without departing from the spirit and scope of the present invention. [Explanation of symbols]
[0044] 10 Vehicles 12 Central ECU (information processing unit) 14 Computer Configuration 16 Hypervisor (Virtual Machine Management Unit) 18 VMs (Virtual Machines) 20 WDT (Abnormality Detection Unit) 22 Timer (supply section) 24 Software WDT (Abnormality Detection Function)
Claims
1. a virtual machine management unit which is software for generating and executing a plurality of virtual machines and providing an anomaly detection function for the plurality of virtual machines, and a supply unit which is hardware for supplying a clock signal to both the anomaly detection function and the virtual machine management unit; a hardware abnormality detection unit that detects an abnormality of the virtual machine management unit by monitoring the supply of the clock signal from the supply unit; Including, The information processing device, wherein the abnormality detection unit is a watchdog timer in a timeout mode that outputs a reset signal if the clock signal is not input from the virtual machine management unit within a predetermined time, or a watchdog timer in a Q&A mode that outputs a reset signal if a predetermined signal is not input from the virtual machine management unit.
2. A system comprising: a virtual machine management unit which is software for generating and executing a plurality of virtual machines and for providing an anomaly detection function for the plurality of virtual machines; and a supply unit which is hardware for supplying a clock signal to both of the anomaly detection functions; a hardware abnormality detection unit that detects an abnormality of the virtual machine management unit by monitoring the supply of the clock signal from the supply unit; Including, A vehicle equipped with an information processing device, wherein the abnormality detection unit is a watchdog timer in a timeout mode that outputs a reset signal if the clock signal is not input from the virtual machine management unit within a predetermined time, or a watchdog timer in a Q&A mode that outputs a reset signal if a predetermined signal is not input from the virtual machine management unit.
3. A method for providing a virtual machine management unit of software for generating and executing a plurality of virtual machines and providing an anomaly detection function for the plurality of virtual machines, the method comprising: supplying a clock signal from a supply unit of hardware to both the anomaly detection function and a virtual machine management unit of software for generating and executing a plurality of virtual machines; An information processing method in which a hardware anomaly detection unit, which is a watchdog timer in a timeout mode that outputs a reset signal if the clock signal is not input from the virtual machine management unit within a predetermined time, or a watchdog timer in a Q&A mode that outputs a reset signal if a predetermined signal is not input from the virtual machine management unit, detects an abnormality in the virtual machine management unit by monitoring the supply of the clock signal from the supply unit.
Citation Information
Patent Citations
Virtual computer supervising and controlling system
JP1987154037A
Control device, and control method for control device
JP2017228159A
Fault monitoring restoration device and fault monitoring restoration method
JP2018041211A
Monitoring program, monitoring apparatus and monitoring method
JP2019144785A
Electronic control unit and electronic control system
JP2019185130A
