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
JP7707863B2 - Electronic control device, software update method, software update program, and electronic control system - Google Patents
[go: Go Back, main page]

JP7707863B2 - Electronic control device, software update method, software update program, and electronic control system - Google Patents

Electronic control device, software update method, software update program, and electronic control system

Info

Publication number
JP7707863B2
JP7707863B2 JP2021178151A JP2021178151A JP7707863B2 JP 7707863 B2 JP7707863 B2 JP 7707863B2 JP 2021178151 A JP2021178151 A JP 2021178151A JP 2021178151 A JP2021178151 A JP 2021178151A JP 7707863 B2 JP7707863 B2 JP 7707863B2
Authority
JP
Japan
Prior art keywords
virtual machine
electronic control
update
hypervisor
file
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
JP2021178151A
Other languages
Japanese (ja)
Other versions
JP2022085862A (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.)
Denso Corp
Original Assignee
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 Denso Corp filed Critical Denso Corp
Priority to US17/534,490 priority Critical patent/US11836476B2/en
Priority to DE102021130898.4A priority patent/DE102021130898A1/en
Publication of JP2022085862A publication Critical patent/JP2022085862A/en
Application granted granted Critical
Publication of JP7707863B2 publication Critical patent/JP7707863B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Description

本発明は、電子制御装置に関するものであり、主として車両用の電子制御装置、電子制御装置で実現する方法、電子制御装置で実行可能なプログラム、及び電子制御装置からなる電子制御システムに関する。 The present invention relates to an electronic control device, and primarily relates to an electronic control device for a vehicle, a method implemented by the electronic control device, a program executable by the electronic control device, and an electronic control system comprising the electronic control device.

自動車においては、車載ネットワークで接続された様々な電子制御装置が搭載されている。近年の自動運転技術の発展に伴い自動車に求められる機能が複雑になりつつあり、自動車に搭載される電子制御装置の数は増加しつつある。そこで、複数の機能を1つの電子制御装置に統合することで電子制御装置全体の数を抑制することが可能な仮想化技術を適用することが提案されている。 Automobiles are equipped with various electronic control devices that are connected via an in-vehicle network. With the recent development of autonomous driving technology, the functions required of automobiles are becoming more complex, and the number of electronic control devices installed in automobiles is increasing. Therefore, it has been proposed to apply virtualization technology that can reduce the total number of electronic control devices by integrating multiple functions into a single electronic control device.

例えば、特許文献1には、車載コンピュータにおいて、ハイパーバイザ(Hypervisor)等の仮想化オペレーティングシステムを利用して、複数の仮想ECUを構築することが開示されている。特許文献1に記載の技術によれば、ECUを介して車載コンピュータに接続された端末機器の動作に必要な物理リソースを車載コンピュータに集約させることで、物理リソースの効率的な利用が可能となる。 For example, Patent Document 1 discloses the construction of multiple virtual ECUs in an on-board computer using a virtualized operating system such as a hypervisor. According to the technology described in Patent Document 1, the physical resources required for the operation of terminal devices connected to the on-board computer via the ECUs are consolidated in the on-board computer, enabling efficient use of the physical resources.

特開2020-173561号公報JP 2020-173561 A

ここで、本発明者は、以下の課題を見出した。
車両に搭載される電子制御装置には、走行や操舵といった車両の動作を制御するものが含まれるため、車両の安全性を確保するために常に最新のソフトウェアにアップデートすることが望ましい。ところが、仮想化技術によって電子制御装置の数を抑制しても、電子制御装置を仮想化してなる仮想マシンが多数存在する場合、これら全ての仮想マシンをアップデートするためには時間がかかるおそれがある。
Here, the present inventors have found the following problem.
Since electronic control devices installed in vehicles include those that control vehicle operations such as driving and steering, it is desirable to always update them to the latest software in order to ensure the safety of the vehicle. However, even if the number of electronic control devices is reduced by using virtualization technology, if there are many virtual machines formed by virtualizing the electronic control devices, it may take a long time to update all of these virtual machines.

そこで、本発明は、仮想マシンのソフトウェアの更新に要する時間を短縮することを目的とする。 The present invention aims to reduce the time required to update virtual machine software.

本開示の一態様による電子制御装置は、ハイパーバイザによって管理される仮想マシンを有する電子制御装置であって、ソフトウェアを更新するためのファイルを取得するファイル取得部(141)と、前記ファイルを保存する保存部(130,144)と、を備え、前記仮想マシンである第1の仮想マシン(140)は、前記第1の仮想マシンを管理する第1のハイパーバイザ(110)と、前記第1の仮想マシンに接続された第2の仮想マシン(150,160,230)を管理する第2のハイパーバイザ(110,120,210)とが同じかどうかを判定する判定部(146)と、前記判定部が前記第1のハイパーバイザと前記第2のハイパーバイザが異なると判定した場合に、前記ファイルを前記第2の仮想マシンに配信する配信部(147)と、を有する。 An electronic control device according to one aspect of the present disclosure is an electronic control device having a virtual machine managed by a hypervisor, and includes a file acquisition unit (141) that acquires a file for updating software, and a storage unit (130, 144) that stores the file. The first virtual machine (140) is a virtual machine. The first virtual machine has a determination unit (146) that determines whether a first hypervisor (110) that manages the first virtual machine is the same as a second hypervisor (110, 120, 210) that manages a second virtual machine (150, 160, 230) connected to the first virtual machine, and a delivery unit (147) that delivers the file to the second virtual machine when the determination unit determines that the first hypervisor and the second hypervisor are different.

本開示の他の態様によるソフトウェア更新方法は、ハイパーバイザによって管理される仮想マシンを有する電子制御装置で実行されるソフトウェア更新方法であって、ソフトウェアを更新するためのファイルを取得し(S101)、前記ファイルを保存部(130,144)に保存し(S103)、前記仮想マシンである第1の仮想マシン(140)を管理する第1のハイパーバイザ(110)と、前記第1の仮想マシンに接続された第2の仮想マシン(150,160,230)を管理する第2のハイパーバイザ(110,120,210)とが同じかどうかを判定し(S106)、前記第1のハイパーバイザと前記第2のハイパーバイザが異なる場合に、前記ファイルを前記第2の仮想マシンに配信する(S109)。 A software update method according to another aspect of the present disclosure is a software update method executed in an electronic control device having a virtual machine managed by a hypervisor, which obtains a file for updating software (S101), stores the file in a storage unit (130, 144) (S103), determines whether a first hypervisor (110) that manages a first virtual machine (140) that is the virtual machine is the same as a second hypervisor (110, 120, 210) that manages a second virtual machine (150, 160, 230) connected to the first virtual machine (S106), and delivers the file to the second virtual machine if the first hypervisor and the second hypervisor are different (S109).

本開示の他の態様によるソフトウェア更新プログラムは、ハイパーバイザによって管理される仮想マシンを有する電子制御装置で実行可能なソフトウェア更新プログラムであって、ソフトウェアを更新するためのファイルを取得し(S101)、前記ファイルを保存部(130,144)に保存し(S103)、前記仮想マシンである第1の仮想マシン(140)を管理する第1のハイパーバイザ(110)と、前記第1の仮想マシンに接続された第2の仮想マシン(150,160,230)を管理する第2のハイパーバイザ(110,120,210)とが同じかどうかを判定し(S106)、前記第1のハイパーバイザと前記第2のハイパーバイザが異なる場合に、前記ファイルを前記第2の仮想マシンに配信する(S109)。 A software update program according to another aspect of the present disclosure is a software update program executable on an electronic control device having a virtual machine managed by a hypervisor, which obtains a file for updating the software (S101), stores the file in a storage unit (130, 144) (S103), determines whether a first hypervisor (110) that manages a first virtual machine (140), which is the virtual machine, is the same as a second hypervisor (110, 120, 210) that manages a second virtual machine (150, 160, 230) connected to the first virtual machine (S106), and delivers the file to the second virtual machine if the first hypervisor and the second hypervisor are different (S109).

本開示の他の態様による電子制御システムは、第1の電子制御装置(10)と第2の電子制御装置(20)とを有する電子制御システムであって、第1のハイパーバイザ(110)によって管理される第1の仮想マシン(140)を有する前記第1の電子制御装置は、ソフトウェアを更新するためのファイルを取得するファイル取得部(141)と、前記ファイルを保存する保存部(130,144)とを備え、前記第1の仮想マシンは、前記第1のハイパーバイザと、前記第2の電子制御装置が有する第2の仮想マシン(230)を管理する第2のハイパーバイザ(210)とが同じかどうかを判定する判定部(146)と、前記判定部が前記第1のハイパーバイザと前記第2のハイパーバイザが異なると判定した場合に、前記ファイルを前記第2の仮想マシンに配信する配信部(147)と、を有し、前記第2の仮想マシンは、前記保存部にアクセスすることにより前記ファイルを用いて、又は前記配信部が配信する前記ファイルを用いて、前記第2の仮想マシンを更新する更新部(231)を有する。 An electronic control system according to another aspect of the present disclosure is an electronic control system having a first electronic control device (10) and a second electronic control device (20), the first electronic control device having a first virtual machine (140) managed by a first hypervisor (110) includes a file acquisition unit (141) that acquires a file for updating software and a storage unit (130, 144) that stores the file, the first virtual machine includes a determination unit (146) that determines whether the first hypervisor is the same as a second hypervisor (210) that manages a second virtual machine (230) owned by the second electronic control device, and a delivery unit (147) that delivers the file to the second virtual machine when the determination unit determines that the first hypervisor and the second hypervisor are different, and the second virtual machine includes an update unit (231) that updates the second virtual machine using the file by accessing the storage unit or using the file delivered by the delivery unit.

なお、特許請求の範囲、及び本項に記載した発明の構成要件に付した括弧内の番号は、本発明と後述の実施形態との対応関係を示すものであり、本発明を限定する趣旨ではない。 The numbers in parentheses attached to the constituent elements of the invention described in the claims and this section indicate the correspondence between the present invention and the embodiments described below, and are not intended to limit the present invention.

本開示の電子制御装置、ソフトウェア更新方法、ソフトウェア更新プログラム、及び電子制御システムにより、仮想マシンのソフトウェアの更新に要する時間を短縮することが可能となる。 The electronic control device, software update method, software update program, and electronic control system disclosed herein can reduce the time required to update software on a virtual machine.

実施形態1、2の電子制御装置、及び当該電子制御装置を備える電子制御システムを説明する図FIG. 1 is a diagram for explaining an electronic control device according to a first and second embodiment, and an electronic control system including the electronic control device; 実施形態1の電子制御システム全体の動作を説明する図FIG. 1 is a diagram for explaining the operation of the entire electronic control system according to the first embodiment. 実施形態1、2の配信制御部の動作を説明する図FIG. 1 is a diagram for explaining the operation of a distribution control unit according to the first and second embodiments. 実施形態1、2の更新部の動作を説明する図FIG. 1 is a diagram for explaining the operation of an update unit according to the first and second embodiments. 実施形態2の実ストレージの保存領域を説明する図FIG. 13 is a diagram for explaining a storage area of a real storage according to the second embodiment. 実施形態2の第1の仮想マシンの判定部による判定方法を説明する図FIG. 11 is a diagram for explaining a determination method performed by a determination unit of a first virtual machine according to the second embodiment; 実施形態2の電子制御システム全体の動作を説明する図FIG. 10 is a diagram for explaining the operation of the entire electronic control system according to the second embodiment. 実施形態2の変形例の第1の仮想マシンの判定部による判定方法を説明する図FIG. 13 is a diagram for explaining a determination method performed by a determination unit of a first virtual machine in a modified example of the second embodiment. 実施形態1、2の電子制御装置、及び当該電子制御装置を備える電子制御システムの変形例を説明する図FIG. 1 is a diagram for explaining a modification of the electronic control device according to the first and second embodiments and an electronic control system including the electronic control device; 実施形態1、2の電子制御システムを適用するドメイン・アーキテクチャを説明する図FIG. 1 is a diagram for explaining a domain architecture to which the electronic control system according to the first and second embodiments is applied;

以下、本発明の実施形態について、図面を参照して説明する。 The following describes an embodiment of the present invention with reference to the drawings.

なお、本発明とは、特許請求の範囲又は課題を解決するための手段の項に記載された発明を意味するものであり、以下の実施形態に限定されるものではない。また、少なくともかぎ括弧内の語句は、特許請求の範囲又は課題を解決するための手段の項に記載された語句を意味し、同じく以下の実施形態に限定されるものではない。 The present invention refers to the invention described in the claims or in the Means for Solving the Problems section, and is not limited to the following embodiments. Furthermore, at least the words in quotation marks refer to the words described in the claims or in the Means for Solving the Problems section, and are not limited to the following embodiments.

特許請求の範囲の従属項に記載の構成及び方法は、特許請求の範囲の独立項に記載の発明において任意の構成及び方法である。従属項に記載の構成及び方法に対応する実施形態の構成及び方法、並びに特許請求の範囲に記載がなく実施形態のみに記載の構成及び方法は、本発明において任意の構成及び方法である。特許請求の範囲の記載が実施形態の記載よりも広い場合における実施形態に記載の構成及び方法も、本発明の構成及び方法の例示であるという意味で、本発明において任意の構成及び方法である。いずれの場合も、特許請求の範囲の独立項に記載することで、本発明の必須の構成及び方法となる。 The configurations and methods described in the dependent claims of the claims are optional configurations and methods in the invention described in the independent claims of the claims. The configurations and methods of the embodiments corresponding to the configurations and methods described in the dependent claims, and the configurations and methods described only in the embodiments without being described in the claims, are optional configurations and methods in the present invention. The configurations and methods described in the embodiments when the description of the claims is broader than the description of the embodiments are also optional configurations and methods in the present invention in the sense that they are examples of the configurations and methods of the present invention. In either case, by being described in the independent claims of the claims, they become essential configurations and methods of the present invention.

実施形態に記載した効果は、本発明の例示としての実施形態の構成を有する場合の効果であり、必ずしも本発明が有する効果ではない。 The effects described in the embodiments are the effects when the configuration of the embodiment is an example of the present invention, and are not necessarily the effects of the present invention.

複数の実施形態がある場合、各実施形態に開示の構成は各実施形態のみで閉じるものではなく、実施形態をまたいで組み合わせることが可能である。例えば一の実施形態に開示の構成を、他の実施形態に組み合わせても良い。また、複数の実施形態それぞれに開示の構成を集めて組み合わせても良い。 When there are multiple embodiments, the configurations disclosed in each embodiment are not limited to each embodiment, but can be combined across the embodiments. For example, a configuration disclosed in one embodiment may be combined with another embodiment. Also, the configurations disclosed in each of the multiple embodiments may be collected and combined.

発明が解決しようとする課題に記載した課題は公知の課題ではなく、本発明者が独自に知見したものであり、本発明の構成及び方法と共に発明の進歩性を肯定する事実である。 The problem described in the problem that the invention is intended to solve is not a publicly known problem, but was discovered independently by the inventor, and this fact, together with the configuration and method of the present invention, affirms the inventive step of the invention.

1.各実施形態に共通する構成
図1を用いて、各実施形態の電子制御装置、及び当該電子制御装置を備える電子制御システムを説明する。各実施形態の電子制御装置及び電子制御システムは、「移動体」である車両に「搭載」される車載装置及び車載システムを想定しているが、これらに限定されるものではない。
1. Configuration common to each embodiment An electronic control device of each embodiment and an electronic control system including the electronic control device will be described with reference to Fig. 1. The electronic control device and electronic control system of each embodiment are assumed to be an in-vehicle device and an in-vehicle system "mounted" on a vehicle, which is a "moving body", but are not limited thereto.

ここで、「移動体」とは、移動可能な物体をいい、移動速度は任意である。また移動体が停止している場合も当然含む。例えば、自動車、自動二輪車、自転車、歩行者、船舶、航空機、及びこれらに搭載される物を含み、またこれらに限らない。
また、「搭載」される、とは、移動体に直接固定されている場合の他、移動体に固定されていないが移動体と共に移動する場合も含む。例えば、移動体に乗った人が所持している場合、移動体に載置された積荷に搭載されている場合、が挙げられる。
Here, the term "mobile body" refers to an object that can move and can move at any speed. It also includes cases where the moving body is stationary. For example, it includes, but is not limited to, automobiles, motorcycles, bicycles, pedestrians, ships, aircraft, and objects mounted on these vehicles.
In addition, "mounted" includes not only the case where the device is directly fixed to the moving body, but also the case where the device is not fixed to the moving body but moves with the moving body, such as the case where the device is carried by a person riding on the moving body, or the case where the device is mounted on cargo placed on the moving body.

電子制御システム1は、複数の「電子制御装置」(以下、ECU:Electronic Control Unit)から構成されるシステムである。図1は、2つのECU(ECU10、ECU20)を備える電子制御システム1を示しているが、任意の数のECUから構成される。ECU10及びECU20は、例えば、CAN(Controller Area Network)やLIN(Local Interconnect Network)といった車載ネットワーク、イーサネット(登録商標)、無線通信ネットワークを介して接続されている。 The electronic control system 1 is a system that is made up of multiple "electronic control devices" (hereinafter, ECUs: Electronic Control Units). Although FIG. 1 shows the electronic control system 1 that includes two ECUs (ECU10, ECU20), the system may be made up of any number of ECUs. The ECU10 and ECU20 are connected via, for example, an in-vehicle network such as a Controller Area Network (CAN) or a Local Interconnect Network (LIN), Ethernet (registered trademark), or a wireless communication network.

ここで、「電子制御装置」は、例えば、主に半導体装置で構成され、CPU(Central Processing Unit)、およびRAM(Random Access Memory)等の揮発性記憶部を有する、いわゆる情報処理装置として構成されていてもよい。この場合、情報処理装置はさらに、フラッシュメモリ等の不揮発性記憶部、通信ネットワーク等に接続されるネットワークインターフェース部等を有していてもよい。さらに、このような情報処理装置はパッケージ化された半導体装置(素子)であっても、配線基板において各半導体装置が配線接続された構成であってもよい。 Here, the "electronic control device" may be configured as a so-called information processing device, for example, that is mainly composed of semiconductor devices and has a volatile storage unit such as a CPU (Central Processing Unit) and a RAM (Random Access Memory). In this case, the information processing device may further have a non-volatile storage unit such as a flash memory, a network interface unit connected to a communication network, etc. Furthermore, such an information processing device may be a packaged semiconductor device (element), or may be configured such that each semiconductor device is wired and connected on a wiring board.

ECU10は例えば、AUTOSAR(AUTomotive Open System ARchitecture)においてAdaptive Platform(以下、AP)と呼ばれる、動的な機能の拡張が可能なプラットフォームをベースとしたECUである。APは主に、自動運転用のECUに適したプラットフォームである。また、ECU20は例えば、AUTOSARにおいてClassic Platform(以下、CP)と呼ばれる、静的な機能を最適化したプラットフォームをベースとしたECUである。CPは主に、車両制御用のECUに適したプラットフォームである。 The ECU 10 is, for example, an ECU based on a platform that allows dynamic function expansion, called the Adaptive Platform (hereinafter, AP) in AUTOSAR (AUTomotive Open System ARchitecture). The AP is a platform that is mainly suitable for ECUs for autonomous driving. The ECU 20 is, for example, an ECU based on a platform that optimizes static functions, called the Classic Platform (hereinafter, CP) in AUTOSAR. The CP is a platform that is mainly suitable for ECUs for vehicle control.

電子制御システム1を構成するECU10、ECU20はいずれも、ハイパーバイザによって管理される1以上の仮想マシンを有する。以下に、ECU10、ECU20、及び各ECUに搭載される仮想マシンの構成を説明する。図においては、仮想マシンをVM(Virtual Machine)と略する。 Each of the ECUs 10 and 20 that make up the electronic control system 1 has one or more virtual machines managed by a hypervisor. The configuration of the ECUs 10 and 20 and the virtual machines installed in each ECU is described below. In the diagram, the virtual machines are abbreviated as VM (Virtual Machine).

(1)ECU10について
ECU10は、ハイパーバイザ(HV)110及びハイパーバイザ120、これらのハイパーバイザによって管理される複数の仮想マシン(140、150、160)、並びにハードウェアである実ストレージ130を備える。
(1) Regarding ECU 10 ECU 10 includes a hypervisor (HV) 110, a hypervisor 120, a plurality of virtual machines (140, 150, 160) managed by these hypervisors, and a real storage 130 which is hardware.

ハイパーバイザ110及びハイパーバイザ120は、ECU10を仮想化するソフトウェアである。図1の例では、第1の仮想マシン140及び第2の仮想マシン150はハイパーバイザ110上に構築され、第3の仮想マシン160はハイパーバイザ120上に構築される。ハイパーバイザ上に構築された仮想マシン同士はそれぞれ仮想的に「接続」されている。 Hypervisor 110 and hypervisor 120 are software that virtualizes ECU 10. In the example of FIG. 1, a first virtual machine 140 and a second virtual machine 150 are constructed on hypervisor 110, and a third virtual machine 160 is constructed on hypervisor 120. The virtual machines constructed on the hypervisors are virtually "connected" to each other.

ここで、仮想マシンに「接続」とは、仮想マシン同士でデータのやり取りが可能な状態をいい、同一のハードウェア上で実現された仮想マシン同士が仮想的に接続されている場合の他、異なるハードウェア上で実現された仮想マシン同士がネットワーク等を介して接続されている場合も含む。また、データのやり取りが可能な状態とは、必ずしも実際にデータのやり取りが可能である必要はない。例えば、一方の仮想マシンが何らかのトラブルで一時的に停止していたり、スリープ状態にある場合であってもデータのやり取りが可能な状態である。 Here, "connecting" virtual machines refers to a state in which virtual machines can exchange data with each other, and includes cases in which virtual machines realized on the same hardware are virtually connected, as well as cases in which virtual machines realized on different hardware are connected via a network, etc. Also, a state in which data exchange is possible does not necessarily mean that data exchange is actually possible. For example, it is a state in which data exchange is possible even if one of the virtual machines is temporarily stopped due to some kind of trouble or is in a sleep state.

実ストレージ(「保存部」に相当)130は、ハードウェアのメモリであり、SRAMやDRAMといった揮発性メモリ、ROM、フラッシュメモリ、又はハードディスク等の不揮発性メモリである。後述する第1の仮想マシン140乃至第3の仮想マシン160の仮想ストレージは、実ストレージ130の保存領域を仮想化して実現される。実ストレージ130は、ECU10のハイパーバイザが管理する保存領域である。図1では、一の実ストレージ130を示しているが、実ストレージ130は複数のストレージによって実現するものであってもよい。 The real storage (corresponding to a "storage unit") 130 is a hardware memory, and may be a volatile memory such as an SRAM or DRAM, or a non-volatile memory such as a ROM, flash memory, or a hard disk. The virtual storage of the first virtual machine 140 to the third virtual machine 160 described below is realized by virtualizing the storage area of the real storage 130. The real storage 130 is a storage area managed by the hypervisor of the ECU 10. Although one real storage 130 is shown in FIG. 1, the real storage 130 may be realized by multiple storages.

実ストレージ130は、後述するファイル分割部145で分割処理された更新ファイルを保存する。更新ファイルが保存される実ストレージ130の領域は、複数の仮想マシンで共有される共有保存領域であってもよく、あるいは、実ストレージ130の保存領域を仮想化して実現される仮想ストレージの領域であってもよい。ただし、共有保存領域は複数の仮想マシンで共有されるため、セキュリティ性が低くなるおそれがある。そのため、共有保存領域に更新ファイルを保存する場合、各仮想マシンは、共有保存領域に保存された更新ファイルを用いて仮想マシンのソフトウェアを更新する場合に限り、共有保存領域にアクセス可能となることが望ましい。つまり、共有保存領域に保存された更新ファイルを用いて更新しない場合には、仮想マシンから当該共有保存領域へのアクセスは制限される。 The real storage 130 stores the update files that have been split by the file splitting unit 145, which will be described later. The area of the real storage 130 where the update files are stored may be a shared storage area shared by multiple virtual machines, or may be a virtual storage area realized by virtualizing the storage area of the real storage 130. However, since the shared storage area is shared by multiple virtual machines, there is a risk of security being reduced. Therefore, when saving update files in the shared storage area, it is desirable that each virtual machine be able to access the shared storage area only when updating the virtual machine software using the update file saved in the shared storage area. In other words, when updating is not performed using the update file saved in the shared storage area, access from the virtual machine to the shared storage area is restricted.

(i)第1の仮想マシン140について (i) Regarding the first virtual machine 140

ハイパーバイザ110によって管理される第1の仮想マシン140は、ファイル取得部141、配信制御部142、更新部143、及び仮想ストレージ144を有する。 The first virtual machine 140 managed by the hypervisor 110 has a file acquisition unit 141, a delivery control unit 142, an update unit 143, and a virtual storage 144.

ファイル取得部141は、車両制御システム1の外部に設けられたサーバ装置からOTA(Over The Air)又は有線通信を用いてファイルを取得する。ファイル取得部141が取得するファイルは、仮想マシンのソフトウェアを更新するための更新ファイルを含み、例えば、複数の仮想マシンを更新するための複数の更新ファイルを含む更新ファイル群であってもよい。ファイルはさらに、ソフトウェアを更新すべき対象の仮想マシンを特定する情報を含んでもよい。ファイル取得部141は、取得した更新ファイル群を配信制御部142に転送する。ファイル取得部141は、OTAクライアントとも称される。仮想マシンのソフトウェアを更新するための更新ファイルとは、仮想マシンを実現するソフトウェアを更新するものはもちろん、仮想マシン上に搭載されたアプリケーションやソフトウェアを更新するものであってもよい。 The file acquisition unit 141 acquires files from a server device provided outside the vehicle control system 1 using OTA (Over The Air) or wired communication. The files acquired by the file acquisition unit 141 include an update file for updating the software of a virtual machine, and may be, for example, an update file group including multiple update files for updating multiple virtual machines. The file may further include information identifying the virtual machine whose software should be updated. The file acquisition unit 141 transfers the acquired update file group to the distribution control unit 142. The file acquisition unit 141 is also referred to as an OTA client. The update file for updating the software of a virtual machine may be one that updates the software that realizes the virtual machine, as well as one that updates applications or software installed on the virtual machine.

配信制御部142は、ファイル取得部141から転送されたファイルを更新対象の仮想マシンに配信するために必要な一連の処理を行う。配信制御部142は、ファイル分割部145、判定部146、配信部147、更新指示部148を実現する。配信制御部142は例えば、AUTOSARにおいてUCM(Update and Configuration Management)マスタと称される機能の一部又は全部を実行するものである。 The distribution control unit 142 performs a series of processes required to distribute the file transferred from the file acquisition unit 141 to the virtual machine to be updated. The distribution control unit 142 realizes a file division unit 145, a determination unit 146, a distribution unit 147, and an update instruction unit 148. The distribution control unit 142 executes, for example, some or all of the functions referred to as a UCM (Update and Configuration Management) master in AUTOSAR.

ファイル分割部145は、ファイル取得部141から転送された更新ファイル群を、各仮想マシンそれぞれの更新ファイルに分割するパース処理を行う。パース処理した更新ファイルは、実ストレージ130に保存する。 The file division unit 145 performs a parsing process to divide the update files transferred from the file acquisition unit 141 into update files for each virtual machine. The parsed update files are stored in the real storage 130.

判定部146は、第1の仮想マシン140に接続された複数の仮想マシンのうち、更新対象の仮想マシンを判定する。更新対象の仮想マシンであるかどうかは、ファイル取得部141が取得したファイルに含まれる、更新対象の仮想マシンを特定する情報に基づいて判定することができる。以下の実施形態では、図1に示す全ての仮想マシンが更新対象の仮想マシンである場合を説明する。 The determination unit 146 determines which of the multiple virtual machines connected to the first virtual machine 140 is the virtual machine to be updated. Whether or not the virtual machine is the virtual machine to be updated can be determined based on information that identifies the virtual machine to be updated and that is included in the file acquired by the file acquisition unit 141. In the following embodiment, a case will be described in which all the virtual machines shown in FIG. 1 are the virtual machines to be updated.

判定部146はさらに、更新ファイルを更新対象の仮想マシンに配信するかどうかを判定する。判定部146が更新ファイルを更新対象の仮想マシンに配信するかどうかを判定する方法は、実施形態1、2で後述する。 The determination unit 146 further determines whether to deliver the update file to the virtual machine to be updated. The method by which the determination unit 146 determines whether to deliver the update file to the virtual machine to be updated will be described later in the first and second embodiments.

更新対象の仮想マシン、及び更新ファイルを配信するかどうかの判定に際し、判定部146は、各仮想マシンに対し、仮想マシンに関する情報を問い合わせる検索処理を行ってもよい。例えば、判定部146は、仮想マシンを管理するハイパーバイザ、仮想マシンが搭載されたECU、又はECUの機能や構成に関する情報を問い合わせる検索信号を、第1の仮想マシン140に接続された仮想マシンに送信する。 When determining which virtual machines are to be updated and whether to distribute the update file, the determination unit 146 may perform a search process to inquire about information about the virtual machines from each virtual machine. For example, the determination unit 146 transmits a search signal to the virtual machines connected to the first virtual machine 140, inquiring about information about the hypervisor that manages the virtual machines, the ECU in which the virtual machines are installed, or the functions and configuration of the ECU.

判定部146は、全ての更新対象の仮想マシンにおいてソフトウェアの更新が完了した場合、ファイル取得部141に更新が完了したことを通知する。 When the software update is completed for all virtual machines to be updated, the determination unit 146 notifies the file acquisition unit 141 that the update is complete.

配信部147は、判定部146が更新ファイルを配信すると判定した場合、ファイル分割部145で分割した更新ファイルを、通信ネットワークを介して送ることにより仮想マシンに配信する。配信部147は、判定部146からの配信指示を受けて、更新ファイルを仮想マシンに配信してもよい。なお、本開示において更新ファイルを「配信」するとは、通信ネットワークを介して更新ファイルを送信することの他、更新ファイルの保存領域を特定の仮想マシンがアクセス可能な領域に移動させることも含む。 When the determination unit 146 determines that the update file should be distributed, the distribution unit 147 distributes the update file divided by the file division unit 145 to the virtual machine by sending it via a communication network. The distribution unit 147 may distribute the update file to the virtual machine upon receiving a distribution instruction from the determination unit 146. Note that in this disclosure, "distributing" the update file includes not only sending the update file via a communication network, but also moving the storage area of the update file to an area accessible by a specific virtual machine.

更新指示部148は、更新対象の各仮想マシンに対して仮想マシンのソフトウェアの更新を指示する。判定部146が更新ファイルを配信すると判定した仮想マシンに対しては、更新指示部148は、配信部147が配信する更新ファイルを用いて仮想マシンのソフトウェアを更新することを指示する。判定部146が更新ファイルを配信しないと判定した仮想マシンに対しては、更新指示部148は、実ストレージ130にアクセスすることにより、実ストレージ130に保存されている更新ファイルを用いて仮想マシンのソフトウェアを更新することを指示する。 The update instruction unit 148 instructs each virtual machine to be updated to update the virtual machine software. For virtual machines for which the determination unit 146 has determined that an update file should be delivered, the update instruction unit 148 instructs the virtual machine software to be updated using the update file delivered by the delivery unit 147. For virtual machines for which the determination unit 146 has determined that an update file should not be delivered, the update instruction unit 148 instructs the virtual machine software to be updated using the update file stored in the real storage 130 by accessing the real storage 130.

更新指示部148の更新指示は、更新ファイルの保存先を示すアドレスを示すものであってもよい。例えば、更新指示が、更新ファイルの保存先のアドレスを示すことにより、当該更新ファイルを用いて仮想マシンのソフトウェアを更新することを間接的に指示することができる。また、更新指示が、更新ファイルを保存した実ストレージ130のアドレスを示すことにより、実ストレージ130にアクセスすることにより実ストレージ130に保存されている更新ファイルを用いて仮想マシンのソフトウェアを更新することを間接的に指示することができる。更新指示はさらに、仮想マシンに更新ファイルを配信するかどうかを示す情報を含んでもよい。 The update instruction of the update instruction unit 148 may indicate an address indicating the destination of the update file. For example, the update instruction may indicate the address of the destination of the update file, thereby indirectly instructing that the software of the virtual machine be updated using the update file. Furthermore, the update instruction may indicate the address of the real storage 130 in which the update file is stored, thereby indirectly instructing that the software of the virtual machine be updated using the update file stored in the real storage 130 by accessing the real storage 130. The update instruction may further include information indicating whether to distribute the update file to the virtual machine.

更新部143は、更新指示部148からの指示に基づいて、第1の仮想マシン140のソフトウェアを更新する。更新部143は、第1の仮想マシン140のソフトウェアの更新処理が完了すると、配信制御部142に更新が完了したことを通知する。更新部143及び後述する他の仮想マシンの更新部151、161、231は例えば、AUTOSARにおいてUCMサブオーディネイト(UCM subordinate)と称される機能の一部又は全部を実行するものである。 The update unit 143 updates the software of the first virtual machine 140 based on instructions from the update instruction unit 148. When the update process of the software of the first virtual machine 140 is completed, the update unit 143 notifies the delivery control unit 142 that the update is complete. The update unit 143 and update units 151, 161, and 231 of other virtual machines described below, for example, execute some or all of the functions called UCM subordinate in AUTOSAR.

仮想ストレージ144は、実ストレージ130の保存領域を仮想化することで、第1の仮想マシン140に仮想的に設けられた保存領域である。そのため、仮想ストレージ144に保存されたファイルは、実ストレージ130に保存されたファイルであるとも観念される。以下に説明する第2の仮想マシン150の仮想ストレージ152、第3の仮想マシン160の仮想ストレージ162についても同様である。 The virtual storage 144 is a storage area virtually provided in the first virtual machine 140 by virtualizing the storage area of the real storage 130. Therefore, files stored in the virtual storage 144 are also considered to be files stored in the real storage 130. The same applies to the virtual storage 152 of the second virtual machine 150 and the virtual storage 162 of the third virtual machine 160 described below.

(ii)第2の仮想マシン150、第3の仮想マシン160について
第2の仮想マシン150は、第1の仮想マシン140と同様、ハイパーバイザ110によって管理される仮想マシンである。第2の仮想マシン150は、更新部151、仮想ストレージ152を有する。
(ii) Regarding the second virtual machine 150 and the third virtual machine 160 The second virtual machine 150, like the first virtual machine 140, is a virtual machine managed by the hypervisor 110. The second virtual machine 150 includes an update unit 151 and a virtual storage 152.

第3の仮想マシン160は、第1の仮想マシン140及び第2仮想マシン150とは異なり、ハイパーバイザ120によって管理される仮想マシンである。第3の仮想マシン160は、更新部161、仮想ストレージ162を有する。 The third virtual machine 160 is different from the first virtual machine 140 and the second virtual machine 150 and is a virtual machine managed by the hypervisor 120. The third virtual machine 160 has an update unit 161 and a virtual storage 162.

更新部151及び更新部161は、第1の仮想マシン140の更新指示部148からの更新指示に基づいて、それぞれの仮想マシンのソフトウェアの更新を行う。更新部151及び更新部161は、ソフトウェアの更新処理が完了すると、第1の仮想マシン140の配信制御部142に更新が完了したことを通知する。 The update unit 151 and the update unit 161 update the software of each virtual machine based on an update instruction from the update instruction unit 148 of the first virtual machine 140. When the software update process is completed, the update unit 151 and the update unit 161 notify the delivery control unit 142 of the first virtual machine 140 that the update has been completed.

仮想ストレージ152及び仮想ストレージ162は、第2の仮想マシン150及び第3の仮想マシン160にそれぞれ仮想的に設けられた保存領域である。第1の仮想マシン140の配信部147から更新ファイルが配信された場合、更新ファイルはそれぞれの仮想ストレージ152、162に保存される。 Virtual storage 152 and virtual storage 162 are storage areas virtually provided in second virtual machine 150 and third virtual machine 160, respectively. When an update file is distributed from distribution unit 147 of first virtual machine 140, the update file is stored in each of virtual storages 152 and 162.

上述したとおり、第2の仮想マシン150及び第3の仮想マシン160は、第1の仮想マシン140と仮想的に接続されており、これらの仮想マシン間ではデータのやり取りが可能である。 As described above, the second virtual machine 150 and the third virtual machine 160 are virtually connected to the first virtual machine 140, and data can be exchanged between these virtual machines.

(2)ECU20について
ECU20は、ハイパーバイザ210、ハードウェアである実ストレージ220、及びハイパーバイザ210によって管理される第4の仮想マシン230を備える。
(2) Regarding the ECU 20 The ECU 20 includes a hypervisor 210 , a real storage 220 which is hardware, and a fourth virtual machine 230 which is managed by the hypervisor 210 .

ECU10とECU20とは車載ネットワークで接続されており、ECU10が有する第1の仮想マシン140と、ECU20が有する第4の仮想マシン230とは、車載ネットワークを介して仮想的に接続されている。 ECU10 and ECU20 are connected via an in-vehicle network, and the first virtual machine 140 of ECU10 and the fourth virtual machine 230 of ECU20 are virtually connected via the in-vehicle network.

ハイパーバイザ210は、ECU20を仮想化するソフトウェアである。第4の仮想マシン230はハイパーバイザ210上に構築される。 The hypervisor 210 is software that virtualizes the ECU 20. The fourth virtual machine 230 is built on the hypervisor 210.

実ストレージ220は、ECU10の実ストレージ130と同様、ハードウェアのメモリであり、SRAMやDRAMといった揮発性メモリ、ROM、フラッシュメモリ、又はハードディスク等の不揮発性メモリである。 The real storage 220, like the real storage 130 of the ECU 10, is a hardware memory, and is a volatile memory such as SRAM or DRAM, a ROM, a flash memory, or a non-volatile memory such as a hard disk.

ECU20が有する第4の仮想マシン230は、上述した第2の仮想マシン150及び第3の仮想マシン160と同様、更新部231及び仮想ストレージ232を有する。 The fourth virtual machine 230 of the ECU 20 has an update unit 231 and a virtual storage 232, similar to the second virtual machine 150 and the third virtual machine 160 described above.

更新部231は、第1の仮想マシン140の更新指示部148からの更新指示に基づいて第4の仮想マシン230のソフトウェアの更新を行い、ソフトウェアの更新処理が完了すると第1の仮想マシン140の配信制御部142に更新が完了したことを通知する。 The update unit 231 updates the software of the fourth virtual machine 230 based on an update instruction from the update instruction unit 148 of the first virtual machine 140, and when the software update process is completed, notifies the delivery control unit 142 of the first virtual machine 140 that the update has been completed.

仮想ストレージ232は、実ストレージ220に仮想的に設けられた保存領域である。配信部147から更新ファイルが配信された場合、更新ファイルを仮想ストレージ232に保存してもよい。 The virtual storage 232 is a storage area that is virtually provided in the real storage 220. When an update file is distributed from the distribution unit 147, the update file may be stored in the virtual storage 232.

(3)小括
以上、実施形態1、2に共通する電子制御装置、及び電子システムの構成を説明した。
なお、図1は、ECU10が2つのハイパーバイザ(110、120)を有し、ECU20が1つのハイパーバイザ(210)を有する例を示しているが、ハイパーバイザの数は一例にすぎず、これらに限定されるものではない。つまり、ECU10が1つのハイパーバイザのみを有し、ECU20が2以上のハイパーバイザを有する構成としてもよい。また、ハイパーバイザ上に構築される仮想マシンの数についても任意である。
(3) Summary The configurations of the electronic control device and the electronic system common to the first and second embodiments have been described above.
1 shows an example in which the ECU 10 has two hypervisors (110, 120) and the ECU 20 has one hypervisor (210), but the number of hypervisors is merely an example and is not limited thereto. In other words, the ECU 10 may have only one hypervisor and the ECU 20 may have two or more hypervisors. In addition, the number of virtual machines built on the hypervisors is also arbitrary.

また、第1の仮想マシン140のみが、ファイル取得部及び配信制御部の機能を有する構成を説明したが、他の仮想マシンも第1の仮想マシン10と同様、これらの機能を有してもよい。 In addition, although a configuration has been described in which only the first virtual machine 140 has the functions of a file acquisition unit and a distribution control unit, other virtual machines may also have these functions, similar to the first virtual machine 10.

2.実施形態1
本実施形態では、更新対象の仮想マシンのハイパーバイザが所定の条件を満たすかどうかに応じて、更新ファイルを更新対象の仮想マシンに配信するかどうかを判定する構成を説明する。
2. Embodiment 1
In this embodiment, a configuration will be described in which it is determined whether or not to deliver an update file to a virtual machine to be updated depending on whether the hypervisor of the virtual machine to be updated satisfies a predetermined condition.

(1)第1の仮想マシン140の構成
本実施形態の判定部146は、配信制御部142を有する第1の仮想マシン140(「第1の仮想マシン」に相当)を管理するハイパーバイザ(「第1のハイパーバイザ」に相当)110と、更新対象の仮想マシン(「第2の仮想マシン」に相当)を管理するハイパーバイザ(「第2のハイパーバイザ」に相当)とが「同じ」かどうかを判定する。ハイパーバイザが同じであると判定した場合、判定部146は更新ファイルを更新対象の仮想マシンに配信しないと判定する。一方、ハイパーバイザが異なると判定した場合、判定部146は更新ファイルを更新対象の仮想マシンに配信すると判定する。
(1) Configuration of the First Virtual Machine 140 The determination unit 146 of this embodiment determines whether the hypervisor (corresponding to the "first hypervisor") 110 that manages the first virtual machine 140 (corresponding to the "first virtual machine") having the delivery control unit 142 is the same as the hypervisor (corresponding to the "second hypervisor") that manages the virtual machine to be updated (corresponding to the "second virtual machine"). If it is determined that the hypervisors are the same, the determination unit 146 determines that the update file will not be delivered to the virtual machine to be updated. On the other hand, if it is determined that the hypervisors are different, the determination unit 146 determines that the update file will be delivered to the virtual machine to be updated.

ここで、「同じ」とは、ハイパーバイザが共通である場合の他、ハイパーバイザが別であっても機能や作用が同じ場合を含む。 Here, "same" includes cases where the hypervisor is the same, as well as cases where the functions and actions are the same even if the hypervisor is different.

判定部146は、各仮想マシンの更新部に送信した検索信号に対する、各仮想マシンからの応答信号に基づいて、ハイパーバイザ110と更新対象の仮想マシンを管理するハイパーバイザとが同じかどうかを判定する。したがって、本実施形態の応答信号には、各仮想マシンを管理するハイパーバイザを特定することが可能な情報、例えば、ハイパーバイザの識別IDが含まれる。 The determination unit 146 determines whether the hypervisor 110 is the same as the hypervisor that manages the virtual machine to be updated, based on a response signal from each virtual machine in response to a search signal sent to the update unit of each virtual machine. Therefore, the response signal in this embodiment includes information that can identify the hypervisor that manages each virtual machine, such as a hypervisor identification ID.

なお、判定部146は、第1の仮想マシン140の更新部143に対しても、他の仮想マシンの更新部と同様に検索信号を送信してもよい。この場合、判定部146は当然のことながら、更新部143からの応答信号に基づいて、ハイパーバイザ110と、更新対象の仮想マシンである第1の仮想マシン140を管理するハイパーバイザとが同じであると判定する。 The determination unit 146 may also send a search signal to the update unit 143 of the first virtual machine 140 in the same manner as to the update units of other virtual machines. In this case, the determination unit 146 naturally determines, based on the response signal from the update unit 143, that the hypervisor 110 is the same as the hypervisor that manages the first virtual machine 140, which is the virtual machine to be updated.

図1の例では、第1の仮想マシン140を管理するハイパーバイザと、第2の仮想マシン150を管理するハイパーバイザはいずれもハイパーバイザ110であって、同じである。そこで、判定部146は、第2の仮想マシン150には更新ファイルを配信しないと判定する。 In the example of FIG. 1, the hypervisor that manages the first virtual machine 140 and the hypervisor that manages the second virtual machine 150 are both hypervisor 110, and are the same. Therefore, the determination unit 146 determines not to distribute the update file to the second virtual machine 150.

第1の仮想マシン140を管理するハイパーバイザ110と、第3の仮想マシン160を管理するハイパーバイザ120とは異なるハイパーバイザである。そこで、判定部146は、第3の仮想マシン160に更新ファイルを配信すると判定する。 The hypervisor 110 that manages the first virtual machine 140 and the hypervisor 120 that manages the third virtual machine 160 are different hypervisors. Therefore, the determination unit 146 determines that the update file should be delivered to the third virtual machine 160.

同様に、第1の仮想マシン140を管理するハイパーバイザ110と、第4の仮想マシン230を管理するハイパーバイザ210とは異なるハイパーバイザである。そこで、判定部146は、第4の仮想マシン230に更新ファイルを配信すると判定する。 Similarly, the hypervisor 110 that manages the first virtual machine 140 and the hypervisor 210 that manages the fourth virtual machine 230 are different hypervisors. Therefore, the determination unit 146 determines that the update file should be delivered to the fourth virtual machine 230.

以下の実施形態では、判定部146が、応答信号に基づいて、ハイパーバイザ110と、更新対象の仮想マシンを管理するハイパーバイザとが同じかどうかを判定する構成を説明している。しかしながら、判定部146は、応答信号によらずにハイパーバイザを判定してもよい。例えば、車載システムにおいて、各仮想マシンがいずれのハイパーバイザによって管理されるものであるか予め把握される場合、ファイル取得部141や配信制御部142が、仮想マシン及び各仮想マシンを管理するハイパーバイザの情報を予め有していることが想定される。このような場合は、判定部146は応答信号を利用せず、ファイル取得部141からの指示、又は配信制御部142が有する情報に基づいて、ハイパーバイザ110と、更新対象の仮想マシンを管理するハイパーバイザとが同じかどうかを判定してもよい。 In the following embodiment, a configuration is described in which the determination unit 146 determines whether the hypervisor 110 is the same as the hypervisor that manages the virtual machine to be updated, based on the response signal. However, the determination unit 146 may determine the hypervisor without relying on the response signal. For example, in an in-vehicle system, if it is known in advance which hypervisor manages each virtual machine, it is assumed that the file acquisition unit 141 and the delivery control unit 142 have information on the virtual machines and the hypervisors that manage each virtual machine in advance. In such a case, the determination unit 146 may determine whether the hypervisor 110 is the same as the hypervisor that manages the virtual machine to be updated, based on an instruction from the file acquisition unit 141 or information held by the delivery control unit 142, without using the response signal.

なお、本実施形態では、ECU10の2つのハイパーバイザ(110、120)が異なるハイパーバイザである場合を例に挙げて説明している。しかしながら、ハイパーバイザ110、120が1つのホストOS上に設けられている場合には、判定部146はハイパーバイザ110、120が同じであると判定してもよい。複数のハイパーバイザが1つのホストOS上に設けられている場合、それぞれのハイパーバイザ上に構築されるゲストOSは実ストレージ130内の同じ領域にアクセスすることができる。この場合、ハイパーバイザ110、120は、同じ領域にアクセス可能なゲストOSを構築しているという点で機能や作用が同じである。このように、ハイパーバイザ110、120の機能や作用が同じである場合には、判定部146は、2つのハイパーバイザが「同じ」であると判定してもよい。 In this embodiment, the two hypervisors (110, 120) of the ECU 10 are different hypervisors. However, if the hypervisors 110, 120 are provided on one host OS, the determination unit 146 may determine that the hypervisors 110, 120 are the same. If multiple hypervisors are provided on one host OS, the guest OSs built on each hypervisor can access the same area in the real storage 130. In this case, the hypervisors 110, 120 have the same functions and actions in that they build guest OSs that can access the same area. In this way, if the functions and actions of the hypervisors 110, 120 are the same, the determination unit 146 may determine that the two hypervisors are "the same."

配信部147は、ハイパーバイザ110と更新対象の仮想マシンを管理するハイパーバイザとが異なり、判定部146が更新ファイルを配信すると判定した仮想マシンにのみ更新ファイルを配信する。したがって、本実施形態の配信部147は、更新ファイルを第3の仮想マシン160及び第4の仮想マシン230に配信する。 The delivery unit 147 delivers the update file only to virtual machines to which the determination unit 146 has determined that the update file should be delivered, since the hypervisor 110 is different from the hypervisor that manages the virtual machines to be updated. Therefore, the delivery unit 147 of this embodiment delivers the update file to the third virtual machine 160 and the fourth virtual machine 230.

更新指示部148は、更新対象の仮想マシンの更新部に対して、仮想マシンのソフトウェアの更新を指示する。更新指示部148は、第1の仮想マシン140の更新部143及び第2の仮想マシン150の更新部151に対して、実ストレージ130にアクセスすることにより、実ストレージ130に保存された更新ファイルを用いて第2の仮想マシン150のソフトウェアを更新することを指示する。
また、更新指示部148は、第3の仮想マシン160の更新部161及び第4の仮想マシン230の更新部231に対して、配信部147が配信する更新ファイルを用いて、それぞれの仮想マシンのソフトウェアを更新することを指示する。
The update instruction unit 148 instructs the update unit of the virtual machine to be updated to update the software of the virtual machine. The update instruction unit 148 instructs the update unit 143 of the first virtual machine 140 and the update unit 151 of the second virtual machine 150 to access the real storage 130 and update the software of the second virtual machine 150 by using the update file stored in the real storage 130.
In addition, the update instruction unit 148 instructs the update unit 161 of the third virtual machine 160 and the update unit 231 of the fourth virtual machine 230 to update the software of each virtual machine using the update file distributed by the distribution unit 147.

(2)第2の仮想マシン150の構成
第2の仮想マシン150の更新部151は、更新指示部148から更新指示を受信すると、実ストレージ130にアクセスすることにより、実ストレージ130に保存された更新ファイルを参照し、当該更新ファイルを用いて第2の仮想マシン150のソフトウェアを更新する。
(2) Configuration of second virtual machine 150 When the update unit 151 of the second virtual machine 150 receives an update instruction from the update instruction unit 148, it accesses the real storage 130, refers to the update file stored in the real storage 130, and updates the software of the second virtual machine 150 using the update file.

(3)第3の仮想マシン160の構成
第3の仮想マシン160の仮想ストレージ162は、配信部147から配信された更新ファイルを保存する。
第3の仮想マシン160の更新部161は、更新指示部148から更新指示を受信すると、仮想ストレージ162に保存された更新ファイルを用いて、第3の仮想マシン160のソフトウェアを更新する。
(3) Configuration of the Third Virtual Machine 160 The virtual storage 162 of the third virtual machine 160 stores the update file distributed from the distribution unit 147 .
When the update unit 161 of the third virtual machine 160 receives the update instruction from the update instruction unit 148 , the update unit 161 updates the software of the third virtual machine 160 by using the update file stored in the virtual storage 162 .

(4)第4の仮想マシン230の構成
第4の仮想マシン230の実ストレージ220又は仮想ストレージ232は、配信部147から配信された更新ファイルを保存する。更新ファイルの保存先は、実ストレージ220及び仮想ストレージ232のいずれであってもよい。
第4の仮想マシン230の更新部231は、更新指示部148から更新指示を受信すると、実ストレージ220又は仮想ストレージ232に保存された更新ファイルを用いて、第4の仮想マシン230のソフトウェアを更新する。
(4) Configuration of Fourth Virtual Machine 230 The real storage 220 or the virtual storage 232 of the fourth virtual machine 230 stores the update file distributed from the distribution unit 147. The update file may be stored in either the real storage 220 or the virtual storage 232.
When the update unit 231 of the fourth virtual machine 230 receives the update instruction from the update instruction unit 148 , it updates the software of the fourth virtual machine 230 using the update file stored in the real storage 220 or the virtual storage 232 .

(5)電子制御システム1の動作
次に、図2~4を用いて仮想マシンのソフトウェアの更新に関する動作を説明する。図2は電子制御システム1全体の動作を示す図である。図3は、第1の仮想マシン140の配信制御部142の動作を、図4は各仮想マシンが有する更新部の動作をそれぞれ示している。図2に示す符号と、図3、図4に示す符号はそれぞれ対応しており、同じ符号は同じ処理を示している。
(5) Operation of Electronic Control System 1 Next, the operation related to updating software of a virtual machine will be described with reference to Figures 2 to 4. Figure 2 is a diagram showing the operation of the entire electronic control system 1. Figure 3 shows the operation of the distribution control unit 142 of the first virtual machine 140, and Figure 4 shows the operation of the update unit of each virtual machine. The symbols shown in Figure 2 correspond to the symbols shown in Figures 3 and 4, and the same symbols indicate the same processing.

なお、図3、図4に示す配信制御部142及び更新部の動作とは、各電子制御装置(ECU10、ECU20)の動作であるとも観念される。また、各電子制御装置の動作は、電子制御装置で実行されるソフトウェア更新方法を示すだけでなく、電子制御装置で実行可能なソフトウェア更新プログラムの処理手順を示すものである。そして、これらの処理は、図2~図4で示した順序には限定されない。すなわち、あるステップでその前段のステップの結果を利用する関係にある等の制約がない限り、順序を入れ替えてもよい。実施形態2の図7についても同様である。 The operations of the distribution control unit 142 and the update unit shown in Figures 3 and 4 can also be considered as the operations of each electronic control unit (ECU 10, ECU 20). The operations of each electronic control unit do not only indicate the software update method executed by the electronic control unit, but also indicate the processing procedure of the software update program that can be executed by the electronic control unit. These processes are not limited to the order shown in Figures 2 to 4. In other words, the order may be changed as long as there are no constraints, such as a relationship in which a certain step uses the result of the previous step. The same applies to Figure 7 in embodiment 2.

まず、図2、図3を用いて、主に配信制御部142の動作を説明する。
配信制御部142は、ファイル取得部141から転送された更新ファイル群を受信する(図2、図3:S101)。この更新ファイル群は仮想マシンのソフトウェアを更新するためのファイルであり、ファイル取得部141が電子制御システム1の外部のサーバ装置から取得したファイルである。
配信制御部142のファイル分割部145は、S101で受信した更新ファイル群を、各仮想マシンの更新ファイルに分割するパース処理を行う(図2、図3:S102)。
ファイル分割部145は、S102で分割した更新ファイルを実ストレージ130に保存する(図2、図3:S103)。
配信制御部142の判定部146は、更新対象の仮想マシンに更新ファイルを配信するかどうかを判定するために、仮想マシンに関する情報を問い合わせる内容の検索信号を各仮想マシンに送信する(図2、図3:S104)。
First, the operation of the distribution control unit 142 will be mainly described with reference to FIG. 2 and FIG.
The distribution control unit 142 receives the update file group transferred from the file acquisition unit 141 (FIGS. 2 and 3: S101). The update file group is files for updating the software of the virtual machine, and is the file acquired by the file acquisition unit 141 from a server device external to the electronic control system 1.
The file division unit 145 of the distribution control unit 142 performs a parsing process to divide the update files received in S101 into update files for each virtual machine (FIGS. 2 and 3: S102).
The file division unit 145 stores the updated files divided in S102 in the real storage 130 (FIGS. 2 and 3: S103).
The determination unit 146 of the distribution control unit 142 transmits a search signal to each virtual machine inquiring about information about the virtual machine in order to determine whether to distribute the update file to the virtual machine to be updated (FIGS. 2 and 3: S104).

判定部146は、第1乃至第4の仮想マシンの更新部(143、151、161、231)から送信された応答信号を受信する(図2、図3:S105)。 The determination unit 146 receives response signals sent from the update units (143, 151, 161, 231) of the first to fourth virtual machines (Figures 2 and 3: S105).

判定部146は、S105で受信した応答信号に基づいて、更新対象の仮想マシンに更新ファイルを配信するかどうかを判定する(図2、図3:S106)。上述したとおり、本実施形態の判定部146は、第1の仮想マシン140を管理するハイパーバイザ110と、更新対象の仮想マシンを管理するハイパーバイザとが同じ場合は更新ファイルを配信せず、ハイパーバイザが異なる場合は更新ファイルを配信すると判定する。 Based on the response signal received in S105, the determination unit 146 determines whether to deliver the update file to the virtual machine to be updated (FIGS. 2 and 3: S106). As described above, the determination unit 146 in this embodiment determines not to deliver the update file if the hypervisor 110 that manages the first virtual machine 140 and the hypervisor that manages the virtual machine to be updated are the same, and determines to deliver the update file if the hypervisors are different.

ここで、S106において更新ファイルを配信しないと判定した場合、配信制御部142の更新指示部148は、実ストレージ130にアクセスすることにより仮想マシンのソフトウェアを更新することを指示する更新指示を送信する(図2、図3:S107)。
一方、S106において更新ファイルを配信すると判定した場合、配信制御部142の更新指示部148は、配信部147が配信する更新ファイルを用いて仮想マシンのソフトウェアを更新することを指示する更新指示を送信する(図2、図3:S108)。
配信制御部142の配信部147は、S106において更新ファイルを配信すると判定した仮想マシン、すなわち、第1のハイパーバイザと、更新対象の仮想マシンを管理するハイパーバイザとが同じであると判定した仮想マシンに更新ファイルを配信する(図2、図3:S109)。本実施形態の配信部147は、第3の仮想マシン160及び第4の仮想マシン230に更新ファイルを配信する。
Here, if it is determined in S106 that the update file will not be distributed, the update instruction unit 148 of the distribution control unit 142 sends an update instruction to update the virtual machine software by accessing the real storage 130 (Figures 2 and 3: S107).
On the other hand, if it is determined in S106 that the update file is to be distributed, the update instruction unit 148 of the distribution control unit 142 sends an update instruction to instruct the virtual machine to update the software using the update file distributed by the distribution unit 147 (Figures 2 and 3: S108).
The distribution unit 147 of the distribution control unit 142 distributes the update file to the virtual machine determined in S106 to be distributed with the update file, i.e., the virtual machine determined to have the same hypervisor as the hypervisor managing the virtual machine to be updated (FIGS. 2 and 3: S109). The distribution unit 147 of this embodiment distributes the update file to the third virtual machine 160 and the fourth virtual machine 230.

各仮想マシンの更新部は、更新処理を行う(S110)。更新部における更新処理については、後述する。 The update unit of each virtual machine performs update processing (S110). The update processing in the update unit will be described later.

配信制御部142は、S110の更新処理が完了した各仮想マシンの更新部から、更新処理が完了したことを示す更新完了通知を受信する(図2、図3:S111)。 The distribution control unit 142 receives an update completion notification indicating that the update process has been completed from the update unit of each virtual machine for which the update process of S110 has been completed (Figures 2 and 3: S111).

配信制御部142は、各仮想マシンの更新部から更新処理が完了したことを示す通知を受信すると、ファイル取得部141に各仮想マシンの更新処理が完了したことを通知する(図2、図3:S112)。 When the distribution control unit 142 receives a notification from the update unit of each virtual machine indicating that the update process has been completed, it notifies the file acquisition unit 141 that the update process of each virtual machine has been completed (Figures 2 and 3: S112).

次に、図2、図4を用いて、主に各仮想マシンの更新部の動作を説明する。
第1乃至第4の仮想マシンの更新部(143、151、161、231)は、S104で判定部146から送信された検索信号を受信する(S201)。
各更新部は、検索信号の問い合わせに対する応答信号を、判定部146に送信する(S202)。
Next, the operation of the update unit of each virtual machine will be mainly described with reference to FIG. 2 and FIG.
The update units (143, 151, 161, 231) of the first to fourth virtual machines receive the search signal transmitted from the determination unit 146 in S104 (S201).
Each update unit transmits a response signal to the inquiry of the search signal to the determination unit 146 (S202).

次に、更新部は、S107及びS108で更新指示部148から送信された更新指示を受信する(S203)。ここで、S203で受信した更新指示が、実ストレージにアクセスすることによる更新指示の場合(S204:Yes)、すなわち、S107で更新指示部148から送信された更新指示の場合、実ストレージ130に保存された更新ファイルを用いて仮想マシンの更新を行う(S110)。本実施形態の例では、第1の仮想マシン140の更新部143、及び第2の仮想マシン150の更新部151は、S107の更新指示を受信する。したがって、更新部143及び更新部151は、実ストレージ130にアクセスすることにより、実ストレージ130に保存された更新ファイルを用いて、それぞれ第1の仮想マシン140及び第2の仮想マシン150の更新を行う(S110)。 Next, the update unit receives the update instruction sent from the update instruction unit 148 in S107 and S108 (S203). Here, if the update instruction received in S203 is an update instruction by accessing real storage (S204: Yes), that is, if the update instruction is sent from the update instruction unit 148 in S107, the update unit updates the virtual machine using the update file stored in the real storage 130 (S110). In this embodiment, the update unit 143 of the first virtual machine 140 and the update unit 151 of the second virtual machine 150 receive the update instruction of S107. Therefore, the update unit 143 and the update unit 151 access the real storage 130 and update the first virtual machine 140 and the second virtual machine 150, respectively, using the update file stored in the real storage 130 (S110).

これに対し、S203で受信した更新指示が、実ストレージにアクセスすることによる更新指示ではない場合(S204:No)、すなわち、S108で更新指示部148から送信された更新指示の場合、更新部はS109で配信された更新ファイルを受信する(S205)。本実施形態の例では、第3の仮想マシン160の更新部161、及び第4の仮想マシン230の更新部231は、S108の更新指示を受信し、さらに、S109で配信された更新ファイルを受信する(S205)。そして、更新部161及び更新部231は、S205で受信した更新ファイルを用いて、仮想マシンのソフトウェアの更新を行う(S110)。 On the other hand, if the update instruction received in S203 is not an update instruction for accessing real storage (S204: No), i.e., if the update instruction was sent from the update instruction unit 148 in S108, the update unit receives the update file distributed in S109 (S205). In this embodiment, the update unit 161 of the third virtual machine 160 and the update unit 231 of the fourth virtual machine 230 receive the update instruction in S108, and further receive the update file distributed in S109 (S205). Then, the update unit 161 and the update unit 231 use the update file received in S205 to update the software of the virtual machine (S110).

各仮想マシンの更新部は、S110の更新処理が完了すると、配信制御部142に対して、更新処理が完了したことを示す更新完了通知を送信する(S206)。 When the update process of S110 is completed, the update unit of each virtual machine sends an update completion notification to the distribution control unit 142 indicating that the update process has been completed (S206).

(6)小括
以上の構成によれば、仮想マシンのソフトウェアを更新するための更新ファイルの配信制御を行う仮想マシンは、当該仮想マシンを管理するハイパーバイザとは異なるハイパーバイザによって管理される仮想マシンにのみ更新ファイルを配信し、同じハイパーバイザによって管理される仮想マシンには更新ファイルを配信しない。これにより、一部の仮想マシンに対する更新ファイルの配信処理を省略することができるため、配信処理にかかる負荷を低減することができるとともに、仮想マシンのソフトウェアを更新するのに要する時間を短縮することが可能となる。
さらに、一部の仮想マシンに対する更新ファイルの配信処理を省略することにより、ECU間での通信量を抑制することができるため、通信線の負荷や混雑を低減することが可能となる。
(6) Summary According to the above configuration, a virtual machine that controls the distribution of update files for updating virtual machine software distributes update files only to virtual machines managed by a hypervisor different from the hypervisor that manages the virtual machine, and does not distribute update files to virtual machines managed by the same hypervisor. This makes it possible to omit the process of distributing update files to some virtual machines, thereby reducing the load on the distribution process and shortening the time required to update virtual machine software.
Furthermore, by omitting the process of distributing update files to some virtual machines, the amount of communication between ECUs can be reduced, thereby reducing the load and congestion on communication lines.

(7)実施形態1の変形例1
図1では、ECU10が2つのハイパーバイザ(ハイパーバイザ110、ハイパーバイザ120)を有する構成を説明した。例えばデュアルプロセッサのように、ECUが複数のマイクロプロセッサを搭載している場合には、一のECUが複数のハイパーバイザを備える構成が想定される。
(7) Modification 1 of the First Embodiment
1, the configuration in which the ECU 10 has two hypervisors (hypervisor 110, hypervisor 120) has been described. For example, in the case where the ECU is equipped with multiple microprocessors such as a dual processor, a configuration in which one ECU has multiple hypervisors is assumed.

しかしながら、電子制御システム1を構成する各ECUがいずれもシングルプロセッサであり、全てのECUが一のハイパーバイザのみを備えていることがある。このような場合、電子制御システム1を構成する各ECUが複数のハイパーバイザを備える構成は想定されない。そこで、判定部146は、配信制御部142を有する仮想マシンを有するECUと、更新対象の仮想マシンを有するECUが同じかどうかを判定することによって、第1の仮想マシン140を管理するハイパーバイザ110と、各仮想マシンを管理するハイパーバイザとが同じであるかどうかを判定してもよい。 However, each ECU constituting the electronic control system 1 may be a single processor, and all the ECUs may have only one hypervisor. In such a case, a configuration in which each ECU constituting the electronic control system 1 has multiple hypervisors is not anticipated. Therefore, the determination unit 146 may determine whether the hypervisor 110 managing the first virtual machine 140 is the same as the hypervisor managing each virtual machine by determining whether the ECU having the virtual machine with the distribution control unit 142 is the same as the ECU having the virtual machine to be updated.

例えば、判定部146は、仮想マシンが搭載されたECUのデバイスIDを問い合わせる検索信号を各仮想マシンに送信する。そして、判定部146が、各仮想マシンからの応答信号に基づいて、第1の仮想マシン140を有するECU10と、更新対象の仮想マシンを有するECUとが同じであるかどうかを判定する。ここで、判定部146が、同じECUであると判定した場合、第1の仮想マシン140を管理するハイパーバイザ110と、更新対象のハイパーバイザとが同じであると判定する。 For example, the determination unit 146 transmits a search signal to each virtual machine inquiring about the device ID of the ECU in which the virtual machine is installed. Then, based on the response signal from each virtual machine, the determination unit 146 determines whether the ECU 10 having the first virtual machine 140 is the same as the ECU having the virtual machine to be updated. Here, if the determination unit 146 determines that they are the same ECU, it determines that the hypervisor 110 managing the first virtual machine 140 is the same as the hypervisor to be updated.

本変形例によれば、ECUを判定することによって、更新ファイルの配信制御を行う仮想マシンを管理するハイパーバイザと、更新対象の仮想マシンを管理するハイパーバイザとが同一であるかどうかを判定することができ、更新対象の仮想マシンに更新ファイルを配信するかどうかの判定が容易となる。 According to this modified example, by determining the ECU, it is possible to determine whether the hypervisor that manages the virtual machine that controls the distribution of the update file is the same as the hypervisor that manages the virtual machine to be updated, making it easier to determine whether to distribute the update file to the virtual machine to be updated.

(8)実施形態1の変形例2
上述した実施形態では、ECU10が備えるハイパーバイザ110と、ECU20が備えるハイパーバイザ210とは異なることを前提として説明した。しかしながら、共通のハイパーバイザが、ECUを跨って仮想マシンを管理する構成であってもよい。
(8) Modification 2 of the First Embodiment
In the above-described embodiment, it is assumed that the hypervisor 110 included in the ECU 10 is different from the hypervisor 210 included in the ECU 20. However, a common hypervisor may be configured to manage virtual machines across the ECUs.

本変形例2では、ECU10が備えるハイパーバイザ110と、ECU20が備えるハイパーバイザ210は同じハイパーバイザであり、第1の仮想マシン140と第4の仮想マシン230は同じハイパーバイザによって管理される。第1の仮想マシン140を管理するハイパーバイザ110と、第4の仮想マシン230を管理するハイパーバイザ210とが同じであるため、本変形例2の判定部146は、第4の仮想マシン230には更新ファイルを配信しないと判定する。 In this modified example 2, the hypervisor 110 provided in the ECU 10 and the hypervisor 210 provided in the ECU 20 are the same hypervisor, and the first virtual machine 140 and the fourth virtual machine 230 are managed by the same hypervisor. Since the hypervisor 110 that manages the first virtual machine 140 and the hypervisor 210 that manages the fourth virtual machine 230 are the same, the determination unit 146 in this modified example 2 determines not to distribute the update file to the fourth virtual machine 230.

第4の仮想マシン230には更新ファイルが配信されないため、第4の仮想マシン230の更新部231は、ECU10が備える実ストレージ130にアクセスすることにより、実ストレージ130に保存された更新ファイルを用いて第4の仮想マシン230のソフトウェアを更新する。 Since the update file is not distributed to the fourth virtual machine 230, the update unit 231 of the fourth virtual machine 230 accesses the real storage 130 provided in the ECU 10, and updates the software of the fourth virtual machine 230 using the update file stored in the real storage 130.

3.実施形態2
本実施形態では、更新ファイルの配信制御を行う仮想マシンに関する安全性を示す安全度と更新対象の仮想マシンに関する安全性を示す安全度とに基づいて更新ファイルを配信するかどうかを判定する構成を、実施形態1との相違点を中心に説明する。
3. Embodiment 2
In this embodiment, a configuration for determining whether to distribute an update file based on a safety level indicating the safety of a virtual machine that controls the distribution of the update file and a safety level indicating the safety of the virtual machine to be updated will be described, focusing on the differences from embodiment 1.

(1)ECU10の構成
図5は、本実施形態のECU10の実ストレージ130を示す図である。本実施形態の実ストレージ130は5つの安全度の保存領域を有している。
(1) Configuration of ECU 10 Fig. 5 is a diagram showing the real storage 130 of the ECU 10 of this embodiment. The real storage 130 of this embodiment has storage areas with five security levels.

本実施形態における安全度は、例えば、自動車安全度水準ASIL(Automotive Safety Integrity Level)に基づいて設定される安全度である。ASILは、ISO26262規格で定義された、車両の機能安全に応じて分類される指標である。ASILには、安全度水準が低いものから順に、ASIL-A、ASIL-B、ASIL-C、ASIL-Dの段階があり、さらに、特定の機能安全を適用しなくてもよい場合にはQM(Quality Management)と呼ばれる品質管理が適用される。QMはASIL-Aよりも低い安全度水準を示している。ASIL、QMは、ハードウェアやソフトウェアそれぞれに割り当てられる。 The safety level in this embodiment is set based on, for example, the Automotive Safety Integrity Level (ASIL). ASIL is an index that classifies vehicles according to their functional safety, as defined by the ISO26262 standard. ASIL is classified into stages, ASIL-A, ASIL-B, ASIL-C, and ASIL-D, in order of decreasing safety level. Furthermore, when it is not necessary to apply specific functional safety, quality management called QM (Quality Management) is applied. QM indicates a safety level lower than ASIL-A. ASIL and QM are assigned to hardware and software, respectively.

図5に示す例では、実ストレージ130は、QM用、ASIL-A用、ASIL-B用、ASIL-C用、及びASIL-D用の保存領域をそれぞれ有している。ECU10が有する仮想マシンが使用する実ストレージ130の保存領域は、仮想マシン自身又は仮想マシンが有する各構成の安全度に対応する。例えば、仮想マシンの安全度がASIL-Aである場合、当該仮想マシンが使用する実ストレージ130の保存領域は、図5に示す保存領域のうちASIL-A用の保存領域となる。仮想マシンの安全度がASIL-Aであっても、仮想マシンが有する構成のうち独立性の高いものがASIL-Bである場合には、当該構成がASIL-B用の保存領域を使用する場合もある。 In the example shown in FIG. 5, the real storage 130 has storage areas for QM, ASIL-A, ASIL-B, ASIL-C, and ASIL-D. The storage areas of the real storage 130 used by the virtual machine of the ECU 10 correspond to the safety level of the virtual machine itself or each configuration of the virtual machine. For example, if the safety level of the virtual machine is ASIL-A, the storage area of the real storage 130 used by the virtual machine is the storage area for ASIL-A among the storage areas shown in FIG. 5. Even if the safety level of the virtual machine is ASIL-A, if the configuration with the highest independence among the virtual machine's configurations is ASIL-B, the configuration may use the storage area for ASIL-B.

各仮想マシン又は仮想マシンが有する構成は、自身の安全度よりも高い安全度の実ストレージ130の保存領域にはアクセスすることができない。例えば、安全度がASIL-Bの仮想マシンは、ASIL-C用の保存領域及びASIL-D用の保存領域にはアクセスすることができない。 Each virtual machine or configuration of a virtual machine cannot access a storage area in the real storage 130 with a higher safety level than its own. For example, a virtual machine with a safety level of ASIL-B cannot access a storage area for ASIL-C or ASIL-D.

以下の実施形態では、仮想マシンに関する安全性を示す安全度を用いて、更新ファイルを配信するかどうかの判定を行う構成を説明する。ここで、仮想マシンに関する安全性を示す安全度とは、仮想マシンに割り当てられた仮想マシンの安全度であってもよく、あるいは、仮想マシンが有する特定の構成に割り当てられた安全度であってもよい。例えば、第1の仮想マシン140の配信制御部142に割り当てられた安全度を第1の仮想マシン140に関する安全度として利用し、第2の仮想マシン150の更新部151に割り当てられた安全度を第2の仮想マシン150の安全度として利用してもよい。 In the following embodiment, a configuration is described in which a safety level indicating the safety of a virtual machine is used to determine whether to distribute an update file. Here, the safety level indicating the safety of a virtual machine may be the safety level of the virtual machine assigned to the virtual machine, or may be the safety level assigned to a specific configuration that the virtual machine has. For example, the safety level assigned to the distribution control unit 142 of the first virtual machine 140 may be used as the safety level of the first virtual machine 140, and the safety level assigned to the update unit 151 of the second virtual machine 150 may be used as the safety level of the second virtual machine 150.

別の例として、仮想マシンの安全度とは、例えば、仮想マシンが有する各構成に割り当てられた安全度のうち、最も低い安全度と等しい値であってもよい。この場合、第1の仮想マシン140において、ファイル取得部141、配信制御部142、仮想ストレージ144の安全度がASIL-Cであり、更新部143の安全度がASIL-Bの場合、第1の仮想マシン140に関する安全度はASIL-Bとなる。 As another example, the safety level of a virtual machine may be, for example, a value equal to the lowest safety level among the safety levels assigned to each configuration of the virtual machine. In this case, in the first virtual machine 140, if the safety levels of the file acquisition unit 141, the delivery control unit 142, and the virtual storage 144 are ASIL-C and the safety level of the update unit 143 is ASIL-B, the safety level for the first virtual machine 140 will be ASIL-B.

以下、第1の仮想マシン140の安全度がASIL-B、第2の仮想マシン150の安全度がASIL-A、第3の仮想マシンの安全度がASIL-C、及び第4の仮想マシンの安全度がQMであるとして、本実施形態を説明する。 In the following, this embodiment will be described assuming that the safety level of the first virtual machine 140 is ASIL-B, the safety level of the second virtual machine 150 is ASIL-A, the safety level of the third virtual machine is ASIL-C, and the safety level of the fourth virtual machine is QM.

(2)第1の仮想マシン140の構成
本実施形態の判定部146は、各仮想マシンの安全度を問い合わせる検索信号を各仮想マシンに送信する。そして、各仮想マシンから、各仮想マシンの安全度を示す応答信号を受信する。
(2) Configuration of the First Virtual Machine 140 The determining unit 146 of this embodiment transmits a search signal inquiring about the security level of each virtual machine to each virtual machine, and receives a response signal indicating the security level of each virtual machine from each virtual machine.

判定部146は、配信制御部142を有する第1の仮想マシン140に関する安全性を示す安全度A(「第1の安全度」に相当)と、更新対象の仮想マシンに関する安全性を示す安全度B(「第2の安全度」に相当)とに基づいて、更新対象の仮想マシンに更新ファイルを配信するかどうかを判定する。 The determination unit 146 determines whether to distribute the update file to the virtual machine to be updated based on a safety level A (corresponding to a "first safety level") indicating the safety of the first virtual machine 140 having the distribution control unit 142 and a safety level B (corresponding to a "second safety level") indicating the safety of the virtual machine to be updated.

図6は、判定部146が、第1の仮想マシン140の安全度Aと、更新対象の仮想マシンの安全度Bとに基づいて、いかにして更新ファイルを配信する又は配信しないと判定するかを示している。 Figure 6 shows how the determination unit 146 determines whether to distribute or not distribute an update file based on the safety level A of the first virtual machine 140 and the safety level B of the virtual machine to be updated.

図6は、仮想マシン自身の安全度A、安全度Bに基づいて、更新ファイルの配信有無を判定する例を示しているが、上述したとおり、安全度Aは、第1の仮想マシン140の配信制御部142に割り当てられた安全度であって、安全度Bは更新対象の仮想マシンの更新部に割り当てられた安全度であってもよい。 Figure 6 shows an example of determining whether or not to distribute an update file based on the virtual machine's own safety level A and safety level B, but as described above, safety level A may be the safety level assigned to the distribution control unit 142 of the first virtual machine 140, and safety level B may be the safety level assigned to the update unit of the virtual machine to be updated.

図6は、第1の仮想マシン140の安全度Aが、更新対象の仮想マシンの安全度B「よりも」高い場合に、判定部146は、更新対象の仮想マシンに更新ファイルを配信すると判定することを示している。上述したとおり、第1の仮想マシンの安全度Aが更新対象の仮想マシンの安全度Bよりも高い場合、更新対象の仮想マシンの更新部は第1の仮想マシン140が使用する実ストレージ130の保存領域にアクセスすることができない。そこで、更新対象の仮想マシンの更新部が、第1の仮想マシン140が使用する実ストレージ130の保存領域にアクセスすることができない場合に、判定部146は更新ファイルを配信すると判定する。 Figure 6 shows that when safety level A of the first virtual machine 140 is "higher" than safety level B of the virtual machine to be updated, the determination unit 146 determines that the update file is to be delivered to the virtual machine to be updated. As described above, when safety level A of the first virtual machine is higher than safety level B of the virtual machine to be updated, the update unit of the virtual machine to be updated cannot access the storage area of the real storage 130 used by the first virtual machine 140. Therefore, when the update unit of the virtual machine to be updated cannot access the storage area of the real storage 130 used by the first virtual machine 140, the determination unit 146 determines that the update file is to be delivered.

ここで、「よりも」とは、比較対象と同じ値を含む場合及び含まない場合の両方が含まれる。 Here, "than" includes both cases where the value is the same as the comparison target and cases where it is not.

なお、図6の表では、第1の仮想マシン140が使用する実ストレージ130の保存領域にアクセスすることができない場合に限り、更新ファイルを配信すると判定する例を示しているが、安全度Aが安全度Bと等しい場合にも更新ファイルを配信する構成としてもよい。 Note that the table in FIG. 6 shows an example in which it is determined that the update file is to be delivered only when the storage area of the real storage 130 used by the first virtual machine 140 cannot be accessed, but the configuration may also be such that the update file is delivered even when safety level A is equal to safety level B.

判定部146は、各仮想マシンの更新部に送信した検索信号に対する、各仮想マシンからの応答信号に基づいて、更新対象の仮想マシンの安全度を特定することができる。したがって、本実施形態の応答信号には、各仮想マシンの安全度を示す情報が含まれる。 The determination unit 146 can identify the safety level of the virtual machine to be updated based on the response signal from each virtual machine in response to the search signal sent to the update unit of each virtual machine. Therefore, the response signal in this embodiment includes information indicating the safety level of each virtual machine.

なお、判定部146は、第1の仮想マシン140の更新部143に対しても、他の仮想マシンの更新部と同様に検索信号を送信してもよい。この場合、判定部146は当然のことながら、更新部143からの応答信号に基づいて、第1の仮想マシン140の安全度と、更新対象の仮想マシンの安全度とが同じであると判定する。 The determination unit 146 may also send a search signal to the update unit 143 of the first virtual machine 140, in the same manner as to the update units of the other virtual machines. In this case, the determination unit 146 naturally determines, based on the response signal from the update unit 143, that the safety level of the first virtual machine 140 and the safety level of the virtual machine to be updated are the same.

本実施形態の例では、第1の仮想マシン140の安全度(ASIL-B)は、第2の仮想マシン150の安全度(ASIL-A)及び第4の仮想マシン230の安全度(QM)よりも高い。したがって、判定部146は第2の仮想マシン150及び第4の仮想マシン230に更新ファイルを配信すると判定する。
一方、第1の仮想マシン140の安全度(ASIL-B)は、第3の仮想マシン160の安全度(ASIL-C)よりも低いため、判定部146は第3の仮想マシン160には更新ファイルを配信しないと判定する。
In the example of this embodiment, the safety level (ASIL-B) of the first virtual machine 140 is higher than the safety level (ASIL-A) of the second virtual machine 150 and the safety level (QM) of the fourth virtual machine 230. Therefore, the determination unit 146 determines to distribute the update file to the second virtual machine 150 and the fourth virtual machine 230.
On the other hand, since the safety level (ASIL-B) of the first virtual machine 140 is lower than the safety level (ASIL-C) of the third virtual machine 160 , the determining unit 146 determines not to distribute the updated file to the third virtual machine 160 .

更新指示部148は、第2の仮想マシン150及び第4の仮想マシン230に対して、配信部147が配信する更新ファイルを用いて仮想マシンのソフトウェアを更新することを指示する。一方、更新指示部148は、第1の仮想マシン140及び第3の仮想マシン160に対して、実ストレージ130のASIL-Bの保存領域にアクセスすることにより、実ストレージ130に保存された更新ファイルを用いて仮想マシンのソフトウェアを更新することを指示する。 The update instruction unit 148 instructs the second virtual machine 150 and the fourth virtual machine 230 to update the virtual machine software using the update file distributed by the distribution unit 147. On the other hand, the update instruction unit 148 instructs the first virtual machine 140 and the third virtual machine 160 to update the virtual machine software using the update file stored in the real storage 130 by accessing the storage area of ASIL-B in the real storage 130.

(3)第2の仮想マシン150の構成
第2の仮想マシン150の仮想ストレージ152は、配信部147から配信された更新ファイルを保存する。
第2の仮想マシン150の更新部151は、更新指示部148から更新指示を受信すると、仮想ストレージ152に保存された更新ファイルを用いて、第2の仮想マシン150のソフトウェアを更新する。
なお、仮想ストレージ152は、実ストレージ130の保存領域のうち、第2の仮想マシン150の安全度に対応するASIL-Aの保存領域を仮想化した領域である。
(3) Configuration of the Second Virtual Machine 150 The virtual storage 152 of the second virtual machine 150 stores the update file distributed from the distribution unit 147 .
When the update unit 151 of the second virtual machine 150 receives the update instruction from the update instruction unit 148 , the update unit 151 updates the software of the second virtual machine 150 by using the update file stored in the virtual storage 152 .
The virtual storage 152 is a virtualized area of the storage area of the real storage 130 , which is an ASIL-A storage area corresponding to the safety level of the second virtual machine 150 .

(4)第3の仮想マシン160の構成
第3の仮想マシン160が有する更新部161は、実ストレージ130のASIL-Bの保存領域にアクセスすることにより、実ストレージ130に保存された更新ファイルを参照し、当該更新ファイルを用いて第3の仮想マシン160のソフトウェアを更新する。
(4) Configuration of third virtual machine 160 The update unit 161 of the third virtual machine 160 accesses the storage area of ASIL-B in the real storage 130, refers to the update file stored in the real storage 130, and updates the software of the third virtual machine 160 using the update file.

(5)第4の仮想マシン230の構成
第4の仮想マシン230の実ストレージ220又は仮想ストレージ232は、配信部147から配信された更新ファイルを保存する。更新ファイルの保存先は、実ストレージ220及び仮想ストレージ232のいずれであってもよい。そして、第4の仮想マシン230の更新部231は、更新指示部148から更新指示を受信すると、実ストレージ220又は仮想ストレージ232に保存された更新ファイルを用いて、第4の仮想マシン230のソフトウェアを更新する。
(5) Configuration of Fourth Virtual Machine 230 The real storage 220 or the virtual storage 232 of the fourth virtual machine 230 stores the update file distributed from the distribution unit 147. The update file may be stored in either the real storage 220 or the virtual storage 232. Upon receiving an update instruction from the update instruction unit 148, the update unit 231 of the fourth virtual machine 230 updates the software of the fourth virtual machine 230 by using the update file stored in the real storage 220 or the virtual storage 232.

(6)電子制御システム1及びECU10、ECU20が有する仮想マシンの動作
図7は、本実施形態の電子制御システム1全体の動作を示している。また、本実施形態の第1の仮想マシン140の配信制御部142の動作及び更新部の動作は、実施形態1の図3、4と同じであり、図3、4を参照して説明する。
(6) Operation of the Virtual Machines in the Electronic Control System 1, the ECU 10, and the ECU 20 Fig. 7 shows the operation of the entire electronic control system 1 of this embodiment. The operation of the delivery control unit 142 and the operation of the update unit of the first virtual machine 140 of this embodiment are the same as those of the first embodiment shown in Figs. 3 and 4, and will be described with reference to Figs. 3 and 4.

図7に示すS101乃至S112の処理は、図2に示す実施形態1の電子制御システム1の処理と同じである。ただし、本実施形態のS106では、第1の仮想マシン140の判定部146が更新対象の仮想マシンに更新ファイルを配信するかどうかの判定方法が実施形態1とは異なる。本実施形態のS106では、判定部146は、第1の仮想マシン140の安全度、及び更新対象の仮想マシンの安全度に基づいて、更新対象の仮想マシンに更新ファイルを配信するかどうかを判定する。上述したとおり、本実施形態では、第1の仮想マシン140の安全度は、第2の仮想マシン150及び第4の仮想マシン230の安全度よりも高いため、判定部146は第2の仮想マシン150及び第4の仮想マシン230に更新ファイルを配信すると判定する。また、第1の仮想マシン140の安全度は、第3の仮想マシン160の安全度よりも低いため、判定部146は第3の仮想マシン160には更新ファイルを配信しないと判定する。 The processes of S101 to S112 shown in FIG. 7 are the same as the processes of the electronic control system 1 of the first embodiment shown in FIG. 2. However, in S106 of this embodiment, the method of determining whether the determination unit 146 of the first virtual machine 140 delivers the update file to the virtual machine to be updated is different from that of the first embodiment. In S106 of this embodiment, the determination unit 146 determines whether to deliver the update file to the virtual machine to be updated based on the safety level of the first virtual machine 140 and the safety level of the virtual machine to be updated. As described above, in this embodiment, the safety level of the first virtual machine 140 is higher than the safety levels of the second virtual machine 150 and the fourth virtual machine 230, so the determination unit 146 determines to deliver the update file to the second virtual machine 150 and the fourth virtual machine 230. In addition, the safety level of the first virtual machine 140 is lower than the safety level of the third virtual machine 160, so the determination unit 146 determines not to deliver the update file to the third virtual machine 160.

配信制御部142の更新指示部148は、第1の仮想マシン140の更新部143及び第3の仮想マシン160の更新部161に対し、実ストレージ130のASIL-Bの保存領域にアクセスすることにより仮想マシンのソフトウェアを更新することを指示する(図7、図3:S107)。
更新指示部148はさらに、第2の仮想マシン150の更新部151及び第4の仮想マシン230の更新部231に対し、配信部147が配信する更新ファイルを用いて仮想マシンのソフトウェアを更新することを指示する(図7、図3:S108)。
配信制御部142の配信部147は、第2の仮想マシン150及び第4の仮想マシン230に更新ファイルを配信する(図7、図3:S109)。
The update instruction unit 148 of the distribution control unit 142 instructs the update unit 143 of the first virtual machine 140 and the update unit 161 of the third virtual machine 160 to update the software of the virtual machines by accessing the storage area of ASIL-B in the real storage 130 (Figures 7 and 3: S107).
The update instruction unit 148 further instructs the update unit 151 of the second virtual machine 150 and the update unit 231 of the fourth virtual machine 230 to update the software of the virtual machines using the update file distributed by the distribution unit 147 (Figure 7, Figure 3: S108).
The distribution unit 147 of the distribution control unit 142 distributes the update file to the second virtual machine 150 and the fourth virtual machine 230 (FIG. 7, FIG. 3: S109).

第1の仮想マシン140の更新部143は、S107で更新指示部148から送信された更新指示を受信する(S203)。この更新指示は、実ストレージにアクセスすることによる更新指示であるため(S204:Yes)、更新部143は実ストレージ130のASIL-Bの保存領域にアクセスすることにより、実ストレージ130に保存された更新ファイルを用いて第1の仮想マシン140の更新を行う(図7、図4:S110)。
同様に、第3の仮想マシン160の更新部161は、S107で更新指示部148から送信された更新指示を受信すると(S203,S204:Yes)、実ストレージ130のASIL-Bの保存領域にアクセスすることにより、実ストレージ130に保存された更新ファイルを用いて第3の仮想マシン160の更新を行う(図7、図4:S110)。
The update unit 143 of the first virtual machine 140 receives the update instruction sent from the update instruction unit 148 in S107 (S203). Since this update instruction is an update instruction for accessing real storage (S204: Yes), the update unit 143 accesses the storage area of ASIL-B in the real storage 130 to update the first virtual machine 140 using the update file stored in the real storage 130 (FIGS. 7 and 4: S110).
Similarly, when the update unit 161 of the third virtual machine 160 receives the update instruction sent from the update instruction unit 148 in S107 (S203, S204: Yes), it accesses the storage area of ASIL-B in the real storage 130 and updates the third virtual machine 160 using the update file stored in the real storage 130 (Figures 7 and 4: S110).

一方、第2の仮想マシン150の更新部151は、S108で更新指示部148から送信された更新指示を受信する(S203)。この更新指示は、実ストレージにアクセスすることによる更新指示ではないため(S204:No)、更新部151はさらに、配信部147から配信された更新ファイルを受信する(S205)。更新部151は、更新指示に基づいて、配信部147から配信された更新ファイルを用いて第2の仮想マシン150の更新を行う(図7、図4:S110)。
同様に、第4の仮想マシン230の更新部231は、S108で更新指示部148から送信された更新指示を受信し(S203,S204:No)、配信部147から配信された更新ファイルを受信する(S205)。そして、更新部231は、更新指示に基づいて、配信部147から配信された更新ファイルを用いて第4の仮想マシン230の更新を行う(図7、図4:S110)。
On the other hand, the update unit 151 of the second virtual machine 150 receives the update instruction sent from the update instruction unit 148 in S108 (S203). Since this update instruction is not an update instruction for accessing real storage (S204: No), the update unit 151 further receives the update file distributed from the distribution unit 147 (S205). Based on the update instruction, the update unit 151 updates the second virtual machine 150 using the update file distributed from the distribution unit 147 (FIGS. 7 and 4: S110).
Similarly, the update unit 231 of the fourth virtual machine 230 receives the update instruction sent from the update instruction unit 148 in S108 (S203, S204: No), and receives the update file distributed from the distribution unit 147 (S205). Then, the update unit 231 updates the fourth virtual machine 230 using the update file distributed from the distribution unit 147 based on the update instruction (FIGS. 7 and 4: S110).

(7)小括
以上の構成によれば、仮想マシンのソフトウェアを更新するための更新ファイルの配信制御を行う仮想マシンは、当該仮想マシンの安全度よりも高い安全度を有する仮想マシンにのみ更新ファイルを配信し、当該仮想マシンの安全度以下の安全度を有する仮想マシンには更新ファイルを配信しない。これにより、一部の仮想マシンに対する更新ファイルの配信処理を省略することができるため、配信処理にかかる負荷を低減することができるとともに、仮想マシンのソフトウェアを更新に要する時間を短縮することが可能となる。
(7) Summary According to the above configuration, a virtual machine that controls the distribution of update files for updating virtual machine software distributes update files only to virtual machines having a higher safety level than the virtual machine, and does not distribute update files to virtual machines having a safety level equal to or lower than the virtual machine. This makes it possible to omit the process of distributing update files to some virtual machines, thereby reducing the load on the distribution process and shortening the time required to update the virtual machine software.

(8)実施形態2の変形例1
上述した実施形態2では、第1の仮想マシン140の安全度が更新対象の仮想マシンの安全度よりも高い場合にのみ、更新ファイルを配信する構成を説明した。しかしながら、第1の仮想マシン140の安全度が更新対象の仮想マシンの安全度と異なる場合に限り、更新ファイルを配信する構成としてもよい。
(8) Modification 1 of the Second Embodiment
In the above-described second embodiment, the configuration has been described in which the update file is delivered only when the safety level of the first virtual machine 140 is higher than the safety level of the virtual machine to be updated. However, the configuration may be such that the update file is delivered only when the safety level of the first virtual machine 140 is different from the safety level of the virtual machine to be updated.

図8は、本変形例1の判定部146が、第1の仮想マシン140の安全度Aと、更新対象の仮想マシンの安全度Bとに基づいて、いかにして更新ファイルを配信する又は配信しないと判定するかを示している。 Figure 8 shows how the determination unit 146 of this variant example 1 determines whether to distribute or not distribute an update file based on the safety level A of the first virtual machine 140 and the safety level B of the virtual machine to be updated.

図8に示す例では、第1の仮想マシン140の安全度Aと、更新対象の仮想マシンの安全度Bとが異なる場合に、判定部146は、更新対象の仮想マシンに更新ファイルを配信すると判定する。一方、第1の仮想マシン140の安全度Aと、更新対象の仮想マシンの安全度Bとが等しい場合、判定部146は、更新対象の仮想マシンに更新ファイルを配信しないと判定する。 In the example shown in FIG. 8, when the safety level A of the first virtual machine 140 and the safety level B of the virtual machine to be updated are different, the determination unit 146 determines that the update file is to be delivered to the virtual machine to be updated. On the other hand, when the safety level A of the first virtual machine 140 and the safety level B of the virtual machine to be updated are equal, the determination unit 146 determines that the update file is not to be delivered to the virtual machine to be updated.

上述した実施形態2と同様、第1の仮想マシン140の安全度がASIL-B、第2の仮想マシン150の安全度がASIL-A、第3の仮想マシンの安全度がASIL-C、及び第4の仮想マシンの安全度がQMであるとした場合、第1の仮想マシン140の安全度と、第2乃至第4の仮想マシンの安全度はいずれも異なっている。そのため、判定部146は、第2乃至第4の仮想マシンの全てに更新ファイルを配信すると判定する。そして、第1の仮想マシン自身に対してのみ、更新ファイルを配信しないと判定する。 As in the second embodiment described above, if the safety level of the first virtual machine 140 is ASIL-B, the safety level of the second virtual machine 150 is ASIL-A, the safety level of the third virtual machine is ASIL-C, and the safety level of the fourth virtual machine is QM, the safety level of the first virtual machine 140 and the safety levels of the second to fourth virtual machines are all different. Therefore, the determination unit 146 determines that the update file should be distributed to all of the second to fourth virtual machines. Then, it determines that the update file should not be distributed only to the first virtual machine itself.

本変形例では、更新ファイルの配信制御を行う仮想マシンが使用する実ストレージの保存領域にアクセス可能な仮想マシンを、同じ安全度を有する更新対象の仮想マシンに限定し、異なる安全度を有する仮想マシンからのアクセスを制限することにより、実ストレージのセキュリティを確保することができる。 In this modified example, the virtual machines that can access the real storage storage area used by the virtual machine that controls the distribution of update files are limited to virtual machines that are to be updated and have the same level of security, and access from virtual machines with different levels of security is restricted, thereby ensuring the security of the real storage.

(9)第2の実施形態の変形例2
上述した実施形態1、2は、それぞれ異なる実施形態として説明したが、本変形例では、実施形態2に、実施形態1の特徴を適用する。
(9) Modification 2 of the Second Embodiment
The above-mentioned first and second embodiments have been described as different embodiments, but in this modification, the features of the first embodiment are applied to the second embodiment.

本変形例の判定部146は、第1の仮想マシン140を管理するハイパーバイザ110と、更新対象の仮想マシンを管理するハイパーバイザとが同じかどうか、に加えて、第1の仮想マシン140の安全度、及び更新対象の仮想マシンの安全度に基づいて、更新対象の仮想マシンに更新ファイルを配信するかどうかを判定する。 The determination unit 146 of this modified example determines whether to distribute an update file to the virtual machine to be updated based on whether the hypervisor 110 that manages the first virtual machine 140 is the same as the hypervisor that manages the virtual machine to be updated, as well as the safety level of the first virtual machine 140 and the safety level of the virtual machine to be updated.

例えば、判定部146は、第1の仮想マシン140を管理するハイパーバイザ110と、更新対象の仮想マシンを管理するハイパーバイザと異なり、且つ、第1の仮想マシン140の安全度が更新対象の仮想マシンの安全度よりも高い場合に、更新ファイルを更新対象の仮想マシンに配信すると判定する。 For example, the determination unit 146 determines to deliver the update file to the virtual machine to be updated when the hypervisor 110 that manages the first virtual machine 140 is different from the hypervisor that manages the virtual machine to be updated and the safety level of the first virtual machine 140 is higher than the safety level of the virtual machine to be updated.

あるいは、判定部146は、実施形態1で説明した判定方法、又は実施形態2で説明した判定方法のいずれか一方を選択して、各仮想マシンに更新ファイルを配信するかどうかを判定してもよい。 Alternatively, the determination unit 146 may select either the determination method described in embodiment 1 or the determination method described in embodiment 2 to determine whether to distribute the update file to each virtual machine.

4.電子制御装置及び電子制御システムの変形例
本項では、実施形態1、2に共通する電子制御装置及び電子制御システムの構成の変形例を説明する。
4. Modifications of the Electronic Control Unit and the Electronic Control System In this section, modifications of the configurations of the electronic control unit and the electronic control system common to the first and second embodiments will be described.

上述した例では、例えば、ECU10がAPをベースとしたECUであり、ECU20がCPをベースとしたECUである場合を説明した。しかしながら、ECUに構築される仮想マシンそれぞれが、AP、CPといったプラットフォームを有してもよい。 In the above example, for example, a case was described in which ECU10 is an AP-based ECU and ECU20 is a CP-based ECU. However, each virtual machine built in the ECU may have a platform such as AP or CP.

図9は、各仮想マシンがそれぞれのプラットフォーム(以下、PF)を有する例を説明する図である。図9では、配信制御部142が実現する各機能の記載は省略しているが、図1と同様、配信制御部142は、ファイル分割部145、判定部146、配信部147、更新指示部148を実現する。 Figure 9 is a diagram illustrating an example in which each virtual machine has its own platform (hereinafter, PF). In Figure 9, the description of each function realized by the distribution control unit 142 is omitted, but similar to Figure 1, the distribution control unit 142 realizes a file division unit 145, a determination unit 146, a distribution unit 147, and an update instruction unit 148.

図9では、第1の仮想マシン140は第1のPF1401を、第2の仮想マシン150は第2のPF1501を、第3の仮想マシン160は第3のPF1601を、第4の仮想マシン230は第4のPF2301を、それぞれ有している。図9はさらに、各仮想マシンのPF上で動作するアプリケーション(1402、1502、1602、2302)をそれぞれ示している。 In FIG. 9, the first virtual machine 140 has a first PF 1401, the second virtual machine 150 has a second PF 1501, the third virtual machine 160 has a third PF 1601, and the fourth virtual machine 230 has a fourth PF 2301. FIG. 9 further shows applications (1402, 1502, 1602, 2302) running on the PFs of each virtual machine.

PFには、AP、CPの他に様々な種類のPFがあり、第1~第4のPF(1401、1501、1601、2301)として、任意のPFを適用することができる。例えば、第1のPF1401はAPを、第2のPF1501はCPを、第3のPF1601はAP、CP以外のPFを適用することにより、PFが異なる複数の仮想マシンが1つのECU内に混在して存在してもよい。このように1つのECU内に異なるPFを有する複数の仮想マシンを混在させることにより、1つのECUに複数の機能を統合させることが可能となり、ひいてはECUの総数を低減することが可能となる。 There are various types of PFs other than AP and CP, and any PF can be applied as the first to fourth PFs (1401, 1501, 1601, 2301). For example, the first PF 1401 can apply an AP, the second PF 1501 can apply a CP, and the third PF 1601 can apply a PF other than AP or CP, so that multiple virtual machines with different PFs can coexist in one ECU. By coexisting multiple virtual machines with different PFs in one ECU in this way, it becomes possible to integrate multiple functions in one ECU, and ultimately to reduce the total number of ECUs.

このような構成の場合、仮想マシンのOSは、例えば、ハイパーバイザとPFとの間に設けられる、あるいは、ハイパーバイザと一体として、又はPFに含まれるように構成されてもよい。 In such a configuration, the OS of the virtual machine may be configured, for example, to be provided between the hypervisor and the PF, or to be integrated with the hypervisor or included in the PF.

各仮想マシンの更新部は仮想マシンのソフトウェアの更新を行うものであるが、図9の構成では、更新部は、仮想マシンのソフトウェアの更新として、PF又はPF上で動作するアプリケーションを更新してもよい。例えば、更新部143は、第1のPF1401又は第1のアプリケーション1402の更新を行う。 The update unit of each virtual machine updates the software of the virtual machine, but in the configuration of FIG. 9, the update unit may update the PF or an application running on the PF as an update of the software of the virtual machine. For example, the update unit 143 updates the first PF 1401 or the first application 1402.

なお、図9は、ファイル取得部141が第1のアプリケーション1402に含まれており、配信制御部142及び更新部143が第1のPF1041に含まれるものとして図示している。しかしながら、第1のPF1401に含まれるソフトウェアがファイル取得部141の一部又は全部の機能を実現してもよく、あるいは、第1のアプリケーション1402が配信制御部142及び更新部143の一部又は全部の機能を実現してもよい。同様に、第2~第4のアプリケーション(1502、1602、2302)がそれぞれの更新部(151、161、231)の一部又は全部の機能を実現してもよい。 Note that FIG. 9 illustrates the file acquisition unit 141 as being included in the first application 1402, and the distribution control unit 142 and update unit 143 as being included in the first PF 1041. However, software included in the first PF 1401 may realize some or all of the functions of the file acquisition unit 141, or the first application 1402 may realize some or all of the functions of the distribution control unit 142 and update unit 143. Similarly, the second to fourth applications (1502, 1602, 2302) may realize some or all of the functions of their respective update units (151, 161, 231).

図9はさらに、ECU10の実ストレージ130が、3つの保存領域、すなわち、共有保存領域131、ソフトウェア保存領域132、及び配信ファイル保存領域133を有する構成を示している。 Figure 9 further shows that the actual storage 130 of the ECU 10 has three storage areas, namely, a shared storage area 131, a software storage area 132, and a distribution file storage area 133.

共有保存領域131は、ファイル取得部141が取得し、ファイル分割部145がパース処理を行った更新ファイルを保存する領域である。ソフトウェア保存領域132は、第1~第3のPF1401、1501、1601、及び第1~第3のアプリケーション1402、1502、1602といった、仮想マシンを構成するソフトウェアを保存する領域である。配信ファイル保存領域133は、配信部147から配信された更新ファイルを保存する領域である。配信ファイル保存領域133を仮想化することで、各仮想マシンに仮想ストレージを構築する。 The shared storage area 131 is an area for storing update files acquired by the file acquisition unit 141 and parsed by the file division unit 145. The software storage area 132 is an area for storing software that configures virtual machines, such as the first to third PFs 1401, 1501, 1601 and the first to third applications 1402, 1502, 1602. The distributed file storage area 133 is an area for storing update files distributed from the distribution unit 147. By virtualizing the distributed file storage area 133, virtual storage is constructed in each virtual machine.

本変形例では、実ストレージ130に保存されている更新ファイルを用いて仮想マシンのソフトウェアを更新することを指示された更新部は、共有保存領域131にアクセスするとともに、共有保存領域131に保存されている更新ファイルを用いて、仮想マシンのソフトウェア、すなわち、ソフトウェア保存領域132に保存されているソフトウェアの更新を行う。これに対し、配信部147が配信する更新ファイルを用いて仮想マシンのソフトウェアを更新することを指示された更新部は、配信部147から配信され、配信ファイル保存領域133に保存された更新ファイルを用いて、ソフトウェア保存領域132に保存されているソフトウェアの更新を行う。 In this modified example, an update unit instructed to update the software of a virtual machine using an update file stored in real storage 130 accesses shared storage area 131 and uses the update file stored in shared storage area 131 to update the software of the virtual machine, i.e., the software stored in software storage area 132. In contrast, an update unit instructed to update the software of a virtual machine using an update file distributed by distribution unit 147 updates the software stored in software storage area 132 using the update file distributed from distribution unit 147 and stored in distribution file storage area 133.

ECU20の実ストレージ220は、実ストレージ130と同様、ソフトウェア保存領域222及び配信ファイル保存領域223を有している。しかしながら、ECU20では、ファイル取得部が取得した更新ファイルを保存する必要がないため、実ストレージ220は共有保存領域131に相当する保存領域を有していない。ソフトウェア保存領域222及び配信ファイル保存領域223は、ソフトウェア保存領域132及び配信ファイル保存領域133と同様、仮想マシンを構成するソフトウェア、及び配信部147から配信された更新ファイルをそれぞれ保存する。 The real storage 220 of the ECU 20, like the real storage 130, has a software storage area 222 and a distributed file storage area 223. However, since the ECU 20 does not need to store update files acquired by the file acquisition unit, the real storage 220 does not have a storage area equivalent to the shared storage area 131. Like the software storage area 132 and the distributed file storage area 133, the software storage area 222 and the distributed file storage area 223 store the software that constitutes the virtual machine and the update files distributed from the distribution unit 147, respectively.

なお、図9は、実ストレージ130が、共有保存領域131、ソフトウェア保存領域132、及び配信ファイル保存領域133の全てを含むものとして図示しているが、実ストレージ130は複数の異なるストレージによって実現されるものであってもよい。例えば、本変形例のソフトウェア保存領域132は不揮発性メモリであるが、共有保存領域131、配信ファイル保存領域133は、不揮発メモリ又は揮発性メモリのいずれでもよい。したがって、共有保存領域131及び配信ファイル保存領域133が、揮発性メモリである実ストレージ130の保存領域にそれぞれ設けられ、ソフトウェア保存領域132が、不揮発性メモリである実ストレージ130の保存領域に設けられてもよい。 Note that while FIG. 9 illustrates real storage 130 as including all of shared storage area 131, software storage area 132, and distribution file storage area 133, real storage 130 may be realized by a number of different storages. For example, in this modified example, software storage area 132 is non-volatile memory, but shared storage area 131 and distribution file storage area 133 may be either non-volatile memory or volatile memory. Thus, shared storage area 131 and distribution file storage area 133 may each be provided in the storage area of real storage 130, which is volatile memory, and software storage area 132 may be provided in the storage area of real storage 130, which is non-volatile memory.

5.ドメイン・アーキテクチャへの適用
次に、実施形態1、2における電子制御システム1をドメイン・アーキテクチャに適用する場合の構成例を説明する。ドメイン・アーキテクチャとは、複数のECUを、その機能、役割、又はネットワーク接続に応じてドメインと称されるグループに分類するとともに、ドメイン毎に同じドメインに属する複数のECUを管理して制御するドメインコントローラECU(以下、DC-ECU)を配置するものである。ドメイン・アーキテクチャでは、機能やネットワークに応じてECUを整理して統合することができるため、車載システムのように多数のECUから構成されるシステムにおいて、将来的なECUの更新作業が容易になるだけでなく、増大しつつあるECUの総数を抑制することが可能となる。
5. Application to Domain Architecture Next, a configuration example in which the electronic control system 1 in the first and second embodiments is applied to a domain architecture will be described. In the domain architecture, a plurality of ECUs are classified into groups called domains according to their functions, roles, or network connections, and a domain controller ECU (hereinafter, DC-ECU) that manages and controls a plurality of ECUs belonging to the same domain is arranged for each domain. In the domain architecture, ECUs can be organized and integrated according to functions and networks, so that in a system composed of a large number of ECUs such as an in-vehicle system, not only is it easy to update ECUs in the future, but it is also possible to suppress the total number of ECUs, which is increasing.

(1)ドメイン・アーキテクチャの概要
図10は、ドメイン・アーキテクチャを簡略的に示した図である。図10に示すドメイン・アーキテクチャは、DC-ECU30A、30B、ゲートウェイECU(以下、GW-ECU)40、及びECU50A、51A、50B、51Bを有している。
(1) Overview of Domain Architecture Fig. 10 is a diagram showing a simplified domain architecture. The domain architecture shown in Fig. 10 includes DC-ECUs 30A and 30B, a gateway ECU (hereinafter, GW-ECU) 40, and ECUs 50A, 51A, 50B, and 51B.

さらに、図10に示すドメイン・アーキテクチャは2つのドメインを有しており、第1のドメイン2AはDC-ECU30A及びECU50A、51Aを、第2のドメイン2BはDC-ECU30B及びECU50B、51Bを、それぞれ有している。上述したとおり、ドメインは、ECUの機能やネットワークに応じて分類されるものであり、車載システムの場合、例えば、車両の駆動系を制御するドメイン、自動運転を制御するドメイン、車載テレビや車載コンピュータといった娯楽機器を制御するドメイン等が挙げられる。 Furthermore, the domain architecture shown in FIG. 10 has two domains, the first domain 2A has DC-ECU 30A and ECUs 50A and 51A, and the second domain 2B has DC-ECU 30B and ECUs 50B and 51B. As mentioned above, domains are classified according to the ECU functions and networks. In the case of an in-vehicle system, for example, there are domains that control the vehicle drive system, domains that control autonomous driving, and domains that control entertainment devices such as in-vehicle televisions and in-vehicle computers.

DC-ECU30Aは第1のドメイン2Aに属するECU50A、51Aを制御し、DC-ECU30Bは第2のドメイン2Bに属するECU50B、51Bを制御する。例えば、第1のドメイン2Aが自動運転を制御するドメインの場合、DC-ECU30Aは、カメラECU、レーダECU、ライダECU、ロケータECU、又は各種の自動運転アプリケーションを搭載するECUといったECU50A、51Aを制御する。DC-ECU30Aはさらに、ECU50A、51Aから出力されたセンサ情報を統合するセンサフュージョンアプリケーションを有し、センサフュージョンアプリケーションからの出力をECU50A、51Aに提供してもよい。 The DC-ECU 30A controls the ECUs 50A and 51A belonging to the first domain 2A, and the DC-ECU 30B controls the ECUs 50B and 51B belonging to the second domain 2B. For example, if the first domain 2A is a domain that controls autonomous driving, the DC-ECU 30A controls the ECUs 50A and 51A, such as a camera ECU, a radar ECU, a lidar ECU, a locator ECU, or an ECU equipped with various autonomous driving applications. The DC-ECU 30A may further have a sensor fusion application that integrates sensor information output from the ECUs 50A and 51A, and may provide output from the sensor fusion application to the ECUs 50A and 51A.

GW-ECU40は、車載ネットワークにおいてゲートウェイ装置として機能するECUである。GW-ECU40は複数のバスに接続され、それぞれのバスを介して他のECUと接続されている。GW-ECU40は例えばドメイン間の通信を中継する。GW-ECU40はさらに、車両外部とドメインとの間のゲートウェイとしての機能も有する。 The GW-ECU 40 is an ECU that functions as a gateway device in the in-vehicle network. The GW-ECU 40 is connected to multiple buses and is connected to other ECUs via each bus. The GW-ECU 40 relays communications between domains, for example. The GW-ECU 40 also functions as a gateway between the outside of the vehicle and the domains.

なお、図10では、DC-ECU30A、GW-ECU40、ECU50A、51Aをそれぞれ異なるECUとして記載しているが、上述した各ECUの機能を他のECUに統合してもよい。例えば、ECU50A、51Aの機能の一部をDC-ECU30Aに統合してもよい。この場合、DC-ECU30Aに統合された機能は、DC-ECU30Aに搭載される仮想マシンによって実現されてもよい。 Note that in FIG. 10, DC-ECU 30A, GW-ECU 40, ECUs 50A, and 51A are depicted as different ECUs, but the functions of each of the above-mentioned ECUs may be integrated into another ECU. For example, some of the functions of ECUs 50A and 51A may be integrated into DC-ECU 30A. In this case, the functions integrated into DC-ECU 30A may be realized by a virtual machine installed in DC-ECU 30A.

(2)電子制御システム1へのドメイン・アーキテクチャの適用例
上述した実施形態では、ECU10及びECU20を有する電子制御システム1を説明した。ここで、図10のドメイン・アーキテクチャを電子制御システム1に適用する場合、更新ファイルを取得して他の仮想マシンに更新ファイルを配信するECU10は、図10のDC-ECU30A、30B(「ドメインコントローラ」に相当)として構成されることが望ましい。この場合、ドメイン・アーキテクチャのDC-ECU30A、30Bはそれぞれ、同じドメインに属するECUに更新指示を行うとともに、必要に応じて更新ファイルの配信を行うことになる。したがって、DC-ECU30A、30Bは、異なるドメインに属するECUの仮想マシンに対して更新指示や更新ファイルの配信を行わない。
(2) Example of Application of Domain Architecture to Electronic Control System 1 In the above embodiment, the electronic control system 1 having the ECU 10 and the ECU 20 has been described. Here, when the domain architecture of FIG. 10 is applied to the electronic control system 1, it is preferable that the ECU 10 that acquires the update file and distributes the update file to other virtual machines is configured as the DC-ECUs 30A and 30B (corresponding to the "domain controller") of FIG. 10. In this case, the DC-ECUs 30A and 30B of the domain architecture each issue an update instruction to an ECU belonging to the same domain, and distribute the update file as necessary. Therefore, the DC-ECUs 30A and 30B do not issue an update instruction or distribute an update file to a virtual machine of an ECU belonging to a different domain.

例えば、ECU10がDC-ECU30Aとして構成される場合、第2のドメイン2Bに含まれるECU(DC-ECU30B、ECU50B、51B)には更新指示及び更新ファイルの配信を行わない。そして、ECU10の実ストレージ130にアクセスするECUは、同じドメイン、すなわち第1のドメイン2Aに属するECUに制限される。同様に、DC-ECU30Bとして構成されたECU10は、第1のドメイン2Aに含まれるECUには更新指示及び更新ファイルの配信を行わない。 For example, when the ECU 10 is configured as DC-ECU 30A, update instructions and update files are not distributed to the ECUs (DC-ECU 30B, ECUs 50B, 51B) included in the second domain 2B. The ECUs that access the actual storage 130 of the ECU 10 are limited to ECUs that belong to the same domain, i.e., the first domain 2A. Similarly, the ECU 10 configured as DC-ECU 30B does not distribute update instructions and update files to the ECUs included in the first domain 2A.

電子制御システム1をドメイン・アーキテクチャとすることにより、ECU間の通信を同一の又は関連するドメイン内に限定することができるため、車載ネットワーク全体の通信量を抑制するすることができ、ひいては、車載ネットワークにおける応答性を高めることが可能となる。 By making the electronic control system 1 a domain architecture, communication between ECUs can be limited to the same or related domains, which reduces the amount of communication in the entire in-vehicle network and ultimately improves the responsiveness of the in-vehicle network.

さらに、ドメインが異なるECUからのアクセスを制限することにより、例えば、一方のドメインに属するECUが外部から攻撃を受けているような場合であっても、異なるドメインまで不正にアクセスされることを防ぐことができる。 Furthermore, by restricting access from ECUs in different domains, it is possible to prevent unauthorized access to different domains, even if, for example, an ECU in one domain is under attack from the outside.

別の例として、ECU10は図10のGW-ECU40(「ゲートウェイ装置」に相当)として構成されてもよい。この場合、ECU20はDC-ECU30A、30B又はECU50A,B、51A,Bとして構成される。この場合、GW-ECU40の実ストレージ130のみが、様々なドメインに属するECUからアクセスされることになる。そのため、ECU10をDC-ECUとして構成する場合と同様、一のドメインに属するECUが外部から攻撃を受けているような場合であっても、異なるドメインまで不正にアクセスされることを防ぐことができる。 As another example, the ECU 10 may be configured as the GW-ECU 40 (corresponding to a "gateway device") in FIG. 10. In this case, the ECU 20 is configured as DC-ECUs 30A, 30B or ECUs 50A, B, 51A, B. In this case, only the actual storage 130 of the GW-ECU 40 will be accessed by ECUs belonging to various domains. Therefore, similar to the case where the ECU 10 is configured as a DC-ECU, even if an ECU belonging to one domain is under attack from the outside, it is possible to prevent unauthorized access to different domains.

6.総括
以上、本発明の各実施形態における電子制御装置、及び当該電子制御装置を備える電子制御システムの特徴について説明した。
6. Summary The features of the electronic control device and the electronic control system including the electronic control device in each embodiment of the present invention have been described above.

各実施形態で使用した用語は例示であるので、同義の用語、あるいは同義の機能を含む用語に置き換えてもよい。 The terms used in each embodiment are merely examples and may be replaced with synonymous terms or terms with equivalent functions.

実施形態の説明に用いたブロック図は、装置の構成を機能毎に分類及び整理したものである。それぞれの機能を示すブロックは、ハードウェア又はソフトウェアの任意の組み合わせで実現される。また、機能を示したものであることから、かかるブロック図は方法の発明、及び当該方法を実現するプログラムの発明の開示としても把握できるものである。 The block diagrams used to explain the embodiments classify and organize the device configuration by function. The blocks showing each function are realized by any combination of hardware or software. In addition, since they show functions, such block diagrams can also be understood as disclosures of method inventions and program inventions that realize the methods.

各実施形態に記載した処理、フロー、及び方法として把握できる機能ブロック、については、一のステップでその前段の他のステップの結果を利用する関係にある等の制約がない限り、順序を入れ替えてもよい。 The order of the functional blocks that can be understood as processes, flows, and methods described in each embodiment may be changed as long as there are no constraints, such as a relationship in which one step uses the results of another step that precedes it.

各実施形態、及び特許請求の範囲で使用する、第1、第2、乃至、第N(Nは整数)、の用語は、同種の2以上の構成や方法を区別するために使用しており、順序や優劣を限定するものではない。 The terms 1st, 2nd, through Nth (N is an integer) used in each embodiment and in the claims are used to distinguish between two or more configurations or methods of the same type, and do not limit the order or superiority or inferiority.

各実施形態の電子制御装置は、車両に搭載される車載を構成する電子制御装置であることを前提としているが、本発明の電子制御装置は、特許請求の範囲で特に限定する場合を除き、任意の電子制御システムに適用される。 The electronic control device in each embodiment is assumed to be an electronic control device that is installed in a vehicle, but the electronic control device of the present invention can be applied to any electronic control system, except as specifically limited by the claims.

また、本発明の装置の形態の例として、以下のものが挙げられる。
部品の形態として、半導体素子、電子回路、モジュール、マイクロコンピュータが挙げられる。
半完成品の形態として、電子制御装置(ECU(Electric Control Unit))、システムボードが挙げられる。
完成品の形態として、携帯電話、スマートフォン、タブレット、パーソナルコンピュータ(PC)、ワークステーション、サーバが挙げられる。
その他、通信機能を有するデバイス等を含み、例えばビデオカメラ、スチルカメラ、カーナビゲーションシステムが挙げられる。
Examples of the form of the device of the present invention are as follows.
Examples of the component form include a semiconductor element, an electronic circuit, a module, and a microcomputer.
Examples of semi-finished products include an electronic control unit (ECU) and a system board.
Finished product forms include mobile phones, smartphones, tablets, personal computers (PCs), workstations, and servers.
Other examples include devices with communication functions, such as video cameras, still cameras, and car navigation systems.

また各装置に、アンテナや通信用インターフェースなど、必要な機能を追加してもよい。 Additionally, necessary functions such as antennas and communication interfaces may be added to each device.

加えて、本発明は、各実施形態で説明した構成及び機能を有する専用のハードウェアで実現できるだけでなく、メモリやハードディスク等の記録媒体に記録した本発明を実現するためのプログラム、及びこれを実行可能な専用又は汎用CPU及びメモリ等を有する汎用のハードウェアとの組み合わせとしても実現できる。 In addition, the present invention can be realized not only by dedicated hardware having the configuration and functions described in each embodiment, but also as a combination of a program for implementing the present invention recorded on a recording medium such as a memory or hard disk, and general-purpose hardware having a dedicated or general-purpose CPU and memory capable of executing the program.

専用や汎用のハードウェアの非遷移的実体的記録媒体(例えば、外部記憶装置(ハードディスク、USBメモリ、CD/BD等)、又は内部記憶装置(RAM、ROM等))に格納されるプログラムは、記録媒体を介して、あるいは記録媒体を介さずにサーバから通信回線を経由して、専用又は汎用のハードウェアに提供することもできる。これにより、プログラムのアップグレードを通じて常に最新の機能を提供することができる。 Programs stored in non-transient, physical recording media (e.g., external storage devices (hard disks, USB memory, CDs/BDs, etc.) or internal storage devices (RAM, ROM, etc.)) of dedicated or general-purpose hardware can also be provided to the dedicated or general-purpose hardware via the recording media, or via a communication line from a server without using a recording media. This makes it possible to always provide the latest functions through program upgrades.

本発明の電子制御装置は、主として自動車に搭載される車載用電子制御装置として説明したが、自動二輪車、船舶、鉄道、航空機等、移動する移動体全般に適用することが可能である。また、移動体に限らず、マイクロコンピュータを包含する製品全般に適用可能である。 The electronic control device of the present invention has been described as an on-board electronic control device that is primarily installed in automobiles, but it can be applied to any moving object, such as motorcycles, ships, trains, and aircraft. It can also be applied to any product that includes a microcomputer, not just moving objects.

1 電子制御システム、10 電子制御装置、110 ハイパーバイザ、120 ハイパーバイザ、130 実ストレージ、140 第1の仮想マシン、141 ファイル取得部、144 仮想ストレージ、146 判定部、147 配信部、148 更新指示部、150 第2の仮想マシン、160 第3の仮想マシン、210 ハイパーバイザ、230 第4の仮想マシン 1 Electronic control system, 10 Electronic control device, 110 Hypervisor, 120 Hypervisor, 130 Real storage, 140 First virtual machine, 141 File acquisition unit, 144 Virtual storage, 146 Determination unit, 147 Distribution unit, 148 Update instruction unit, 150 Second virtual machine, 160 Third virtual machine, 210 Hypervisor, 230 Fourth virtual machine

Claims (16)

ハイパーバイザによって管理される仮想マシンを有する電子制御装置であって、
ソフトウェアを更新するためのファイルを取得するファイル取得部(141)と、
前記ファイルを保存する保存部(130,144)と、
を備え、
前記仮想マシンである第1の仮想マシン(140)は、
前記第1の仮想マシンを管理する第1のハイパーバイザ(110)と、前記第1の仮想マシンに接続された第2の仮想マシン(150,160,230)を管理する第2のハイパーバイザ(110,120,210)とが同じかどうかを判定する判定部(146)と、
前記判定部が前記第1のハイパーバイザと前記第2のハイパーバイザが異なると判定した場合に、前記ファイルを前記第2の仮想マシンに配信する配信部(147)と、
を有する、電子制御装置(10)。
An electronic control device having a virtual machine managed by a hypervisor,
A file acquisition unit (141) for acquiring a file for updating software;
A storage unit (130, 144) for storing the file;
Equipped with
The first virtual machine (140) is a virtual machine.
a determination unit (146) that determines whether a first hypervisor (110) that manages the first virtual machine is the same as a second hypervisor (110, 120, 210) that manages a second virtual machine (150, 160, 230) connected to the first virtual machine;
a delivery unit (147) that delivers the file to the second virtual machine when the determination unit determines that the first hypervisor and the second hypervisor are different;
An electronic control device (10).
前記第1の仮想マシンはさらに、
前記保存部にアクセスすることにより前記ファイルを用いて前記第1の仮想マシンのソフトウェアを更新する更新部(143)を備える、
請求項1記載の電子制御装置。
The first virtual machine further comprises:
an update unit (143) that updates software of the first virtual machine using the file by accessing the storage unit;
The electronic control device according to claim 1.
前記第1の仮想マシンはさらに、前記第2の仮想マシンの更新を指示する更新指示部(148)を備え、
前記更新指示部は、
前記判定部が前記第1のハイパーバイザと前記第2のハイパーバイザが異なると判定した場合に、前記配信部が配信する前記ファイルを用いて前記第2の仮想マシンのソフトウェアを更新することを指示し、
前記判定部が前記第1のハイパーバイザと前記第2のハイパーバイザが同じであると判定した場合に、前記保存部にアクセスすることにより前記ファイルを用いて前記第2の仮想マシンのソフトウェアを更新することを指示する、
請求項1記載の電子制御装置。
The first virtual machine further includes an update instruction unit (148) that instructs the second virtual machine to update;
The update instruction unit is
instructing, when the determination unit determines that the first hypervisor and the second hypervisor are different, to update software of the second virtual machine using the file distributed by the distribution unit;
instructing, when the determination unit determines that the first hypervisor and the second hypervisor are the same, to update software of the second virtual machine using the file by accessing the storage unit;
The electronic control device according to claim 1.
当該電子制御装置が有する複数の前記仮想マシンは一のハイパーバイザによって管理される場合において、前記判定部は、前記第2の仮想マシンは当該電子制御装置が有する仮想マシンであると判定した場合に前記第1のハイパーバイザと前記第2のハイパーバイザが同じであると判定する、
請求項1記載の電子制御装置。
In a case where the plurality of virtual machines owned by the electronic control device are managed by one hypervisor, the determination unit determines that the first hypervisor and the second hypervisor are the same when determining that the second virtual machine is a virtual machine owned by the electronic control device.
The electronic control device according to claim 1.
前記第1のハイパーバイザ及び前記第2のハイパーバイザは同じハイパーバイザであり、
前記保存部は、前記ハイパーバイザが管理する保存部(130)である、
請求項1記載の電子制御装置。
the first hypervisor and the second hypervisor are the same hypervisor;
The storage unit is a storage unit (130) managed by the hypervisor.
The electronic control device according to claim 1.
前記第1の仮想マシン及び前記第2の仮想マシンは、前記保存部に保存された前記ファイルを用いて更新する場合に限り前記保存部にアクセス可能である、
請求項5記載の電子制御装置。
The first virtual machine and the second virtual machine can access the storage unit only when updating the first virtual machine and the second virtual machine using the file stored in the storage unit.
6. The electronic control device according to claim 5.
前記保存部は、前記第1の仮想マシンが実現する保存部(144)である、
請求項1記載の電子制御装置。
The storage unit is a storage unit (144) realized by the first virtual machine.
The electronic control device according to claim 1.
前記判定部はさらに、前記第1の仮想マシンに関する安全性を示す第1の安全度、及び第2の仮想マシンに関する安全性を示す第2の安全度に基づいて、前記ファイルを前記第2の仮想マシンに配信するかどうかを判定する、
請求項1に記載の電子制御装置。
The determination unit further determines whether to deliver the file to the second virtual machine based on a first safety level indicating a safety level related to the first virtual machine and a second safety level indicating a safety level related to the second virtual machine.
The electronic control device according to claim 1 .
前記第1の仮想マシンは、
プラットフォーム(1401)と、
前記プラットフォーム上で動作するアプリケーション(1402)と、
を有する、請求項1記載の電子制御装置。
The first virtual machine comprises:
A platform (1401);
An application (1402) that runs on the platform;
The electronic control device according to claim 1 , further comprising:
当該電子制御装置はさらに、前記第2の仮想マシン(150、160)を有し、
前記第2の仮想マシンは、前記プラットフォームである第1のプラットフォームとは異なる第2のプラットフォーム(1501、1601)を有する、
請求項9に記載の電子制御装置。
The electronic control device further includes the second virtual machine (150, 160),
The second virtual machine has a second platform (1501, 1601) different from the first platform, which is the platform;
The electronic control device according to claim 9.
当該電子制御装置は移動体に搭載される、
請求項1乃至10のいずれかに記載の電子制御装置。
The electronic control device is mounted on a moving object.
11. An electronic control device according to any one of claims 1 to 10.
ハイパーバイザによって管理される仮想マシンを有する電子制御装置で実行されるソフトウェア更新方法であって、
ソフトウェアを更新するためのファイルを取得し(S101)、
前記ファイルを保存部(130,144)に保存し(S103)、
前記仮想マシンである第1の仮想マシン(140)を管理する第1のハイパーバイザ(110)と、前記第1の仮想マシンに接続された第2の仮想マシン(150,160,230)を管理する第2のハイパーバイザ(110,120,210)とが同じかどうかを判定し(S106)、
前記第1のハイパーバイザと前記第2のハイパーバイザが異なる場合に、前記ファイルを前記第2の仮想マシンに配信する(S109)、
ソフトウェア更新方法。
1. A software update method executed on an electronic control device having a virtual machine managed by a hypervisor, comprising:
A file for updating the software is obtained (S101).
The file is stored in a storage unit (130, 144) (S103).
determining whether a first hypervisor (110) that manages a first virtual machine (140) that is the virtual machine is the same as a second hypervisor (110, 120, 210) that manages a second virtual machine (150, 160, 230) connected to the first virtual machine (S106);
When the first hypervisor and the second hypervisor are different, the file is delivered to the second virtual machine (S109);
How to update software.
ハイパーバイザによって管理される仮想マシンを有する電子制御装置で実行可能なソフトウェア更新プログラムであって、
ソフトウェアを更新するためのファイルを取得し(S101)、
前記ファイルを保存部(130,144)に保存し(S103)、
前記仮想マシンである第1の仮想マシン(140)を管理する第1のハイパーバイザ(110)と、前記第1の仮想マシンに接続された第2の仮想マシン(150,160,230)を管理する第2のハイパーバイザ(110,120,210)とが同じかどうかを判定し(S106)、
前記第1のハイパーバイザと前記第2のハイパーバイザが異なる場合に、前記ファイルを前記第2の仮想マシンに配信する(S109)、
処理を前記電子制御装置に実行させる、ソフトウェア更新プログラム。
A software update program executable on an electronic control device having a virtual machine managed by a hypervisor, comprising:
A file for updating the software is obtained (S101).
The file is stored in a storage unit (130, 144) (S103).
determining whether a first hypervisor (110) that manages a first virtual machine (140) that is the virtual machine is the same as a second hypervisor (110, 120, 210) that manages a second virtual machine (150, 160, 230) connected to the first virtual machine (S106);
When the first hypervisor and the second hypervisor are different, the file is delivered to the second virtual machine (S109);
A software update program that causes the electronic control unit to execute a process .
第1の電子制御装置(10)と第2の電子制御装置(20)とを有する電子制御システムであって、
第1のハイパーバイザ(110)によって管理される第1の仮想マシン(140)を有する前記第1の電子制御装置は、
ソフトウェアを更新するためのファイルを取得するファイル取得部(141)と、
前記ファイルを保存する保存部(130,144)と、
を備え、前記第1の仮想マシンは、
前記第1のハイパーバイザと、前記第2の電子制御装置が有する第2の仮想マシン(230)を管理する第2のハイパーバイザ(210)とが同じかどうかを判定する判定部(146)と、
前記判定部が前記第1のハイパーバイザと前記第2のハイパーバイザが異なると判定した場合に、前記ファイルを前記第2の仮想マシンに配信する配信部(147)と、
を有し、
前記第2の仮想マシンは、
前記保存部にアクセスすることにより前記ファイルを用いて、又は前記配信部が配信する前記ファイルを用いて、前記第2の仮想マシンを更新する更新部(231)を有する、
電子制御システム(1)。
An electronic control system having a first electronic control unit (10) and a second electronic control unit (20),
The first electronic control device having a first virtual machine (140) managed by a first hypervisor (110),
A file acquisition unit (141) for acquiring a file for updating software;
A storage unit (130, 144) for storing the file;
The first virtual machine comprises:
a determination unit (146) that determines whether the first hypervisor is the same as a second hypervisor (210) that manages a second virtual machine (230) of the second electronic control device;
a delivery unit (147) that delivers the file to the second virtual machine when the determination unit determines that the first hypervisor and the second hypervisor are different;
having
The second virtual machine comprises:
an update unit (231) that updates the second virtual machine using the file by accessing the storage unit or using the file distributed by the distribution unit;
Electronic control system (1).
当該電子制御システムは、前記第1の電子制御装置及び前記第2の電子制御装置を含むドメイン(2A、2B)を有しており、
前記第1の電子制御装置は、前記ドメインに含まれる電子制御装置を制御するドメインコントローラ(30A、30B)である、
請求項14記載の電子制御システム。
The electronic control system has a domain (2A, 2B) including the first electronic control device and the second electronic control device,
The first electronic control device is a domain controller (30A, 30B) that controls the electronic control devices included in the domain.
15. The electronic control system of claim 14.
当該電子制御システムは、前記第2の電子制御装置を含むドメイン(2A、2B)を有しており、
前記第1の電子制御装置は、複数のバスに接続されたゲートウェイ装置(40)であり、
前記第2の電子制御装置は、前記複数のバスのうち一のバスを介して前記ゲートウェイ装置に接続された、前記ドメインに含まれる電子制御装置を制御するドメインコントローラ(30A、30B)、又は、前記ドメインコントローラによって制御される前記電子制御装置(50A、51A、50B、51B)である、
請求項14記載の電子制御システム。
The electronic control system has a domain (2A, 2B) including the second electronic control device,
The first electronic control device is a gateway device (40) connected to a plurality of buses;
The second electronic control device is a domain controller (30A, 30B) that controls the electronic control devices included in the domain and is connected to the gateway device via one of the plurality of buses, or the electronic control device (50A, 51A, 50B, 51B) that is controlled by the domain controller.
15. The electronic control system of claim 14.
JP2021178151A 2020-11-27 2021-10-29 Electronic control device, software update method, software update program, and electronic control system Active JP7707863B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/534,490 US11836476B2 (en) 2020-11-27 2021-11-24 Electronic control unit, software update method, software update program product and electronic control system
DE102021130898.4A DE102021130898A1 (en) 2020-11-27 2021-11-25 ELECTRONIC CONTROL UNIT, SOFTWARE UPDATE PROCEDURE, SOFTWARE UPDATE PROGRAM AND ELECTRONIC CONTROL SYSTEM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2020197505 2020-11-27
JP2020197505 2020-11-27

Publications (2)

Publication Number Publication Date
JP2022085862A JP2022085862A (en) 2022-06-08
JP7707863B2 true JP7707863B2 (en) 2025-07-15

Family

ID=81892243

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021178151A Active JP7707863B2 (en) 2020-11-27 2021-10-29 Electronic control device, software update method, software update program, and electronic control system

Country Status (1)

Country Link
JP (1) JP7707863B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013161299A (en) 2012-02-06 2013-08-19 Toyota Motor Corp Information processing apparatus and interface access method
JP2020173561A (en) 2019-04-09 2020-10-22 株式会社オートネットワーク技術研究所 On-vehicle computer, on-vehicle communication system, computer execution method, and computer program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013161299A (en) 2012-02-06 2013-08-19 Toyota Motor Corp Information processing apparatus and interface access method
JP2020173561A (en) 2019-04-09 2020-10-22 株式会社オートネットワーク技術研究所 On-vehicle computer, on-vehicle communication system, computer execution method, and computer program

Also Published As

Publication number Publication date
JP2022085862A (en) 2022-06-08

Similar Documents

Publication Publication Date Title
US11836475B2 (en) Electronic control unit, software update method, software update program product and electronic control system
US11836476B2 (en) Electronic control unit, software update method, software update program product and electronic control system
KR102720909B1 (en) Software Upgrade Methods, Devices and Systems
CA3111427C (en) Communication method, apparatus, computer-readable storage medium, and chip
US12347322B2 (en) Unmanned aircraft identity module and storage method
US11119970B2 (en) Resource sharing among vehicle applications connected via a bus
JP7683458B2 (en) Electronic control device, software update method, software update program, and electronic control system
WO2018127394A1 (en) Scalable control system for a motor vehicle
CN111666133A (en) Vehicle-mounted infrastructure for automatically driving vehicle
Keßler et al. The software defined vehicle–technical and organizational challenges and opportunities
CN117407187A (en) Data transmission method and device, multi-core processor and storage medium
JP7707864B2 (en) Electronic control device, software update method, software update program, and electronic control system
US12217040B2 (en) Electronic control unit, software update method, software update program product and electronic control system
JP7707863B2 (en) Electronic control device, software update method, software update program, and electronic control system
JP7494712B2 (en) Electronic control device, software update method, software update program, and electronic control system
JP2023170662A (en) Electronic control device, software update method, software update program, and electronic control system
CN120122959A (en) Installing and updating software in the vehicle
JP7771892B2 (en) Update control device, update control method, and update control program
JP7733816B2 (en) In-vehicle electronic equipment
US11659037B2 (en) Control communication system
JP7815993B2 (en) Update control device, update control method, and update control program
JP2023170887A (en) Electronic control device, software update method, and software update program
EP4654016A1 (en) Cohesive framework of runtime characterization of dynamic services in software-defined vehicle architectures
EP4734485A1 (en) Signal processing device and vehicle display device comprising same
JP2021093090A (en) Resource allocation system, server, and computing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20240510

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20250129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20250218

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20250310

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: 20250603

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250616

R150 Certificate of patent or registration of utility model

Ref document number: 7707863

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150