Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7754769B2 - Management device, management program, and electronic control device - Google Patents
[go: Go Back, main page]

JP7754769B2 - Management device, management program, and electronic control device - Google Patents

Management device, management program, and electronic control device

Info

Publication number
JP7754769B2
JP7754769B2 JP2022068277A JP2022068277A JP7754769B2 JP 7754769 B2 JP7754769 B2 JP 7754769B2 JP 2022068277 A JP2022068277 A JP 2022068277A JP 2022068277 A JP2022068277 A JP 2022068277A JP 7754769 B2 JP7754769 B2 JP 7754769B2
Authority
JP
Japan
Prior art keywords
state
computer
power
management table
virtual machines
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2022068277A
Other languages
Japanese (ja)
Other versions
JP2023158435A (en
Inventor
聡樹 ▲高▼橋
大井 学
裕和 坂本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ESOL CO.,LTD.
Denso Corp
Original Assignee
ESOL CO.,LTD.
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ESOL CO.,LTD., Denso Corp filed Critical ESOL CO.,LTD.
Priority to JP2022068277A priority Critical patent/JP7754769B2/en
Publication of JP2023158435A publication Critical patent/JP2023158435A/en
Application granted granted Critical
Publication of JP7754769B2 publication Critical patent/JP7754769B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Description

本発明は、複数の仮想マシンを動作させるコンピュータの状態遷移を管理する管理装置、管理装置に実行させる管理プログラムおよび管理装置を備えた電子制御装置に関する。 The present invention relates to a management device that manages the state transitions of a computer running multiple virtual machines, a management program executed by the management device, and an electronic control device equipped with the management device.

特許文献1には、複数のゲストオペレーティングシステム機能を個別に省電力状態に遷移させる技術が開示されている。なお、本明細書では、オペレーティングシステムのことをOSと省略することがある。また、以下では、特許文献1に開示される技術のことを従来技術と称することとする。従来技術では、それぞれ個別のOSに省電力状態への遷移条件を設定しておき、その遷移条件を満たしたOSを省電力状態へ遷移させる。そして、従来技術では、全てのOSが省電力状態に遷移した場合には、ハイパーバイザを省電力状態に遷移させるとともにハードウェア資源を停止させるようになっている。 Patent Document 1 discloses a technology for individually transitioning the functions of multiple guest operating systems to a power-saving state. Note that in this specification, operating system is sometimes abbreviated as OS. In the following, the technology disclosed in Patent Document 1 will be referred to as the "conventional technology." In this conventional technology, conditions for transitioning to a power-saving state are set for each individual OS, and an OS that meets these conditions is transitioned to a power-saving state. In this conventional technology, when all OSes have transitioned to a power-saving state, the hypervisor is transitioned to a power-saving state and hardware resources are stopped.

特開2012-178006号公報JP 2012-178006 A

従来技術では、全てのゲストOSが遷移条件を満たした場合にしかハードウェア資源を停止することができない。そのため、複数のゲストOSとして省電力状態に遷移する遷移タイミングに比較的大きな時間差が生じるような機能が搭載される場合、全てのゲストOSが遷移条件を満たすまでに比較的長い時間を要することになり、十分な省電力効果が得られなくなるおそれがある。例えば、ゲストOSの機能として、車両に搭載される電子制御装置の機能が搭載される場合、その遷移条件には車両電源の状態が含まれるケースが想定される。なお、本明細書では、電子制御装置のことをECUと省略することがある。 In conventional technology, hardware resources can only be stopped when all guest OSs satisfy the transition conditions. Therefore, if multiple guest OSs are equipped with functions that result in a relatively large time difference in the timing of their transition to a power-saving state, it may take a relatively long time for all guest OSs to satisfy the transition conditions, which could result in insufficient power-saving effects. For example, if a guest OS is equipped with the functions of an electronic control unit installed in a vehicle, the transition conditions may include the state of the vehicle's power supply. Note that in this specification, the electronic control unit may sometimes be abbreviated as ECU.

車両電源には、バッテリーが接続されたバッテリー接続中にオン状態になる電源である+B電源と、エンジンが起動されたエンジン起動中にオン状態になるイグニッション電源とが存在する。なお、本明細書では、イグニッションのことをIGと省略することがある。ハイパーバイザ上のゲストOSとして+B電源の状態が遷移条件に含まれるECU機能と、IG電源の状態が遷移条件に含まれるECU機能とが搭載された場合、エンジンが停止されてIG電源の状態が遷移条件に含まれるゲストOSを省電力状態に遷移させることが可能になったとしても、+B電源の状態が遷移条件に含まれるゲストOSの遷移条件が満たされない限りハードウェア資源を停止することができず、その結果、大きな省電力効果を得ることができなくなる。このような問題は、ゲストOS毎の遷移タイミングの時間差が大きいほど一層顕著なものとなる。 Vehicle power sources include the +B power source, which is on when the battery is connected, and the ignition power source, which is on when the engine is running. Note that in this specification, ignition is sometimes abbreviated as IG. If a guest OS on a hypervisor is equipped with an ECU function whose transition condition is the +B power source state and an ECU function whose transition condition is the IG power source state, even if the engine is stopped and the guest OS whose transition condition is the IG power source state can transition to a power-saving state, hardware resources cannot be shut down unless the transition condition of the guest OS whose transition condition is the +B power source state is met. As a result, significant power-saving effects cannot be achieved. This problem becomes more pronounced the greater the time difference between the transition timings of each guest OS.

本発明は上記事情に鑑みてなされたものであり、その目的は、省電力の効果を高めることができる管理装置、管理プログラムおよび電子制御装置を提供することにある。 The present invention was made in consideration of the above circumstances, and its purpose is to provide a management device, management program, and electronic control device that can enhance power saving effects.

請求項1に記載の管理装置は、複数の仮想マシン(11~14)を動作させるコンピュータ(3)の状態遷移を管理する。複数の仮想マシンのそれぞれは、予め定められたスリープ条件が満たされることにより、所定の動作を行うウェイクアップ状態から動作を停止するスリープ状態へと遷移するようになっている。コンピュータは、通常の動作を行う通常状態と、通常状態よりも電力消費量が少ない複数の省電力状態と、のうちいずれかに遷移可能である。 The management device described in claim 1 manages state transitions of a computer (3) running multiple virtual machines (11-14). Each of the multiple virtual machines transitions from a wake-up state, in which it performs a specified operation, to a sleep state, in which it stops operating, when predetermined sleep conditions are met. The computer can transition between a normal state, in which it performs normal operation, and multiple power-saving states that consume less power than the normal state.

管理装置は、複数の仮想マシンのそれぞれについての状態に関する情報を表す状態管理テーブルと、複数の仮想マシンのそれぞれがアクセスするコンピュータが備えるハードウェア(4~8)に関する情報を表すアクセス管理テーブルと、複数の省電力状態のそれぞれにコンピュータを遷移させるための条件である遷移条件に関する情報を表す遷移条件テーブルと、を備える。管理装置は、状態管理テーブル、アクセス管理テーブルおよび遷移条件テーブルを参照し、複数の省電力状態のうち、その時点で遷移可能であり且つ最も電力消費量が少ない状態にコンピュータを遷移させるようになっている。 The management device includes a state management table that displays information about the state of each of the multiple virtual machines, an access management table that displays information about the hardware (4-8) of the computer accessed by each of the multiple virtual machines, and a transition condition table that displays information about the transition conditions for transitioning the computer to each of the multiple power-saving states. The management device references the state management table, access management table, and transition condition table, and transitions the computer to one of the multiple power-saving states that is currently available and consumes the least amount of power.

このような構成によれば、複数の仮想マシンのいずれかがスリープ状態へと遷移可能になる度に、その時点で遷移可能な省電力状態のうち最も電力消費量が少ない状態にコンピュータの状態が遷移されることになる。すなわち、上記構成によれば、コンピュータの状態をより電力消費量が少なくなるように段階的に遷移させること、つまり多段階の省電力遷移を実現することができる。そのため、上記構成によれば、全ての仮想マシンがスリープ状態に遷移していなくとも、可能な範囲でコンピュータの省電力効果を得ることが可能となる。したがって、上記構成によれば、従来技術に比べ、省電力の効果を十分に高めることができる。 With this configuration, each time one of the multiple virtual machines is able to transition to a sleep state, the computer's state transitions to the power-saving state with the lowest power consumption among the states available at that time. In other words, with this configuration, the computer's state can be transitioned in stages to further reduce power consumption, i.e., multi-stage power-saving transitions can be realized. Therefore, with this configuration, it is possible to achieve the maximum possible power-saving effect for the computer even if all virtual machines have not transitioned to a sleep state. Therefore, with this configuration, the power-saving effect can be significantly improved compared to conventional technology.

一実施形態に係る統合ECUの構成を模式的に示す図FIG. 2 is a diagram illustrating a configuration of an integrated ECU according to an embodiment. 一実施形態に係る状態管理テーブルの一例を模式的に示す図FIG. 1 is a diagram schematically illustrating an example of a status management table according to an embodiment; 一実施形態に係るアクセス管理テーブルの一例を模式的に示す図FIG. 1 is a diagram illustrating an example of an access management table according to an embodiment. 一実施形態に係る遷移条件テーブルの一例を模式的に示す図FIG. 1 is a diagram schematically illustrating an example of a transition condition table according to an embodiment. 一実施形態に係る判定処理の内容を模式的に示す図FIG. 10 is a diagram schematically illustrating the contents of a determination process according to an embodiment.

以下、管理装置、管理プログラムおよび電子制御装置の実施形態について図面を参照して説明する。
図1に示すように、本実施形態の統合ECU1は、例えば自動車などの車両に搭載されるものであり、従来単独で動作していた複数のECUの機能がハイパーバイザー2を介して1つのマイクロコンピュータ3のチップ上に搭載されたものである。この場合、複数のECUの機能は、仮想マシンという単位で搭載される。なお、本明細書では、マイクロコンピュータのことをマイコンと省略することがあり、ハイパーバイザーのことをHVと省略することがあり、仮想マシンのことをVMと省略することがある。
Hereinafter, embodiments of a management device, a management program, and an electronic control device will be described with reference to the drawings.
As shown in Figure 1, the integrated ECU 1 of this embodiment is mounted on a vehicle such as an automobile, and the functions of multiple ECUs, which conventionally operated independently, are mounted on the chip of a single microcomputer 3 via a hypervisor 2. In this case, the functions of the multiple ECUs are mounted in units called virtual machines. Note that in this specification, the microcomputer may be abbreviated as "micon," the hypervisor may be abbreviated as "HV," and the virtual machine may be abbreviated as "VM."

本実施形態では、統合ECU1が備える複数のECUの機能として、エンジンECU、エアコンECU、セントラルゲートウェイECUおよびボデーECUという4つのECUの機能を例示しているが、統合ECU1は、2つまたは3つのECUの機能を備えていてもよいし、5つ以上のECUの機能を備えていてもよい。なお、本明細書では、セントラルゲートウェイのことをCGWと省略することがある。この場合、エンジンECUはVM11により実現され、エアコンECUはVM12により実現され、CGWECUはVM13により実現され、ボデーECUはVM14により実現される。 In this embodiment, the functions of four ECUs, namely, the engine ECU, air conditioning ECU, central gateway ECU, and body ECU, are exemplified as the functions of the multiple ECUs provided in the integrated ECU 1. However, the integrated ECU 1 may have the functions of two or three ECUs, or may have the functions of five or more ECUs. Note that in this specification, the central gateway is sometimes abbreviated as CGW. In this case, the engine ECU is realized by VM11, the air conditioning ECU is realized by VM12, the CGW ECU is realized by VM13, and the body ECU is realized by VM14.

VM11~14には、それぞれを識別するための識別情報であるVMIDが付与されている。本実施形態では、VM11には「VMID=1」が付与され、VM12には「VMID=2」が付与され、VM13には「VMID=3」が付与され、VM14には「VMID=4」が付与されている。マイコン3は、コンピュータの一例であり、そのハードウェアとして2つのCPU4、5および各種のペリフェラルを備えている。なお、マイコン3は、1つのCPUを備える構成でもよいし、3つ以上のCPUを備える構成でもよい。また、本明細書では、ハードウェアのことをHWと省略することがある。 VMs 11 to 14 are assigned a VMID, which is identification information for identifying each of them. In this embodiment, VM 11 is assigned "VMID=1", VM 12 is assigned "VMID=2", VM 13 is assigned "VMID=3", and VM 14 is assigned "VMID=4". Microcomputer 3 is an example of a computer, and its hardware includes two CPUs 4 and 5 and various peripherals. Note that microcomputer 3 may be configured with one CPU or three or more CPUs. Note that in this specification, hardware may be abbreviated as HW.

各種のペリフェラルには、CAN通信を行うためのCAN通信インターフェース6、Ethernet通信を行うためのEthernet通信I/F7、タイマー8などが含まれる。なお、CANは、Controller Area Networkの略称であり、登録商標である。また、Ethernetは、登録商標である。なお、本明細書では、インターフェースのことをI/Fと省略することがある。マイコン3が備える各HWには、それぞれを識別するための識別情報であるHWIDが付与されている。本実施形態では、CPU4には「HWID=1」が付与され、CPU5には「HWID=2」が付与され、CAN通信I/F6には「HWID=3」が付与され、Ethernet通信I/F7には「HWID=4」が付与され、タイマー8には「HWID=5」が付与されている。 The various peripherals include a CAN communication interface 6 for CAN communication, an Ethernet communication I/F 7 for Ethernet communication, a timer 8, and the like. CAN is an abbreviation for Controller Area Network and is a registered trademark. Ethernet is also a registered trademark. In this specification, interface is sometimes abbreviated as I/F. Each piece of HW provided in the microcomputer 3 is assigned an HWID, which is identification information for identifying it. In this embodiment, CPU 4 is assigned "HWID=1", CPU 5 is assigned "HWID=2", CAN communication I/F 6 is assigned "HWID=3", Ethernet communication I/F 7 is assigned "HWID=4", and timer 8 is assigned "HWID=5".

マイコン3は、所定の入力端子からの応答の有無などに基づいて、車両に搭載される電源である車両電源の状態を把握することができる。車両電源には、バッテリー接続中にオン状態になる+B電源9およびエンジン起動中にオン状態になるIG電源10が含まれる。また、マイコン3は、CAN通信I/F6およびEthernet通信I/F7を介したCANおよびEthernetの通信の状態、具体的には通信の有無を把握することができる。具体的には、マイコン3は、例えば通信の応答が所定期間無い場合に通信無しと判断することができる。 The microcomputer 3 can determine the status of the vehicle power supply, which is a power source installed in the vehicle, based on the presence or absence of a response from a specified input terminal. The vehicle power supply includes the +B power supply 9, which is turned on when the battery is connected, and the IG power supply 10, which is turned on when the engine is running. The microcomputer 3 can also determine the status of CAN and Ethernet communications via the CAN communication I/F 6 and Ethernet communication I/F 7, specifically the presence or absence of communication. Specifically, the microcomputer 3 can determine that there is no communication if, for example, there is no response to communication for a specified period of time.

HV2は、マイコン3上でVM11~14を動作させるためのものであるとともに、マイコン3の状態遷移を遷移する管理装置として機能する。また、この場合、統合ECU1は、マイコン3と、マイコン3上で動作するVM11~14と、管理装置として機能するHV2と、を備えた電子制御装置の一例である。HV2およびVM11~14は、いずれもマイコン3が備えるCPUが非遷移的実体的記憶媒体に格納されているコンピュータプログラムを実行してコンピュータプログラムに対応する処理を実行することにより実現されている、つまりソフトウェアにより実現されている。なお、上記したコンピュータプログラムのうちHV2が実行するプログラムは、管理プログラムに相当する。 HV2 operates VMs 11-14 on microcomputer 3 and functions as a management device that controls the state transitions of microcomputer 3. In this case, integrated ECU 1 is an example of an electronic control device that includes microcomputer 3, VMs 11-14 that operate on microcomputer 3, and HV2 that functions as a management device. HV2 and VMs 11-14 are both realized by the CPU of microcomputer 3 executing computer programs stored on non-transient physical storage media and performing processes corresponding to the computer programs; in other words, they are realized by software. Of the computer programs mentioned above, the program executed by HV2 corresponds to the management program.

VM11~14のそれぞれは、予め定められたスリープ条件が満たされることにより、所定の動作を行うウェイクアップ状態から、その所定の動作を停止するスリープ状態へと遷移するようになっている。所定の動作とは、VM11~14のそれぞれに対応するECUの機能を実現するための各種の動作に相当するものであり、例えばVM11の場合にはエンジンを制御するための動作であり、VM12の場合にはエアコンを制御するための動作である。 When predetermined sleep conditions are met, each of VMs 11-14 transitions from a wake-up state, in which a predetermined operation is performed, to a sleep state, in which the predetermined operation is stopped. The predetermined operation corresponds to various operations for realizing the functions of the ECU corresponding to each of VMs 11-14. For example, in the case of VM 11, it is an operation for controlling the engine, and in the case of VM 12, it is an operation for controlling the air conditioner.

スリープ条件としては、例えば車両電源の状態、CANおよびEthernetの通信の状態などを条件とすることができる。本実施形態では、VM11およびVM12のスリープ条件にはIG電源10の状態が含まれているとともに、VM13およびVM14のスリープ条件には+B電源9の状態が含まれている。VM11~VM14のそれぞれは、スリープ条件が満たされたとき、HV2に対して状態遷移要求を送信する。状態遷移要求には、要求の送信元を識別するために送信したVMのVMIDが含まれている。HV2は、状態遷移要求を受信すると、後述する判定処理を実行するようになっている。 Sleep conditions can include, for example, the state of the vehicle power supply and the state of CAN and Ethernet communications. In this embodiment, the sleep conditions for VM11 and VM12 include the state of the IG power supply 10, and the sleep conditions for VM13 and VM14 include the state of the +B power supply 9. When the sleep conditions are met, each of VM11 to VM14 sends a state transition request to HV2. The state transition request includes the VMID of the VM that sent it to identify the sender of the request. When HV2 receives a state transition request, it executes the determination process described below.

マイコン3は、通常の動作を行う通常状態と、その通常状態よりも電力消費量が少ない複数の省電力状態と、のうちいずれかに遷移可能である。複数の省電力状態には、「HALT」、「STOP」、「PERIPHERALSTOP」および「DEEPSTOP」が含まれる。これらの省電力度合い、つまりマイコン3の電力消費量を低減する度合いは、後述する図4に示すようなものとなる。すなわち、これらの省電力度合いは、「HALT」が最も小さくなるとともに「DEEPSTOP」が最も大きくなっている。そして、「STOP」および「PERIPHERALSTOP」の省電力度合いは、それらの中間の値となっている。 The microcomputer 3 can transition between a normal state in which it operates normally and multiple power-saving states that consume less power than the normal state. The multiple power-saving states include "HALT," "STOP," "PERIPHERALSTOP," and "DEEPSTOP." The degree of power saving, that is, the degree to which the power consumption of the microcomputer 3 is reduced, is as shown in Figure 4, which will be described later. That is, "HALT" has the smallest power saving degree and "DEEPSTOP" has the largest power saving degree. The power saving degrees of "STOP" and "PERIPHERALSTOP" are intermediate between these two.

HV2は、状態管理テーブル、アクセス管理テーブルおよび遷移条件テーブルを備えている。なお、これら各テーブルは、HV2が読み書き可能とされていればよく、マイコン3が備える各種の記憶装置に記憶されていてもよいし、マイコン3の外部に設けられた各種の記憶装置に記憶されていてもよい。状態管理テーブルは、複数のVM11~14のそれぞれについての状態に関する情報を表すテーブルであり、例えば図2に示すような内容のものとなっている。 HV2 has a state management table, an access management table, and a transition condition table. Each of these tables only needs to be readable and writable by HV2, and may be stored in various storage devices provided in the microcomputer 3, or in various storage devices provided external to the microcomputer 3. The state management table is a table that shows information about the state of each of the multiple VMs 11-14, and has the contents shown in Figure 2, for example.

すなわち、状態管理テーブルは、VMIDとVMの状態とが紐付けられたものとなっている。VMの状態としては、前述したウェイクアップ状態およびスリープ状態が含まれている。なお、図2では、ウェイクアップ状態およびスリープ状態のことを、それぞれウェイクアップおよびスリープと省略している。VMIDは、HV2上に搭載されるVMの数と同じ数だけ存在する。 In other words, the state management table associates VMIDs with VM states. VM states include the wakeup state and sleep state mentioned above. Note that in Figure 2, the wakeup state and sleep state are abbreviated as wakeup and sleep, respectively. There are as many VMIDs as there are VMs installed on the HV2.

図2に示す状態管理テーブルによれば、VMID=1が付与されたVM11およびVMID=2が付与されたVM12がスリープ状態であるとともに、VMID=3が付与されたVM13およびVMID=4が付与されたVM14がウェイクアップ状態であるということが分かる。状態管理テーブルは、複数のVM11~14のうち少なくとも1つについてスリープ条件が満たされると更新されるようになっている。具体的には、状態管理テーブルは、VM11~14のいずれかから状態遷移要求が送信されると、その状態遷移要求を送信したVMに対応するVMIDに紐付けられたVMの状態がスリープ状態となるように更新されるようになっている。 The state management table shown in FIG. 2 indicates that VM11, assigned VMID=1, and VM12, assigned VMID=2, are in a sleep state, while VM13, assigned VMID=3, and VM14, assigned VMID=4, are in a wake-up state. The state management table is updated when the sleep condition is met for at least one of the multiple VMs 11-14. Specifically, when a state transition request is sent from one of VMs 11-14, the state management table is updated so that the state of the VM associated with the VMID corresponding to the VM that sent the state transition request becomes a sleep state.

アクセス管理テーブルは、複数のVM11~14のそれぞれがアクセスするマイコン3が備えるHWに関する情報を表すテーブルであり、例えば図3に示すような内容のものとなっている。すなわち、アクセス管理テーブルは、CPUおよびペリフェラルに関する情報と、それらにアクセスする複数のVM11~14のVMIDと、が紐付けられたものとなっている。 The access management table is a table that shows information about the hardware of the microcomputer 3 that is accessed by each of the multiple VMs 11-14, and has the contents shown in Figure 3, for example. In other words, the access management table links information about the CPU and peripherals with the VMIDs of the multiple VMs 11-14 that access them.

具体的には、アクセス管理テーブルには、マイコン3のHWに関する情報、アクセスVMおよびアクセス状態といった要素が存在する。マイコン3のHWに関する情報には、HWIDおよびハードウェア種別が含まれる。ハードウェア種別では、「CPU」および「ペリフェラル」という大きな分類がなされたうえで、各HWに固有の名称により各HWが識別されている。図3において、「CPU[1]」はCPU4を表し、「CPU[2]」はCPU5を表し、「CAN」はCAN通信I/F6を表し、「Ethernet」はEthernet通信I/F7を表し、「タイマー」はタイマー8を表している。 Specifically, the access management table contains elements such as information about the HW of the microcomputer 3, the access VM, and the access status. Information about the HW of the microcomputer 3 includes the HWID and hardware type. The hardware type is broadly categorized into "CPU" and "peripheral," and each HW is identified by its own unique name. In Figure 3, "CPU[1]" represents CPU 4, "CPU[2]" represents CPU 5, "CAN" represents CAN communication I/F 6, "Ethernet" represents Ethernet communication I/F 7, and "timer" represents timer 8.

アクセスVMには、対応するHWにアクセスするVMのVMIDが入力されている。この場合、CPU4にはVM11、12がアクセスするようになっているため、「HWID=1」に対応するアクセスVMの項目には「1、2」が入力されており、CPU5にはVM13、14がアクセスするようになっているため、「HWID=2」に対応するアクセスVMの項目には「3、4」が入力されている。 The VMID of the VM that accesses the corresponding HW is entered in the Access VM field. In this case, since VMs 11 and 12 are accessing CPU 4, "1, 2" are entered in the Access VM field corresponding to "HWID=1", and since VMs 13 and 14 are accessing CPU 5, "3, 4" are entered in the Access VM field corresponding to "HWID=2".

また、この場合、CAN通信I/F6にはVM11、13がアクセスするようになっているため、「HWID=3」に対応するアクセスVMの項目には「1、3」が入力されており、Ethernet通信I/F7にはVM12がアクセスするようになっているため、「HWID=4」に対応するアクセスVMの項目には「2」が入力されており、タイマー8にはVM11、14がアクセスするようになっているため、「HWID=5」に対応するアクセスVMの項目には「1、4」が入力されている。 In this case, since VMs 11 and 13 are accessing CAN communication I/F 6, "1, 3" is entered in the access VM item corresponding to "HWID=3", since VM 12 is accessing Ethernet communication I/F 7, "2" is entered in the access VM item corresponding to "HWID=4", and since VMs 11 and 14 are accessing timer 8, "1, 4" is entered in the access VM item corresponding to "HWID=5".

アクセス状態は、対応するHWへのアクセスがある状態が「あり」で表されるとともに、対応するHWへのアクセスがない状態が「なし」で表されるようになっている。アクセス状態の更新は、次のようにして行われる。すなわち、アクセスVMに記載されるVMIDのVMの状態が全てスリープ状態に遷移したときに、アクセス状態が「あり」から「なし」に更新される。言い換えると、アクセスVMに記載されるVMIDのVMの状態が1つでもウェイクアップ状態であるときには、アクセス状態は「あり」のまま維持される。図3に示すアクセス管理テーブルによれば、VM11、12がスリープ状態に遷移したためにCPU4およびEthernet通信I/F7のアクセス状態が「なし」であるとともに、その他のHWのアクセス状態が「あり」であることが分かる。 The access state is represented as "Yes" when there is access to the corresponding HW, and as "No" when there is no access to the corresponding HW. The access state is updated as follows. That is, when all of the VMs with the VMIDs listed in the access VM transition to the sleep state, the access state is updated from "Yes" to "No." In other words, if even one of the VMs with the VMIDs listed in the access VM is in the wake-up state, the access state remains "Yes." According to the access management table shown in Figure 3, it can be seen that because VMs 11 and 12 have transitioned to the sleep state, the access states of CPU 4 and Ethernet communication I/F 7 are "No," and the access states of the other HW are "Yes."

遷移条件テーブルは、複数の省電力状態のそれぞれにマイコン3を遷移させるための条件である遷移条件に関する情報を表すテーブルであり、例えば図4に示すような内容のものとなっている。このような遷移条件テーブルは、マイコン3のハードウェアマニュアルなどに基づいて作成することができる。遷移条件テーブルには、マイコン3として定義される省電力状態の名称である省電力状態名、各省電力状態に遷移する際の条件である遷移条件および各省電力状態における省電力度合いといった要素が存在する。なお、以下では、各省電力状態のことを、それらの省電力状態名で呼ぶこととする。 The transition condition table is a table that displays information about the transition conditions, which are the conditions for transitioning the microcomputer 3 to each of multiple power saving states, and may have the contents shown in Figure 4, for example. Such a transition condition table can be created based on the hardware manual for the microcomputer 3. The transition condition table contains elements such as the power saving state name, which is the name of the power saving state defined for the microcomputer 3, the transition conditions, which are the conditions for transitioning to each power saving state, and the degree of power saving in each power saving state. Note that, below, each power saving state will be referred to by its power saving state name.

「HALT」は、「単独CPUについて単独VMからのアクセスがないこと」が遷移条件になっているとともに、省電力度合いが「小」になっている。「HALT」は、例えば2つのVMからアクセスされるCPUについて、2つのVMの一方からアクセスが無い場合に遷移することができるものであり、2つのVMの他方が動作していない、つまりアクセスしていないような隙間の期間にCPUを一時的に停止することで、マイコン3の電力消費量を低減するものである。 The transition condition for "HALT" is "there is no access from the sole VM to the sole CPU," and the degree of power saving is "small." For example, in the case of a CPU accessed by two VMs, "HALT" can be used to transition when there is no access from one of the two VMs. By temporarily stopping the CPU during the gap when the other of the two VMs is not operating, i.e., not accessing the CPU, the power consumption of the microcontroller 3 is reduced.

「STOP」は、「単独CPUについて全VMからのアクセスがないこと」が遷移条件になっているとともに、省電力度合いが「中」になっている。「STOP」は、例えば2つのVMからアクセスされるCPUについて、2つのVMの双方からアクセスが無い場合に遷移することができるものであり、そのCPUを停止することで、マイコン3の電力消費量を低減するものである。この場合、HV2が、その停止されたCPUへのアクセスを停止することになり、その分だけ電力消費量をさらに低減することができる。 The transition condition for "STOP" is "no access from any VMs to a single CPU," and the power saving level is "medium." For example, for a CPU accessed by two VMs, "STOP" can be transitioned to when there is no access from either of the two VMs, and by stopping that CPU, the power consumption of the microcontroller 3 is reduced. In this case, the HV2 will stop accessing the stopped CPU, further reducing power consumption accordingly.

「PERIPHERALSTOP」は、「全ペリフェラルについてVMからのアクセスがないこと」が遷移条件になっているとともに、省電力度合いが「中」になっている。「PERIPHERALSTOP」は、全てのペリフェラル、つまりCAN通信I/F6、Ethernet通信I/F7およびタイマー8について、全てのVMからアクセスが無い場合に遷移することができるものであり、全てのペリフェラルを停止することで、マイコン3の電力消費量を低減するものである。 The transition condition for "PERIPHERALSTOP" is "no access from VMs to any peripherals," and the power saving level is "medium." "PERIPHERALSTOP" can be transitioned to when there is no access from any VM to any peripherals, i.e., the CAN communication I/F 6, Ethernet communication I/F 7, and timer 8. By stopping all peripherals, the power consumption of the microcontroller 3 is reduced.

「DEEPSTOP」は、「全CPUについてVMからのアクセスがないこと」および「全ペリフェラルについてVMからのアクセスがないこと」の双方を満たすことが遷移条件になっているとともに、省電力度合いが「大」になっている。「DEEPSTOP」は、全てのCPUおよび全てのペリフェラルについて全てのVMからアクセスが無い場合に遷移することができるものであり、全てのCPUおよび全てのペリフェラルを停止する、つまりほぼ全ての機能を停止することで、マイコン3の電力消費量を低減するものである。この場合、HV2もスリープ状態となり、その機能を停止する。 The transition conditions for "DEEPSTOP" are that "all CPUs are not accessed by VMs" and "all peripherals are not accessed by VMs," and the degree of power saving is "large." "DEEPSTOP" can be transitioned to when all CPUs and peripherals are not accessed by any VMs, and by stopping all CPUs and all peripherals, in other words, stopping almost all functions, the power consumption of the microcontroller 3 is reduced. In this case, the HV2 also enters sleep state and stops its functions.

HV2は、上記した各テーブル、つまり状態管理テーブル、アクセス管理テーブルおよび遷移条件テーブルを参照し、複数の省電力状態のうち、その時点で遷移可能であり且つ最も電力消費量が少ない状態にマイコン3を遷移させるようになっている。このようなマイコン3の状態遷移は、HV2が判定処理を実行することにより実現される。判定処理は、前述したように、HV2がVM11~14から送信される状態遷移要求を受信すると実行するものであり、例えば図5に示すような内容の処理となっている。 The HV2 references the above-mentioned tables, namely the state management table, the access management table, and the transition condition table, and transitions the microcomputer 3 to one of the multiple power-saving states that is currently available and consumes the least amount of power. Such state transitions of the microcomputer 3 are realized by the HV2 executing a determination process. As described above, the determination process is executed when the HV2 receives a state transition request sent from VMs 11-14, and is, for example, the process shown in Figure 5.

まず、ステップS101では、状態遷移要求を送信したVMのVMIDが取得される。VMIDの取得は、受信した状態遷移要求に含まれるVMIDを読み込むことにより行われる。ステップS101の実行後はステップS102に進み、状態管理テーブルの更新が行われる。具体的には、ステップS102では、ステップS101で取得したVMIDと一致するVMIDに対応するVMの状態がスリープ状態となるように状態管理テーブルが更新される。 First, in step S101, the VMID of the VM that sent the state transition request is obtained. The VMID is obtained by reading the VMID included in the received state transition request. After step S101 is executed, the process proceeds to step S102, where the state management table is updated. Specifically, in step S102, the state management table is updated so that the state of the VM corresponding to the VMID that matches the VMID obtained in step S101 is set to sleep.

ステップS102の実行後はステップS103に進み、アクセス管理テーブルのHWIDに対応する各情報のうち、先頭のHWID、つまり「HWID=1」に対応する各情報が取得される。ステップS103の実行後はステップS104に進み、ステップS103で取得した情報におけるアクセスVMに記載された全てのVMがスリープ状態であるか否かが判断される。このような判断は、状態管理テーブルに基づいて行うことができる。 After step S102 is executed, the process proceeds to step S103, where the information corresponding to the first HWID in the access management table, i.e., "HWID=1," is obtained. After step S103 is executed, the process proceeds to step S104, where it is determined whether all VMs listed as access VMs in the information obtained in step S103 are in a sleep state. This determination can be made based on the state management table.

ここで、全てのVMがスリープ状態である場合、ステップS104で「YES」となり、ステップS105に進む。一方、全てのVMがスリープ状態でない場合、言い換えると少なくとも1つのVMがウェイクアップ状態である場合、ステップS104で「NO」となり、ステップS105を実行することなく、ステップS106に進む。ステップS105では、ステップS103で取得したHWIDに対応するアクセス状態が「なし」に設定される。 Here, if all VMs are in a sleep state, step S104 results in "YES" and the process proceeds to step S105. On the other hand, if all VMs are not in a sleep state, in other words, if at least one VM is in a wake-up state, step S104 results in "NO", and the process proceeds to step S106 without executing step S105. In step S105, the access state corresponding to the HWID obtained in step S103 is set to "none."

ステップS106では、ステップS103で取得した各情報が最後の情報であるか否か、つまりステップS103で取得した各情報に対応するHW以外に情報が未取得のHWが存在するか否かが判断される。ここで、ステップS103で取得した各情報が最後の情報ではない場合、ステップS106で「NO」となり、ステップS107に進む。ステップS107では、アクセス管理テーブルのHWIDに対応する各情報のうち、次のHWIDに対応する各情報が取得される。 In step S106, it is determined whether the information acquired in step S103 is the last information, that is, whether there is any HW for which information has not been acquired other than the HW corresponding to the information acquired in step S103. If the information acquired in step S103 is not the last information, step S106 returns "NO" and the process proceeds to step S107. In step S107, the information corresponding to the next HWID from the information corresponding to the HWID in the access management table is acquired.

ここで言う「次の」とは、アクセス管理テーブルのHWIDに対応する各情報のうち、今回の一連の処理において未だ情報が取得されていない情報のうち最もHWIDの数字が小さいもののことを意味する。ステップS107の実行後はステップS104に戻る。一方、ステップS103で取得した各情報が最後の情報である場合、ステップS106で「YES」となり、ステップS108に進む。ステップS108では、アクセス管理テーブルにおける各HWのアクセス状態と、遷移条件テーブルにおける遷移条件と、に基づいて、その時点において遷移可能な省電力状態が存在するか否かが判断される。 Here, "next" refers to the information corresponding to the HWID in the access management table that has not yet been obtained in this series of processes and has the smallest HWID number. After step S107 is executed, the process returns to step S104. On the other hand, if the information obtained in step S103 is the last information, step S106 returns "YES" and the process proceeds to step S108. In step S108, it is determined whether there is a power saving state to which a transition can be made at that time, based on the access status of each HW in the access management table and the transition conditions in the transition condition table.

ここで、遷移可能な省電力状態が存在しない場合、ステップS108で「NO」となり、本処理が終了となる。一方、遷移可能な省電力状態が存在する場合、ステップS108で「YES」となり、ステップS109に進む。ステップS109では、遷移可能な省電力状態のうち、最も省電力度合いが大きい状態にマイコン3の状態を遷移させる。ステップS109の実行後、本処理が終了となる。 If there is no power-saving state to which a transition can be made, step S108 returns "NO" and the process ends. On the other hand, if there is a power-saving state to which a transition can be made, step S108 returns "YES" and the process proceeds to step S109. In step S109, the state of the microcomputer 3 is transitioned to the state with the greatest degree of power saving among the power-saving states to which a transition can be made. After step S109 is executed, the process ends.

続いて、HV2により判定処理が実行される際における各部の具体的な動作の流れについて説明する。なお、ここでは、VM11、12、13、14が、この順番で状態遷移要求をHV2に対して送信する、つまりこの順番でスリープ状態へと遷移してゆくケースを想定している。まず、VM11がHV2に対して状態遷移要求を送信すると、それを受信したHV2は、状態管理テーブルの「VMID=1」に対応するVMの状態を「スリープ」に更新する。 Next, we will explain the specific flow of operation of each part when the determination process is executed by HV2. Note that here we assume a case where VMs 11, 12, 13, and 14 send state transition requests to HV2 in this order, i.e., they transition to sleep state in this order. First, when VM 11 sends a state transition request to HV2, HV2, upon receiving it, updates the state of the VM corresponding to "VMID=1" in the state management table to "sleep."

その後、HV2は、アクセス管理テーブルについてHWID=1~5を順番に判定してアクセス状態の更新を行う。このとき、VM11だけがスリープ状態であり、他のVM12~14がウェイクアップ状態であるため、アクセス状態は全て「あり」のまま維持されて更新されることはない。そして、HV2は、アクセス管理テーブルのアクセス状態および遷移条件テーブルの遷移条件の比較を行う。このとき、VM11によるCPU4へのアクセスがなくなることから、「HALT」への遷移条件が満たされることになる。なお、このとき、他の省電力状態への遷移条件は満たされていない。そのため、HV2は、マイコン3の状態を「HALT」に遷移させる。 Then, HV2 checks the access management table for HWID=1 to 5 in order and updates the access state. At this time, only VM11 is in the sleep state, and the other VMs 12 to 14 are in the wake-up state, so all access states remain "Yes" and are not updated. HV2 then compares the access states in the access management table with the transition conditions in the transition condition table. At this time, VM11 is no longer accessing CPU4, so the transition condition to "HALT" is met. Note that at this time, the transition conditions to other power-saving states are not met. Therefore, HV2 transitions the state of microcomputer 3 to "HALT."

次に、VM12がHV2に対して状態遷移要求を送信すると、それを受信したHV2は、状態管理テーブルの「VMID=2」に対応するVMの状態を「スリープ」に更新する。その後、HV2は、アクセス管理テーブルについてHWID=1~5を順番に判定してアクセス状態の更新を行う。このとき、VM11に加えてVM12がスリープ状態であることから、「HWID=1」に対応するCPU[1]、つまりCPU4のアクセス状態が「なし」に更新されるとともに、「HWID=4」に対応するEthernet、つまりEthernet通信I/F7のアクセス状態が「なし」に更新される。 Next, when VM12 sends a state transition request to HV2, HV2, upon receiving it, updates the state of the VM corresponding to "VMID=2" in the state management table to "Sleep." HV2 then sequentially checks HWID=1 to 5 in the access management table and updates the access state. At this time, because VM12, in addition to VM11, is in the sleep state, the access state of CPU [1] corresponding to "HWID=1," i.e., CPU 4, is updated to "None," and the access state of Ethernet corresponding to "HWID=4," i.e., Ethernet communication I/F 7, is updated to "None."

そして、HV2は、アクセス管理テーブルのアクセス状態および遷移条件テーブルの遷移条件の比較を行う。このとき、VM11、12によるCPU4へのアクセスがなくなることから、「HALT」に加え、「STOP」への遷移条件が満たされることになる。なお、このとき、他の省電力状態への遷移条件は満たされていない。そのため、HV2は、マイコン3の状態を、遷移可能な省電力状態のうち、より省電力度合いが大きい状態である「STOP」に遷移させる。 Then, HV2 compares the access status in the access management table with the transition conditions in the transition condition table. At this time, because VMs 11 and 12 no longer access CPU 4, the transition conditions to "STOP" in addition to "HALT" are met. Note that at this time, the transition conditions to other power-saving states are not met. Therefore, HV2 transitions the state of microcomputer 3 to "STOP," which is the state with the greatest degree of power saving among the available power-saving states.

次に、VM13がHV2に対して状態遷移要求を送信すると、それを受信したHV2は、状態管理テーブルの「VMID=3」に対応するVMの状態を「スリープ」に更新する。その後、HV2は、アクセス管理テーブルについてHWID=1~5を順番に判定してアクセス状態の更新を行う。このとき、VM11、12に加えてVM13がスリープ状態であることから、「HWID=3」に対応するCAN、つまりCAN通信I/F6のアクセス状態が「なし」に更新される。そして、HV2は、アクセス管理テーブルのアクセス状態および遷移条件テーブルの遷移条件の比較を行うが、新たに遷移条件が満たされることがないため、マイコン3の状態は「STOP」のまま維持される。 Next, VM13 sends a state transition request to HV2. Upon receiving this, HV2 updates the state of the VM corresponding to "VMID=3" in the state management table to "Sleep." HV2 then checks HWID=1 to 5 in order in the access management table to update the access state. At this time, because VM13, in addition to VM11 and 12, is in the sleep state, the access state of the CAN corresponding to "HWID=3," i.e., the CAN communication I/F 6, is updated to "None." HV2 then compares the access state in the access management table with the transition conditions in the transition condition table, but because no new transition conditions are met, the state of the microcontroller 3 remains "STOP."

次に、VM14がHV2に対して状態遷移要求を送信すると、それを受信したHV2は、状態管理テーブルの「VMID=4」に対応するVMの状態を「スリープ」に更新する。その後、HV2は、アクセス管理テーブルについてHWID=1~5を順番に判定してアクセス状態の更新を行う。このとき、VM11~13に加えてVM14がスリープ状態であることから、アクセス状態は全て「なし」に更新される。 Next, when VM14 sends a state transition request to HV2, HV2 receives it and updates the state of the VM corresponding to "VMID=4" in the state management table to "Sleep." HV2 then checks HWID=1 to 5 in order in the access management table and updates the access state. At this time, because VM14, in addition to VM11 to 13, is in the sleep state, all access states are updated to "None."

そして、HV2は、アクセス管理テーブルのアクセス状態および遷移条件テーブルの遷移条件の比較を行う。このとき、VM11~14による全てのHWへのアクセスがなくなることから、「HALT」および「STOP」に加え、「PERIPHERALSTOP」および「DEEPSTOP」への遷移条件が満たされることになる。そのため、HV2は、マイコン3の状態を、遷移可能な各省電力状態のうち、より省電力度合いが大きい状態である「DEEPSTOP」に遷移させる。 Then, the HV2 compares the access states in the access management table with the transition conditions in the transition condition table. At this point, because VMs 11-14 no longer access all HW, the transition conditions for "PERIPHERALSTOP" and "DEEPSTOP" in addition to "HALT" and "STOP" are met. Therefore, the HV2 transitions the state of the microcomputer 3 to "DEEPSTOP," which is the state with the greatest degree of power saving among the available power saving states.

以上説明した本実施形態によれば、次のような効果が得られる。
HV2は、複数のVM11~14のそれぞれについての状態に関する情報を表す状態管理テーブルと、複数のVM11~14のそれぞれがアクセスするマイコン3が備えるハードウェアに関する情報を表すアクセス管理テーブルと、複数の省電力状態のそれぞれにマイコン3を遷移させるための条件である遷移条件に関する情報を表す遷移条件テーブルと、を参照し、複数の省電力状態のうち、その時点で遷移可能であり且つ最も電力消費量が少ない状態にマイコン3を遷移させる判定処理を実行するようになっている。
According to the present embodiment described above, the following effects can be obtained.
The HV2 refers to a state management table that shows information about the state of each of the multiple VMs 11 to 14, an access management table that shows information about the hardware that the microcontroller 3 has that is accessed by each of the multiple VMs 11 to 14, and a transition condition table that shows information about the transition conditions that are the conditions for transitioning the microcontroller 3 to each of the multiple power saving states, and performs a determination process to transition the microcontroller 3 to one of the multiple power saving states that is possible to transition to at that time and has the lowest power consumption.

このような構成によれば、複数のVM11~14のいずれかがスリープ状態へと遷移可能になる度に、その時点で遷移可能な省電力状態のうち最も電力消費量が少ない状態にマイコン3の状態が遷移されることになる。すなわち、上記構成によれば、マイコン3の状態をより電力消費量が少なくなるように段階的に遷移させること、つまり多段階の省電力遷移を実現することができる。そのため、上記構成によれば、全てのVM11~14がスリープ状態に遷移していなくとも、可能な範囲でマイコン3の省電力効果を得ることが可能となる。したがって、本実施形態によれば、従来技術に比べ、省電力の効果を十分に高めることができる。 With this configuration, each time one of the multiple VMs 11-14 is able to transition to a sleep state, the state of the microcomputer 3 transitions to the power-saving state with the lowest power consumption of those available at that time. In other words, with the above configuration, the state of the microcomputer 3 can be transitioned in stages to further reduce power consumption, i.e., multi-stage power-saving transitions can be realized. Therefore, with the above configuration, it is possible to obtain the power-saving effect of the microcomputer 3 to the extent possible, even if all VMs 11-14 have not transitioned to a sleep state. Therefore, with this embodiment, the power-saving effect can be significantly improved compared to conventional technology.

また、この場合、HV2は、VM11~14のいずれかがスリープ状態へと遷移可能になった際、スリープ状態へと遷移可能なVM以外の他のVM、つまりウェイクアップ状態のVMの動作に影響を与えることがないような省電力状態にマイコン3の状態を遷移させるようになっている。このようにすれば、VM11~14のいずれかがスリープ状態へと遷移する際、他のVMが所定の動作を実行中にもかかわらず、その動作の継続を妨げてしまうことを防止できる。 In addition, in this case, when any of VMs 11 to 14 are able to transition to a sleep state, HV2 transitions the state of microcontroller 3 to a power-saving state that does not affect the operation of VMs other than the VM that is able to transition to a sleep state, i.e., VMs in a wake-up state. In this way, when any of VMs 11 to 14 transition to a sleep state, it is possible to prevent the continuation of a specified operation by another VM that is currently executing that operation from being interrupted.

上記構成において、VM11およびVM12のスリープ条件にはIG電源10の状態が含まれているとともに、VM13およびVM14のスリープ条件には+B電源9の状態が含まれている。このような場合、VM11、12と、VM13、14とがスリープ状態に遷移する遷移タイミングに比較的大きな時間差が生じる可能性が高い。従来技術では、このような場合、十分な省電力効果が得られなくなるおそれがあった。これに対し、本実施形態によれば、各VMにおいてスリープ状態に遷移する遷移タイミングに比較的大きな時間差が生じる場合であっても、上述したように多段階の省電力遷移が行われるため、十分な省電力効果を得ることができる。 In the above configuration, the sleep conditions for VM11 and VM12 include the state of the IG power supply 10, and the sleep conditions for VM13 and VM14 include the state of the +B power supply 9. In such a case, there is a high possibility that a relatively large time difference will occur between the transition timing of VM11, 12 and VM13, 14 to the sleep state. In conventional technology, in such a case, there is a risk that a sufficient power saving effect will not be obtained. In contrast, according to this embodiment, even if a relatively large time difference occurs between the transition timing of each VM to the sleep state, a sufficient power saving effect can be obtained because multi-stage power saving transitions are performed as described above.

本実施形態の状態管理テーブルは、複数のVM11~14のそれぞれについての状態に関する情報を表すものであり、複数のVM11~14のうち少なくとも1つについてスリープ条件が満たされると更新されるようになっている。このような状態管理テーブルによれば、VM毎のスリープ状態を管理することが可能となり、本実施形態のようにマイコン3上に複数のVM11~14が搭載された状態において前述した多段階の省電力遷移の制御を実現できる。 The state management table of this embodiment represents information about the state of each of the multiple VMs 11-14, and is updated when the sleep conditions are met for at least one of the multiple VMs 11-14. This state management table makes it possible to manage the sleep state for each VM, and realizes the multi-stage power saving transition control described above when multiple VMs 11-14 are installed on the microcomputer 3, as in this embodiment.

本実施形態のマイコン3は、そのハードウェアとして、CPU4、5と、CAN通信I/F6、Ethernet通信I/F7およびタイマー8といったペリフェラルと、を備える。そして、本実施形態のアクセス管理テーブルは、CPU4、5および各ペリフェラルに関する情報と、それらにアクセスする複数のVM11~14のそれぞれを識別するための識別情報であるVMIDと、が紐付けられたものとなっている。このようにすれば、VM毎にアクセスするHW情報を持つことが可能となり、段階的にマイコン3の省電力状態を遷移させることを実現できる。 The microcomputer 3 of this embodiment includes, as its hardware, CPUs 4 and 5, and peripherals such as a CAN communication I/F 6, an Ethernet communication I/F 7, and a timer 8. The access management table of this embodiment links information about the CPUs 4 and 5 and each peripheral with VMIDs, which are identification information for identifying each of the multiple VMs 11-14 that access them. This makes it possible to have access HW information for each VM, and to gradually transition the power saving state of the microcomputer 3.

(その他の実施形態)
なお、本発明は上記し且つ図面に記載した実施形態に限定されるものではなく、その要旨を逸脱しない範囲で任意に変形、組み合わせ、あるいは拡張することができる。
上記実施形態で示した数値などは例示であり、それに限定されるものではない。
本発明は、車両に搭載される統合ECU1を構成するマイコン3の状態遷移を管理する用途に限らず、複数の仮想マシンを動作させるコンピュータの状態遷移を管理する用途全般に適用することができる。
(Other embodiments)
The present invention is not limited to the embodiments described above and illustrated in the drawings, but can be arbitrarily modified, combined, or expanded without departing from the spirit of the invention.
The numerical values and the like shown in the above embodiment are examples and are not limited to these.
The present invention is not limited to applications for managing the state transitions of the microcomputer 3 that constitutes the integrated ECU 1 installed in a vehicle, but can be applied to general applications for managing the state transitions of a computer that runs multiple virtual machines.

本開示は、実施例に準拠して記述されたが、本開示は当該実施例や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態、さらには、それらに一要素のみ、それ以上、あるいはそれ以下、を含む他の組み合わせや形態をも、本開示の範疇や思想範囲に入るものである。 While the present disclosure has been described with reference to exemplary embodiments, it is understood that the present disclosure is not limited to those embodiments or structures. The present disclosure also encompasses various modifications and variations within the scope of equivalents. In addition, various combinations and forms, as well as other combinations and forms including only one element, more than one element, or less than one element, are also within the scope and spirit of the present disclosure.

本開示に記載の制御部及びその手法は、コンピュータプログラムにより具体化された一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリーを構成することによって提供された専用コンピュータにより、実現されてもよい。あるいは、本開示に記載の制御部及びその手法は、一つ以上の専用ハードウェア論理回路によってプロセッサを構成することによって提供された専用コンピュータにより、実現されてもよい。もしくは、本開示に記載の制御部及びその手法は、一つ乃至は複数の機能を実行するようにプログラムされたプロセッサ及びメモリーと一つ以上のハードウェア論理回路によって構成されたプロセッサとの組み合わせにより構成された一つ以上の専用コンピュータにより、実現されてもよい。また、コンピュータプログラムは、コンピュータにより実行されるインストラクションとして、コンピュータ読み取り可能な非遷移有形記録媒体に記憶されていてもよい。 The control unit and method 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. Alternatively, the control unit and method described in this disclosure may be implemented by a special-purpose computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and method described in this disclosure may be implemented by one or more special-purpose computers configured by combining a processor and memory programmed to perform one or more functions with a processor configured with one or more hardware logic circuits. Furthermore, the computer program may be stored as instructions executed by a computer on a computer-readable non-transitory tangible recording medium.

1…統合ECU、2…ハイパーバイザー、3…マイクロコンピュータ、4、5…CPU、6…CAN通信インターフェース、7…Ethernet通信I/F、8…タイマー、11~14…仮想マシン。 1...Integrated ECU, 2...Hypervisor, 3...Microcomputer, 4, 5...CPU, 6...CAN communication interface, 7...Ethernet communication I/F, 8...Timer, 11-14...Virtual machine.

Claims (5)

複数の仮想マシン(11~14)を動作させるコンピュータ(3)の状態遷移を管理する管理装置(2)であって、
前記複数の仮想マシンのそれぞれは、予め定められたスリープ条件が満たされることにより、所定の動作を行うウェイクアップ状態から前記動作を停止するスリープ状態へと遷移するようになっており、
前記コンピュータは、通常の動作を行う通常状態と、前記通常状態よりも電力消費量が少ない複数の省電力状態と、のうちいずれかに遷移可能であり、
前記複数の仮想マシンのそれぞれについての状態に関する情報を表す状態管理テーブルと、
前記複数の仮想マシンのそれぞれがアクセスする前記コンピュータが備えるハードウェア(4~8)に関する情報を表すアクセス管理テーブルと、
前記複数の省電力状態のそれぞれに前記コンピュータを遷移させるための条件である遷移条件に関する情報を表す遷移条件テーブルと、
を備え、
前記状態管理テーブル、前記アクセス管理テーブルおよび前記遷移条件テーブルを参照し、前記複数の省電力状態のうち、その時点で遷移可能であり且つ最も電力消費量が少ない状態に前記コンピュータを遷移させるようになっている管理装置。
A management device (2) that manages state transitions of a computer (3) that runs multiple virtual machines (11 to 14),
When a predetermined sleep condition is satisfied, each of the plurality of virtual machines transitions from a wake-up state in which a predetermined operation is performed to a sleep state in which the operation is stopped,
the computer is capable of transitioning to one of a normal state in which it operates normally and a plurality of power-saving states in which it consumes less power than the normal state;
a state management table representing information about a state of each of the plurality of virtual machines;
an access management table representing information about hardware (4-8) of the computer to be accessed by each of the plurality of virtual machines;
a transition condition table representing information on transition conditions that are conditions for transitioning the computer to each of the plurality of power saving states;
Equipped with
A management device that refers to the state management table, the access management table, and the transition condition table, and transitions the computer to one of the multiple power saving states that can be transitioned to at that time and that consumes the least power.
前記状態管理テーブルは、前記複数の仮想マシンのうち少なくとも1つについて前記スリープ条件が満たされると更新されるようになっている請求項1に記載の管理装置。 The management device described in claim 1, wherein the state management table is updated when the sleep condition is satisfied for at least one of the plurality of virtual machines. 前記コンピュータは、そのハードウェアとしてCPU(4、5)およびペリフェラル(6~8)を備え、
前記アクセス管理テーブルは、前記CPUおよびペリフェラルに関する情報と、それらにアクセスする前記複数の仮想マシンのそれぞれを識別するための識別情報と、が紐付けられたものとなっている請求項1または2に記載の管理装置。
The computer includes a CPU (4, 5) and peripherals (6-8) as its hardware.
3. The management device according to claim 1, wherein the access management table associates information about the CPU and peripherals with identification information for identifying each of the plurality of virtual machines accessing them.
複数の仮想マシンを動作させるコンピュータの状態遷移を管理する管理装置に実行させる管理プログラムであって、
前記複数の仮想マシンのそれぞれは、予め定められたスリープ条件が満たされることにより、所定の動作を行うウェイクアップ状態から前記動作を停止するスリープ状態へと遷移するようになっており、
前記コンピュータは、通常の動作を行う通常状態と、前記通常状態よりも電力消費量が少ない複数の省電力状態と、のうちいずれかに遷移可能であり、
前記管理装置に、
前記複数の仮想マシンのそれぞれについての状態に関する情報を表す状態管理テーブル、前記複数の仮想マシンのそれぞれがアクセスする前記コンピュータが備えるハードウェアに関する情報を表すアクセス管理テーブルおよび前記複数の省電力状態のそれぞれに前記コンピュータを遷移させるための条件である遷移条件に関する情報を表す遷移条件テーブルを参照し、前記複数の省電力状態のうち、その時点で遷移可能であり且つ最も電力消費量が少ない状態に前記コンピュータを遷移させる処理、
を実行させる管理プログラム。
A management program executed by a management device that manages state transitions of a computer running a plurality of virtual machines,
When a predetermined sleep condition is satisfied, each of the plurality of virtual machines transitions from a wake-up state in which a predetermined operation is performed to a sleep state in which the operation is stopped,
the computer is capable of transitioning to one of a normal state in which it operates normally and a plurality of power-saving states in which it consumes less power than the normal state;
The management device
a process of referring to a state management table that indicates information about the state of each of the plurality of virtual machines, an access management table that indicates information about hardware that the computer has and that is accessed by each of the plurality of virtual machines, and a transition condition table that indicates information about transition conditions that are conditions for transitioning the computer to each of the plurality of power saving states, and transitioning the computer to one of the plurality of power saving states that can be transitioned to at that time and that consumes the least amount of power;
A management program that runs the
コンピュータ(3)と、前記コンピュータ上で動作する複数の仮想マシン(11~14)と、前記コンピュータの状態遷移を管理する管理装置(2)と、を備えた電子制御装置(1)であって、
前記複数の仮想マシンのそれぞれは、予め定められたスリープ条件が満たされることにより、所定の動作を行うウェイクアップ状態から前記動作を停止するスリープ状態へと遷移するようになっており、
前記コンピュータは、通常の動作を行う通常状態と、前記通常状態よりも電力消費量が少ない複数の省電力状態と、のうちいずれかに遷移可能であり、
前記管理装置は、
前記複数の仮想マシンのそれぞれについての状態に関する情報を表す状態管理テーブルと、
前記複数の仮想マシンのそれぞれがアクセスする前記コンピュータが備えるハードウェア(4~8)に関する情報を表すアクセス管理テーブルと、
前記複数の省電力状態のそれぞれに前記コンピュータを遷移させるための条件である遷移条件に関する情報を表す遷移条件テーブルと、
を備え、
前記状態管理テーブル、前記アクセス管理テーブルおよび前記遷移条件テーブルを参照し、前記複数の省電力状態のうち、その時点で遷移可能であり且つ最も電力消費量が少ない状態に前記コンピュータを遷移させるようになっている電子制御装置。
An electronic control device (1) including a computer (3), a plurality of virtual machines (11 to 14) running on the computer, and a management device (2) that manages state transitions of the computer,
When a predetermined sleep condition is satisfied, each of the plurality of virtual machines transitions from a wake-up state in which a predetermined operation is performed to a sleep state in which the operation is stopped,
the computer is capable of transitioning to one of a normal state in which it operates normally and a plurality of power-saving states in which it consumes less power than the normal state;
The management device
a state management table representing information about a state of each of the plurality of virtual machines;
an access management table representing information about hardware (4-8) of the computer to be accessed by each of the plurality of virtual machines;
a transition condition table representing information on transition conditions that are conditions for transitioning the computer to each of the plurality of power saving states;
Equipped with
An electronic control device that refers to the state management table, the access management table, and the transition condition table, and transitions the computer to one of the multiple power saving states that can be transitioned to at that time and that consumes the least power.
JP2022068277A 2022-04-18 2022-04-18 Management device, management program, and electronic control device Active JP7754769B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022068277A JP7754769B2 (en) 2022-04-18 2022-04-18 Management device, management program, and electronic control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022068277A JP7754769B2 (en) 2022-04-18 2022-04-18 Management device, management program, and electronic control device

Publications (2)

Publication Number Publication Date
JP2023158435A JP2023158435A (en) 2023-10-30
JP7754769B2 true JP7754769B2 (en) 2025-10-15

Family

ID=88509428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022068277A Active JP7754769B2 (en) 2022-04-18 2022-04-18 Management device, management program, and electronic control device

Country Status (1)

Country Link
JP (1) JP7754769B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006113767A (en) 2004-10-14 2006-04-27 Sony Corp Information processing system, information processing method, and program
WO2013035246A1 (en) 2011-09-07 2013-03-14 パナソニック株式会社 Virtual computer control apparatus, virtual computer control method, virtual computer control program, and integrated circuit
JP2016053841A (en) 2014-09-03 2016-04-14 日本電信電話株式会社 Power supply state control device and program
JP2021124902A (en) 2020-02-04 2021-08-30 トヨタ自動車株式会社 Vehicle controller, vehicle control method, and vehicle control program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006113767A (en) 2004-10-14 2006-04-27 Sony Corp Information processing system, information processing method, and program
WO2013035246A1 (en) 2011-09-07 2013-03-14 パナソニック株式会社 Virtual computer control apparatus, virtual computer control method, virtual computer control program, and integrated circuit
US20130232493A1 (en) 2011-09-07 2013-09-05 Kazuomi Kato Virtual computer control apparatus, virtual computer control method, virtual computer control program, and integrated circuit
JP2016053841A (en) 2014-09-03 2016-04-14 日本電信電話株式会社 Power supply state control device and program
JP2021124902A (en) 2020-02-04 2021-08-30 トヨタ自動車株式会社 Vehicle controller, vehicle control method, and vehicle control program

Also Published As

Publication number Publication date
JP2023158435A (en) 2023-10-30

Similar Documents

Publication Publication Date Title
US8190864B1 (en) APIC implementation for a highly-threaded x86 processor
US10372184B2 (en) Method and apparatus for implementing power modes in microcontrollers using power profiles
CN103814342B (en) Multi-core calculates the Active sleep of device
US7007180B2 (en) System and method for switching a computer system to a first or second power saving mode based on whether or not there exists a timer-expiration-waiting event in an event queue
JP6155507B2 (en) Computing platform interface with memory management
US9032126B2 (en) Increasing turbo mode residency of a processor
US10963036B2 (en) Idle loop detection and control for processors
JP5392404B2 (en) Method and apparatus for reconfiguring a dynamic system
US7721052B2 (en) System and method of reducing power consumption of a main memory
CN103597449A (en) Operating system decoupled heterogeneous computing
US8250354B2 (en) Method and apparatus for making a processor sideband interface adhere to secure mode restrictions
CN112306652A (en) Wake-up and scheduling with context-aware functionality
US10571993B2 (en) Micro controller unit
CN109582434B (en) Dynamic platform feature tuning based on virtual machine runtime requirements
JP7754769B2 (en) Management device, management program, and electronic control device
US7299372B2 (en) Hierarchical management for multiprocessor system with real-time attributes
US7117334B2 (en) Dynamic node partitioning utilizing sleep state
CN117008980B (en) System dormancy method and device, and system wakeup method and device
CN101171563A (en) Sleep watchdog circuit for asynchronous digital circuits
US7424630B2 (en) Multiprocessor system with selective processor power down of core and inter-processor communications ports
CN111694787A (en) Chip starting method, network equipment and machine readable storage medium
CN108845969B (en) Operation control method and operation system suitable for incompletely symmetrical multi-processing microcontroller
US7299371B2 (en) Hierarchical management for multiprocessor system
US20180341482A1 (en) Method and arrangement for utilization of a processing arrangement
JP2012173919A (en) Information processor, electronic control unit for vehicle, and data storage method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220517

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20240716

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20241112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20250829

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20250909

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20251002

R150 Certificate of patent or registration of utility model

Ref document number: 7754769

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150