JP6814756B2 - Hypervisor, arithmetic unit - Google Patents

Hypervisor, arithmetic unit Download PDF

Info

Publication number
JP6814756B2
JP6814756B2 JP2018021377A JP2018021377A JP6814756B2 JP 6814756 B2 JP6814756 B2 JP 6814756B2 JP 2018021377 A JP2018021377 A JP 2018021377A JP 2018021377 A JP2018021377 A JP 2018021377A JP 6814756 B2 JP6814756 B2 JP 6814756B2
Authority
JP
Japan
Prior art keywords
application
hypervisor
operating system
cpu
interrupt
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
JP2018021377A
Other languages
Japanese (ja)
Other versions
JP2019139453A (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.)
Hitachi Astemo Ltd
Original Assignee
Hitachi Automotive Systems Ltd
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 Hitachi Automotive Systems Ltd filed Critical Hitachi Automotive Systems Ltd
Priority to JP2018021377A priority Critical patent/JP6814756B2/en
Priority to DE112019000308.9T priority patent/DE112019000308T5/en
Priority to PCT/JP2019/003223 priority patent/WO2019155966A1/en
Publication of JP2019139453A publication Critical patent/JP2019139453A/en
Application granted granted Critical
Publication of JP6814756B2 publication Critical patent/JP6814756B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0712Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a virtual computing platform, e.g. logically partitioned systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45579I/O management, e.g. providing access to device drivers or storage
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45587Isolation or security of virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Stored Programmes (AREA)

Description

本発明は、ハイパーバイザ、および演算装置に関する。 The present invention relates to a hypervisor and an arithmetic unit.

近年、車両に搭載され演算を行う車載装置の重要性が増している。車載装置における演算処理は高い可用性が要求され、ある装置または装置のある部分に何らかの問題が生じた場合は別な装置または装置の他の部分で同様の処理を行うこと、いわゆるマイグレーションが求められる。その一方で車載装置が扱うデータ量が増加しており、演算能力の向上が要求されている。演算能力の向上は、従来はプロセッサの動作周波数の高速化により達成されていたが、製造プロセスの微細化速度の鈍化や微細化に伴う発熱量の増加の問題により、近年は種類の異なるCPUを組み合わせる構成が選択される傾向にある。特許文献1には、車両に搭載された車載機器を制御するために、第1の電子制御装置と第2の電子制御装置とが連携した処理を行う車両用制御システムであって、前記第1の電子制御装置と前記第2の電子制御装置とは、それぞれ、連携処理を行うための連携処理用アプリケーションプログラムを有するとともに、それら連携処理用アプリケーションプログラムを協調して実行させるためのベーシックソフトウエアとしての役割を果たす、所定の役割分担の下に協調して動作する第1OSプログラムと第2OSプログラムとをそれぞれ有しており、前記第2の電子制御装置が保有する第2OSプログラムは、分担する役割が異なる複数の中から選定されたものであり、前記第1の電子制御装置が保有する第1OSプログラムは、分担する役割を変更可能に構成され、それにより、分担する役割が異なる複数の中のいずれの第2OSプログラムとも協調した動作を行うことが可能であって、前記第1の電子制御装置は、前記第2の電子制御装置から、前記第2OSプログラムが分担する役割についての情報を取得する取得部と、前記取得部により取得した、前記第2OSプログラムが分担する役割を示す情報に基づき、当該第2OSプログラムと協調して動作することができるように、第1OSプログラムの分担する役割を決定する決定部と、を備える車両用制御システムが開示されている。 In recent years, the importance of in-vehicle devices mounted on vehicles and performing calculations has increased. High availability is required for arithmetic processing in an in-vehicle device, and when a problem occurs in a certain device or a certain part of the device, the same processing is performed in another device or another part of the device, so-called migration is required. On the other hand, the amount of data handled by in-vehicle devices is increasing, and improvement of computing power is required. Conventionally, the improvement of computing power has been achieved by increasing the operating frequency of the processor, but in recent years, different types of CPUs have been introduced due to the problem of slowing down the miniaturization speed of the manufacturing process and increasing the amount of heat generated due to miniaturization. There is a tendency for the configuration to be combined to be selected. Patent Document 1 is a vehicle control system that performs processing in which a first electronic control device and a second electronic control device cooperate with each other in order to control an in-vehicle device mounted on a vehicle. The electronic control device of the above and the second electronic control device each have an application program for cooperative processing for performing cooperative processing, and as basic software for executing the application program for cooperative processing in cooperation with each other. It has a first OS program and a second OS program that operate in cooperation with each other under a predetermined division of roles, and the second OS program possessed by the second electronic control device has a shared role. The first OS program possessed by the first electronic control device is configured so that the shared roles can be changed, whereby the shared roles are selected from among the plurality of different roles. It is possible to perform operations in cooperation with any of the second OS programs, and the first electronic control device acquires information about the roles shared by the second OS program from the second electronic control device. Based on the acquisition unit and the information acquired by the acquisition unit indicating the roles shared by the second OS program, the roles shared by the first OS program are determined so that the second OS program can operate in cooperation with the acquisition unit. A vehicle control system comprising a decision-making unit is disclosed.

特開2017−128308号公報Japanese Unexamined Patent Publication No. 2017-128308

特許文献1に記載されている発明では、異なる種類のCPUを用いる場合にマイグレーションを実現できない。 In the invention described in Patent Document 1, migration cannot be realized when different types of CPUs are used.

本発明の第1の態様によるハイパーバイザは、アプリケーションを実行可能な複数のオペレーティングシステムを実行可能な仮想環境を提供し複数のCPUにより動作するハイパーバイザであって、前記複数のオペレーティングシステムの稼働状態を監視する監視部と、前記稼働状態に基づき第1の前記オペレーティングシステムにおいて実行されている第1のアプリケーションに代えて、第2の前記オペレーティングシステムにおいて前記第1のアプリケーションと同様の機能を有する第2のアプリケーションを動作させる移動管理部と、を備え、前記移動管理部は、前記第2のオペレーティングシステムを実行しているCPUの種類に基づき前記第2のアプリケーションを実現するプログラムファイルを選択する。
本発明の第2の態様によるハイパーバイザは、アプリケーションを実行可能な複数のオペレーティングシステムを実行可能な仮想環境を提供し複数のCPUにより動作するハイパーバイザであって、前記複数のオペレーティングシステムの稼働状態を監視する監視部と、前記稼働状態に基づき第1の前記オペレーティングシステムにおいて実行されている第1のアプリケーションに代えて、第2の前記オペレーティングシステムにおいて前記第1のアプリケーションと同様の機能を有する第2のアプリケーションを動作させる移動管理部と、割り込み要求の番号と前記オペレーティングシステムの対応関係を示す割り込み対応情報と、前記割り込み対応情報に基づき前記オペレーティングシステムに対応する番号の前記割り込み要求を転送し、前記移動管理部が前記第2のアプリケーションを動作させると前記割り込み対応情報における前記第1のオペレーティングシステムを前記第2のオペレーティングシステムに書き換える割り込み転送部とを備える。
本発明の第3の態様による演算装置は、アプリケーションを実行可能な複数のオペレーティングシステムを実行可能な仮想環境を提供し複数のCPUにより動作するハイパーバイザを備える演算装置であって、前記ハイパーバイザは、前記複数のオペレーティングシステムの稼働状態を監視する監視部と、前記稼働状態に基づき第1の前記オペレーティングシステムにおいて実行されている第1のアプリケーションに代えて、第2の前記オペレーティングシステムにおいて前記第1のアプリケーションと同様の機能を有する第2のアプリケーションを動作させる移動管理部と、を備え、前記移動管理部は、前記第2のオペレーティングシステムを実行しているCPUの種類に基づき前記第2のアプリケーションを実現するプログラムファイルを選択する。
The hypervisor according to the first aspect of the present invention is a hypervisor that provides a virtual environment capable of executing a plurality of operating systems capable of executing an application and is operated by a plurality of CPUs, and is an operating state of the plurality of operating systems. And a second application having the same function as the first application in the second operating system, instead of the monitoring unit that monitors the above and the first application running in the first operating system based on the operating state. The movement management unit includes a movement management unit that operates the second application, and the movement management unit selects a program file that realizes the second application based on the type of the CPU that is executing the second operating system.
The hypervisor according to the second aspect of the present invention is a hypervisor that provides a virtual environment capable of executing a plurality of operating systems capable of executing an application and is operated by a plurality of CPUs, and is an operating state of the plurality of operating systems. And a second application having the same function as the first application in the second operating system, instead of the monitoring unit for monitoring and the first application running in the first operating system based on the operating state. The movement management unit that operates the application of No. 2, the interrupt correspondence information indicating the correspondence relationship between the interrupt request number and the operating system, and the interrupt request of the number corresponding to the operating system based on the interrupt correspondence information are transferred. When the movement management unit operates the second application, it includes an interrupt transfer unit that rewrites the first operating system in the interrupt correspondence information to the second operating system.
The computing device according to the third aspect of the present invention is a computing device that provides a virtual environment capable of executing a plurality of operating systems capable of executing an application and includes a hypervisor that is operated by a plurality of CPUs. , The first in the second operating system, instead of the monitoring unit that monitors the operating states of the plurality of operating systems and the first application running in the first operating system based on the operating states. The movement management unit includes a movement management unit that operates a second application having the same function as the application of the above, and the movement management unit is based on the type of CPU running the second operating system. Select the program file that realizes.

本発明によれば、異なる種類のCPUを用いる場合でもマイグレーションを実現できる。 According to the present invention, migration can be realized even when different types of CPUs are used.

ECU1000の構成図Configuration diagram of ECU 1000 図2(a)および図2(b)はアプリ対応表1150の一例を示す図2 (a) and 2 (b) are diagrams showing an example of the application correspondence table 1150. 図3(a)および図3(b)は割り込み対応表1141の一例を示す図3 (a) and 3 (b) are diagrams showing an example of the interrupt correspondence table 1141. アプリ移動表1121の一例を示す図Diagram showing an example of application movement table 1121 マイクロカーネル抽象化部1110の動作を表すフローチャートFlowchart showing the operation of the microkernel abstraction unit 1110 変形例において、ハイパーバイザ1100を実現するプログラムファイルを記録媒体やデータ信号を通じてECU1000に提供する様子を示す図In a modified example, a diagram showing how a program file that realizes the hypervisor 1100 is provided to the ECU 1000 through a recording medium or a data signal.

―第1の実施の形態―
以下、図1〜図5を参照して、本発明に係るハイパーバイザの第1の実施の形態を説明する。ソフトウエアであるハイパーバイザは様々な演算装置に実装可能であるが、本実施の形態ではハイパーバイザがECU、すなわち電子制御装置(Electronic
Control Unit)に備えられる例を説明する。
-First Embodiment-
Hereinafter, the first embodiment of the hypervisor according to the present invention will be described with reference to FIGS. 1 to 5. The hypervisor, which is software, can be mounted on various arithmetic units, but in the present embodiment, the hypervisor is an ECU, that is, an electronic control device (Electronic).
An example provided in the Control Unit) will be described.

(ECU1000の構成)
図1は本発明にかかるハイパーバイザ1100を備えるECU1000の構成図である。ECU1000は、ハードウエア層100と、ハイパーバイザ1100と、仮想環境1200とから構成される。ハードウエア層100は複数のハードウエアから構成され、ハイパーバイザ1100の機能はハードウエア層100に含まれるハードウエアにより実現される。仮想環境1200はハイパーバイザ1100によって実現される環境であり、その仮想環境1200の中でオペレーティングシステム(以下、「OS」と呼ぶ)およびアプリケーション(以下、「アプリ」と呼ぶ)が動作する。すなわち仮想環境1200もハードウエア層100に含まれるハードウエアにより実現される。
(Configuration of ECU 1000)
FIG. 1 is a configuration diagram of an ECU 1000 including the hypervisor 1100 according to the present invention. The ECU 1000 is composed of a hardware layer 100, a hypervisor 1100, and a virtual environment 1200. The hardware layer 100 is composed of a plurality of hardware, and the functions of the hypervisor 1100 are realized by the hardware included in the hardware layer 100. The virtual environment 1200 is an environment realized by the hypervisor 1100, and an operating system (hereinafter referred to as "OS") and an application (hereinafter referred to as "application") operate in the virtual environment 1200. That is, the virtual environment 1200 is also realized by the hardware included in the hardware layer 100.

(ハードウエア層100)
ハードウエア層100は、第1CPU11と、第2CPU12と、第3CPU13と、メモリ20と、フラッシュメモリ30とを備える。第1CPU11、第2CPU12、および第3CPU13は中央演算装置であり、それぞれ独立に動作する。第1CPU11、第2CPU12、および第3CPU13は互いにハードウエア構成が異なる。たとえば実行可能な命令セット、レジスタ構成、および動作周波数の少なくとも1つが異なる。なお図1では3つのCPUを示しているが、ECU1000はハードウエア構成が異なるCPUを少なくとも2つ備えればよい。
(Hardware layer 100)
The hardware layer 100 includes a first CPU 11, a second CPU 12, a third CPU 13, a memory 20, and a flash memory 30. The first CPU 11, the second CPU 12, and the third CPU 13 are central processing units, and each operates independently. The first CPU 11, the second CPU 12, and the third CPU 13 have different hardware configurations from each other. For example, at least one of the executable instruction sets, register configurations, and operating frequencies is different. Although three CPUs are shown in FIG. 1, the ECU 1000 may include at least two CPUs having different hardware configurations.

メモリ20は揮発性の読み書き可能な記憶領域、いわゆるRAMであり、上述した各CPUがアクセスする。メモリ20は、それぞれのCPUのみがアクセス可能な領域と全てのCPUがアクセス可能な領域である共有メモリ21とを含む。すなわち第1CPU11、第2CPU12、および第3CPU13は、共有メモリ21を介して相互に情報を授受できる。フラッシュメモリ30は不揮発性の記憶領域である。フラッシュメモリ30には、ハイパーバイザ、複数のOSおよび複数のアプリを実現するプログラムファイルが格納される。 The memory 20 is a volatile readable and writable storage area, a so-called RAM, which is accessed by each CPU described above. The memory 20 includes an area accessible only by each CPU and a shared memory 21 which is an area accessible by all CPUs. That is, the first CPU 11, the second CPU 12, and the third CPU 13 can exchange information with each other via the shared memory 21. The flash memory 30 is a non-volatile storage area. The flash memory 30 stores a hypervisor, a plurality of OSs, and a program file that realizes a plurality of applications.

(仮想環境1200)
仮想環境1200では、OSが実行され、それらのOSにおいてアプリケーションが実行される。たとえば図1に示すように仮想環境1200では、第1OS1211と、第2OS1212と、第3OS1213が実行される。第1OS1211は第1CPU11により実行され、第2OS1212は第2CPU12により実行され、第3OS1213は第3CPU13により実行される。それぞれのOSではアプリケーションを実行できる。以下では、CPUとOSの組み合わせを「環境」または「実行環境」と呼ぶ。たとえば同一のOSを用いる場合であっても実行するCPUが異なる場合は、環境が異なると判断する。
(Virtual environment 1200)
In the virtual environment 1200, OSs are executed, and applications are executed in those OSs. For example, as shown in FIG. 1, in the virtual environment 1200, the first OS1211, the second OS1212, and the third OS1213 are executed. The first OS 1211 is executed by the first CPU 11, the second OS 1212 is executed by the second CPU 12, and the third OS 1213 is executed by the third CPU 13. Applications can be executed on each OS. Hereinafter, the combination of CPU and OS is referred to as "environment" or "execution environment". For example, even when the same OS is used, if the CPUs to be executed are different, it is determined that the environment is different.

(アプリのプログラムファイル)
本実施の形態ではアプリとは、ある特定の機能を発揮するコンピュータプログラムである。すなわち実現する機能が同一であれば、アプリケーションの実体、すなわちプログラムファイルが異なる場合でも同一のアプリとして扱う。すなわちアプリが同一か否かは、使用する命令コード等を考慮せずに判断する。ただし厳密には、プログラムファイルが異なる場合にはプログラムファイルを読み込んで実行されるアプリは同一ではないとする考え方もある。
(App program file)
In the present embodiment, the application is a computer program that exerts a specific function. That is, if the functions to be realized are the same, even if the substance of the application, that is, the program file is different, it is treated as the same application. That is, whether or not the applications are the same is determined without considering the instruction code to be used. However, strictly speaking, there is also the idea that if the program files are different, the apps that read the program files and are executed are not the same.

ここでアプリケーションの実体、すなわちプログラムファイルについて説明する。プログラムファイルは、「実行可能ファイル」や「バイナリデータ」とも呼ばれる。ただしプログラムファイルは人間が読めるテキストデータでもよい。プログラムファイルがテキストデータの場合は、ECU1000がインタプリタに相当する機能を有する。 Here, the substance of the application, that is, the program file will be described. Program files are also called "executable files" or "binary data". However, the program file may be text data that can be read by humans. When the program file is text data, the ECU 1000 has a function corresponding to an interpreter.

プログラムファイルは、原則としてOSごと、CPUごとに用意される。すなわち実行環境が異なる場合は原則として異なるプログラムファイルを用いる必要がある。そのためあるアプリを複数のCPU、複数のOS上で実現するためには複数のプログラムファイルを用意する必要がある。ただしハードウエアが互換性を有している場合や共通の命令セットしか使用していない場合などは、1つのプログラムファイルを複数の実行環境で使用できる場合もある。 As a general rule, program files are prepared for each OS and each CPU. That is, if the execution environment is different, it is necessary to use different program files in principle. Therefore, in order to realize a certain application on a plurality of CPUs and a plurality of OSs, it is necessary to prepare a plurality of program files. However, if the hardware is compatible or if only a common instruction set is used, one program file may be used in multiple execution environments.

図2(a)および図2(b)は、後述するアプリ対応表1150の一例を示す図である。ここではまず図2(a)を参照してアプリ対応表1150を説明する。図2(a)の1行目には、画像処理アプリは、タイプC1のCPUを用いてオペレーティングシステムO1で実行するためにはプログラムファイル「bin01」を用いることが示されている。すなわち図2では、画像処理アプリを3つのCPUタイプと3つのOSの任意の組み合わせで実行するには、bin01〜bin08の8個のプログラムファイルが必要であることが示されている。換言するとbin01〜bin08の8個のプログラムファイルは、同様の機能を有するともいえる。また、タイプC2のCPUとO2の組み合わせ、およびタイプC3のCPUとO2の組み合わせでは、同一のプログラムファイル「bin05」を使用できる旨が記載されている。 2 (a) and 2 (b) are diagrams showing an example of the application correspondence table 1150 described later. Here, first, the application correspondence table 1150 will be described with reference to FIG. 2A. The first line of FIG. 2A shows that the image processing application uses the program file "bin01" to be executed by the operating system O1 using the CPU of type C1. That is, FIG. 2 shows that eight program files of bin01 to bin08 are required to execute the image processing application with any combination of the three CPU types and the three OSs. In other words, it can be said that the eight program files of bin01 to bin08 have the same function. Further, it is described that the same program file "bin05" can be used in the combination of the type C2 CPU and O2 and the combination of the type C3 CPU and O2.

なおCPUごとのCPUタイプはあらかじめ定められており、たとえばレジスタ構成や対応する命令セットなどにより決定される。たとえば動作周波数のみが異なる2つのCPUは、レジスタ構成も対応する命令セットも同一なのでCPUタイプは同一となる。 The CPU type for each CPU is predetermined, and is determined by, for example, the register configuration and the corresponding instruction set. For example, two CPUs that differ only in operating frequency have the same register configuration and the corresponding instruction set, so that the CPU types are the same.

前述のフラッシュメモリ30には、アプリを様々なOSとCPUの組み合わせで実行可能なように、1つのアプリごとに複数のプログラムファイルが格納される。本実施の形態では、特定のアプリを仮想環境1200において必要に応じて異なるOSに移動、すなわちマイグレーションさせ稼働を継続させる。本実施の形態において移動させる対象となるアプリを「管理対象アプリ」と呼ぶ。管理対象アプリは、ECU1000が主目的とする処理や機能を担うアプリである。OSを動作させるためのアプリは管理対象アプリには含まれない。 In the flash memory 30 described above, a plurality of program files are stored for each application so that the application can be executed by various combinations of OS and CPU. In the present embodiment, a specific application is moved to a different OS in the virtual environment 1200 as needed, that is, migrated and the operation is continued. The application to be moved in the present embodiment is referred to as a "managed application". The management target application is an application responsible for processing and functions whose main purpose is the ECU 1000. The application for operating the OS is not included in the managed application.

なお図2(a)に示すアプリ対応表1150の例ではCPUタイプとOSの対応を網羅的に示していた。しかしECU1000においてCPUタイプごとに実行するOSが限定されている場合には、図2(b)に示すようにアプリ対応表1150には実行するCPUタイプとOSの組み合わせだけを記載してもよい。図1に戻って説明を続ける。 In the example of the application correspondence table 1150 shown in FIG. 2A, the correspondence between the CPU type and the OS is comprehensively shown. However, when the OS to be executed is limited for each CPU type in the ECU 1000, only the combination of the CPU type and the OS to be executed may be described in the application correspondence table 1150 as shown in FIG. 2 (b). The explanation will be continued by returning to FIG.

(ハイパーバイザ1100)
ハイパーバイザ1100は、マイクロカーネル抽象化部1110と、ハードウエア依存マイクロカーネル1170とを備える。ハイパーバイザ1100は第1CPU11、第2CPU12、および第3CPU13が協力して実行する。換言するとハイパーバイザ1100が提供する機能は3つのCPUがそれぞれ動作することにより実現される。
(Hypervisor 1100)
The hypervisor 1100 includes a microkernel abstraction unit 1110 and a hardware-dependent microkernel 1170. The hypervisor 1100 is executed by the first CPU 11, the second CPU 12, and the third CPU 13 in cooperation with each other. In other words, the functions provided by the hypervisor 1100 are realized by operating each of the three CPUs.

ハードウエア依存マイクロカーネル1170は、第1CPU11に対応する第1ハードウエア依存マイクロカーネル(以下、「第1HDM」と呼ぶ)1171と、第2CPU12に対応する第2ハードウエア依存マイクロカーネル(以下、「第2HDM」と呼ぶ)1172と、第3CPU13に対応する第3ハードウエア依存マイクロカーネル(以下、「第3HDM」と呼ぶ)1173とを備える。 The hardware-dependent microkernel 1170 includes a first hardware-dependent microkernel (hereinafter, referred to as “first HDM”) 1171 corresponding to the first CPU 11, and a second hardware-dependent microkernel (hereinafter, “first”) corresponding to the second CPU 12. It includes 1172 (referred to as "2HDM") and a third hardware-dependent microkernel (hereinafter referred to as "third HDM") 1173 corresponding to the third CPU 13.

第1HDM1171は、第1CPU11がハイパーバイザ1100の機能を実現するためにのソフトウエアである。たとえば第1HDM1171は、ハイパーバイザ1100が発行する実行命令を第1CPU11が実行可能な命令に書き換える。第2HDM1172は、第2CPU12がハイパーバイザ1100の機能を実現するためにのソフトウエアである。第3HDM1173は、第3CPU13がハイパーバイザ1100の機能を実現するためのソフトウエアである。 The first HDM1171 is software for the first CPU 11 to realize the function of the hypervisor 1100. For example, the first HDM1171 rewrites the execution instruction issued by the hypervisor 1100 into an instruction that can be executed by the first CPU 11. The second HDM1172 is software for the second CPU 12 to realize the function of the hypervisor 1100. The third HDM1173 is software for the third CPU 13 to realize the function of the hypervisor 1100.

第1HDM1171、第2HDM1172、および第3HDM1173の相互の通信により、ハイパーバイザ1100は仮想環境1200を構築する。仮想環境1200では任意の数のOSが実行され、OS上ではアプリケーションが実行される。すなわちこれらのOSおよびアプリケーションは、いずれかのCPUにより実行される。1つのCPUが実行するOSおよびアプリケーションの数は任意である。 The hypervisor 1100 constructs a virtual environment 1200 by mutual communication between the first HDM1171, the second HDM1172, and the third HDM1173. An arbitrary number of OSs are executed in the virtual environment 1200, and applications are executed on the OSs. That is, these OSs and applications are executed by either CPU. The number of OSs and applications executed by one CPU is arbitrary.

マイクロカーネル抽象化部1110は、アプリ移動管理部1120と、監視部1160と、割り込み転送部1140とを備える。マイクロカーネル抽象化部1110は、管理対象アプリが現在どの環境で動作しているかを示す情報を共有メモリ21に保存する。割り込み転送部1140は、ハードウエア依存の割り込み要求信号(Interrupt ReQuest、以下「IRQ」と呼ぶ)を管理する割り込み対応表1141を有する。IRQは種類を判別するために番号が付されており、たとえばIRQ1〜IRQ15が存在する。割り込み対応表1141は、たとえばIRQ0〜IRQ15のそれぞれについて、仮想環境1200のいずれのOSに転送するかを示すものである。 The microkernel abstraction unit 1110 includes an application movement management unit 1120, a monitoring unit 1160, and an interrupt transfer unit 1140. The microkernel abstraction unit 1110 stores information indicating in which environment the managed application is currently operating in the shared memory 21. The interrupt transfer unit 1140 has an interrupt correspondence table 1141 that manages a hardware-dependent interrupt request signal (Interrupt ReQuest, hereinafter referred to as “IRQ”). The IRQs are numbered to determine the type, and there are, for example, IRQ1 to IRQ15. The interrupt correspondence table 1141 shows, for example, to which OS of the virtual environment 1200 each of IRQ0 to IRQ15 is transferred.

図3は割り込み対応表1141の一例を示す図である。図3(a)はある状態における割り込み対応表1141の一例を示す図であり、図3(b)は後述する処理により書き換えられた後の割り込み対応表1141を示す図である。図3に示すように割り込み対応表1141は、0〜15のIRQ番号と、それぞれのIRQ番号に対応する転送先のOSの名称が格納される。なお図3に示す例では全てのIRQにいずれかのOSが割り当てられているが、割り当て対象が存在しないIRQ番号があってもよい。 FIG. 3 is a diagram showing an example of the interrupt correspondence table 1141. FIG. 3A is a diagram showing an example of the interrupt correspondence table 1141 in a certain state, and FIG. 3B is a diagram showing the interrupt correspondence table 1141 after being rewritten by the process described later. As shown in FIG. 3, the interrupt correspondence table 1141 stores the IRQ numbers 0 to 15 and the name of the transfer destination OS corresponding to each IRQ number. In the example shown in FIG. 3, any OS is assigned to all IRQs, but there may be an IRQ number for which there is no allocation target.

監視部1160は、仮想環境1200において実行されているOSおよび動作している管理対象アプリ、さらにはハードウエア層100の各CPUを対象として定期的にポーリング、すなわち動作情報の取得を行う。監視部1160は、取得した情報をアプリ移動管理部1120に出力する。監視部1160が取得する情報は、各OSにおけるCPU負荷、空きメモリ容量、管理対象アプリのメモリ使用量およびCPU使用率、ハードウエア層100のCPUが動作しているか否かなどである。 The monitoring unit 1160 periodically polls the OS running in the virtual environment 1200, the managed application running, and each CPU of the hardware layer 100, that is, acquires operation information. The monitoring unit 1160 outputs the acquired information to the application movement management unit 1120. The information acquired by the monitoring unit 1160 includes the CPU load in each OS, the free memory capacity, the memory usage amount and the CPU usage rate of the managed application, and whether or not the CPU of the hardware layer 100 is operating.

アプリ移動管理部1120は、アプリ移動表1121およびアプリ対応表1150を有する。アプリ移動管理部1120は、監視部1160からポーリングにより取得した情報を受け取り、管理対象アプリを移動させるか否かを判断する。アプリ移動管理部1120は、管理対象アプリを実行しているOSが停止している場合や管理対象アプリの動作に異常がある場合に管理対象アプリを移動させると判断する。 The application movement management unit 1120 has an application movement table 1121 and an application correspondence table 1150. The application movement management unit 1120 receives the information acquired by polling from the monitoring unit 1160, and determines whether or not to move the managed application. The application movement management unit 1120 determines that the managed application is moved when the OS running the managed application is stopped or when there is an abnormality in the operation of the managed application.

アプリ移動管理部1120はたとえば、OSを稼働させているCPUが停止している場合にOSが停止していると判断する。またアプリ移動管理部1120は、管理対象アプリのメモリ使用量が増加し続ける場合、管理対象アプリのCPU負荷が0%、または100%が所定時間以上継続する場合に管理対象アプリに異常があると判断する。そしてアプリ移動管理部1120はアプリ対応表1150を参照して移動先で実行するプログラムファイルを決定し、割り込みを転送した上で移動先で管理対象アプリを動作させる。 For example, the application movement management unit 1120 determines that the OS is stopped when the CPU running the OS is stopped. Further, the application movement management unit 1120 states that there is an abnormality in the managed application when the memory usage of the managed application continues to increase, or when the CPU load of the managed application continues to be 0% or 100% for a predetermined time or longer. to decide. Then, the application movement management unit 1120 determines the program file to be executed at the movement destination with reference to the application correspondence table 1150, transfers the interrupt, and then operates the managed application at the movement destination.

(アプリ移動表1121)
図4は、アプリ移動表1121の一例を示す図である。アプリ移動表1121は、たとえば表形式で表され、複数のレコードから構成される。各レコードは、アプリ1122、使用IRQ1123、CPU名1124、CPUタイプ1125、OS1126、移行要件1127、ランク1128、CPU負荷1129、および空きメモリ1130のフィールドを有する。アプリ移動表1121はあらかじめ作成されており、本実施の形態の範囲ではランク1128のフィールド以外は書き換えが発生しない。
(App movement table 1121)
FIG. 4 is a diagram showing an example of the application movement table 1121. The application movement table 1121 is represented in a tabular format, for example, and is composed of a plurality of records. Each record has fields for app 1122, IRQ1123 used, CPU name 1124, CPU type 1125, OS1126, migration requirement 1127, rank 1128, CPU load 1129, and free memory 1130. The application movement table 1121 is created in advance, and in the range of this embodiment, rewriting does not occur except for the fields of rank 1128.

アプリ1122のフィールドには、アプリケーションの名称が記入される。なお図2を参照して説明したように、アプリケーションは実行する環境により異なるプログラムファイルが必要になることが多い。使用IRQ1123のフィールドには、同一レコードのアプリ1122のフィールド値で特定されるアプリ(以下、「同一レコードのアプリ」と呼ぶ)が使用するIRQ番号が記入される。 The name of the application is entered in the field of the application 1122. As described with reference to FIG. 2, the application often requires different program files depending on the environment in which the application is executed. In the field of the IRQ1123 used, the IRQ number used by the application specified by the field value of the application 1122 of the same record (hereinafter, referred to as "the application of the same record") is entered.

CPU名1124のフィールドには、同一レコードのアプリを実行するCPUの名称が記入される。CPUタイプ1125のフィールドには、CPU名1124のフィールドに記入されたCPUのタイプが記入される。OS1126のフィールドには、同一レコードのアプリを実行するOSの名称が記入される。移行要件1127のフィールドには、同一レコードのアプリをCPU名1124で特定されるCPUがOS1126で特定されるOSに移動させるために必要な要件が記入される。必要な要件には、少なくとも実行するプログラムファイルの名称が含まれ、追加のリソース、たとえばタイマなどが記入されることもある。 In the field of CPU name 1124, the name of the CPU that executes the application of the same record is entered. In the field of CPU type 1125, the type of CPU entered in the field of CPU name 1124 is entered. In the field of OS1126, the name of the OS that executes the application of the same record is entered. In the field of the migration requirement 1127, the requirements necessary for the CPU specified by the CPU name 1124 to move the application of the same record to the OS specified by the OS 1126 are entered. The required requirements include at least the name of the program file to be executed and may include additional resources such as timers.

ランク1128のフィールドには、同一レコードのアプリを実行する適切さを示す順位が記入される。図4に示す例ではアプリ画像処理アプリは1行目から3行目の3つの組み合わせが示されているので、ランク1128には1〜3のいずれかが記入される。ただしその環境が使用できない場合、たとえばOSが動作を停止している場合などは使用不可である旨の記号、たとえば「N/A」がランク1128に記入される。ランク1128のフィールドはアプリ移動管理部1120によって適宜書き換えられる。 In the field of rank 1128, a rank indicating the appropriateness of executing the application of the same record is entered. In the example shown in FIG. 4, since the application image processing application shows three combinations of the first to third lines, any of 1 to 3 is entered in the rank 1128. However, when the environment cannot be used, for example, when the OS is stopped, a symbol indicating that the environment cannot be used, for example, "N / A" is entered in rank 1128. The field of rank 1128 is appropriately rewritten by the application movement management unit 1120.

CPU負荷1129のフィールドには、アプリ移動管理部1120がランク1128を決定する基準の1つであるCPU負荷、すなわちCPU使用率が記入される。空きメモリ1130のフィールドには、アプリ移動管理部1120がランク1128を決定する基準の1つである空きメモリ容量が記入される。なお図4に示す例ではアプリ移動管理部1120がランク1128を決定する基準としてCPU負荷と空きメモリの2つを記載しているが、アプリ移動管理部1120は他の項目を基準としてもよいし、基準の数は2に限定されない。以上がアプリ移動表1121の説明である。 In the field of the CPU load 1129, the CPU load, that is, the CPU usage rate, which is one of the criteria for the application movement management unit 1120 to determine the rank 1128, is entered. In the field of the free memory 1130, the free memory capacity, which is one of the criteria for the application movement management unit 1120 to determine the rank 1128, is entered. In the example shown in FIG. 4, the application movement management unit 1120 describes the CPU load and the free memory as the criteria for determining the rank 1128, but the application movement management unit 1120 may use other items as the reference. , The number of criteria is not limited to 2. The above is the description of the application movement table 1121.

(ランク1128の更新)
アプリ移動表1121のランク1128の更新は、アプリ移動管理部1120によりたとえば以下のように行われる。アプリ移動管理部1120はランク1128を更新する前に監視部1160からポーリングで得られた情報を取得する。そしてアプリ移動表1121の各レコードについて、選択基準となっているCPU負荷1129の値とそのレコードにおける環境のポーリングで得られた値、および空きメモリ1130の値とそのレコードにおける環境のポーリングで得られた値を比較して評価値を算出する。
(Updated rank 1128)
The update of rank 1128 of the application movement table 1121 is performed by the application movement management unit 1120, for example, as follows. The application movement management unit 1120 acquires the information obtained by polling from the monitoring unit 1160 before updating the rank 1128. Then, for each record in the application movement table 1121, the value of the CPU load 1129 which is the selection criterion and the value obtained by polling the environment in the record, and the value of the free memory 1130 and the value obtained by polling the environment in the record are obtained. The evaluation value is calculated by comparing the polling values.

評価値の算出方法は任意であり、CPU負荷が低いほど評価値は高くなり、空きメモリ容量が多いほど評価値は高くなる。評価値はたとえば、CPU負荷により決定される0〜50の値と、空きメモリにより決定される0〜50の値を合算して0〜100の値として算出される。たとえばポーリングで得られた値が各レコードに記載され値と同一であれば、その項目の評価値は25であり、基準値から10%の増減があるたびに評価値を5増減させる。このような算出によりアプリ移動管理部1120は評価値を算出する。 The method of calculating the evaluation value is arbitrary, and the lower the CPU load, the higher the evaluation value, and the larger the free memory capacity, the higher the evaluation value. The evaluation value is calculated as a value of 0 to 100 by adding the values of 0 to 50 determined by the CPU load and the values of 0 to 50 determined by the free memory, for example. For example, if the value obtained by polling is the same as the value described in each record, the evaluation value of the item is 25, and the evaluation value is increased or decreased by 5 each time there is an increase or decrease of 10% from the reference value. The application movement management unit 1120 calculates the evaluation value by such a calculation.

そしてアプリ移動管理部1120は、管理対象アプリごとに各レコードの評価値を順位付けし、その順位をランク1128のフィールドに記入する。ただし管理対象アプリを実行できないと判断する動作環境、たとえばOSが応答しない環境のレコードには、評価値にかかわらず実行不可を示す記号、たとえば「N/A」を記入する。 Then, the application movement management unit 1120 ranks the evaluation value of each record for each managed application, and inputs the ranking in the field of rank 1128. However, in the record of the operating environment in which it is determined that the managed application cannot be executed, for example, the environment in which the OS does not respond, a symbol indicating non-execution, for example, "N / A" is entered regardless of the evaluation value.

(フローチャート)
図5はマイクロカーネル抽象化部1110の動作を表すフローチャートである。マイクロカーネル抽象化部1110はECU1000に電力が供給されると図5に示す動作を開始し、電源がオフにされるまでその動作を継続する。なお図5では動作終了を示すENDが記載されていないが、ECU1000の電源がオフにされるとマイクロカーネル抽象化部1110は動作を終了する。
(flowchart)
FIG. 5 is a flowchart showing the operation of the microkernel abstraction unit 1110. When power is supplied to the ECU 1000, the microkernel abstraction unit 1110 starts the operation shown in FIG. 5 and continues the operation until the power is turned off. Although END indicating the end of operation is not shown in FIG. 5, the microkernel abstraction unit 1110 ends the operation when the power of the ECU 1000 is turned off.

マイクロカーネル抽象化部1110は電源が供給されると、まずS2000ではアプリ移動管理部1120とアプリ移動表1121を初期化する。ただしアプリ移動表1121の初期化とは、全レコードのランク1128のフィールドを空白にする処理である。続くS2001ではマイクロカーネル抽象化部1110は、監視部1160を初期化し、監視部1160によりハードウエア依存マイクロカーネル1170を用いて各CPUが利用可能か否かのポーリングが行われる。なお図5には記載していないが利用可能でないCPUが存在すると判断した場合はエラー処理を行う。以下ではS2001では全CPUが利用可能であったとして説明を続ける。 When the power is supplied to the microkernel abstraction unit 1110, the application movement management unit 1120 and the application movement table 1121 are first initialized in S2000. However, the initialization of the application movement table 1121 is a process of blanking the fields of rank 1128 of all records. In the following S2001, the microkernel abstraction unit 1110 initializes the monitoring unit 1160, and the monitoring unit 1160 polls whether or not each CPU is available using the hardware-dependent microkernel 1170. If it is determined that there is a CPU that is not shown in FIG. 5 but is not available, error processing is performed. In the following, the description will be continued on the assumption that all CPUs were available in S2001.

続くS2003ではマイクロカーネル抽象化部1110は全てのOSとアプリを初期化する。初期化時に各アプリがいずれの環境で実行されるかはあらかじめ定められている。続くS2004では監視部1160がCPU、OS、管理対象アプリを対象としてポーリングを行う。S2005ではマイクロカーネル抽象化部1110は、監視部1160がS2004において取得した情報をアプリ移動管理部1120に送信する。続くS2006ではアプリ移動管理部1120は、アプリ移動表1121の全てのランク1128を前述の手法により更新するとともに、管理対象アプリの異常を検出する。管理対象アプリの異常の検出には前述のように、管理対象アプリが動作しているOSを稼働しているCPUの動作状況、管理対象アプリのメモリ使用量、および管理対象アプリのCPU負荷などが参照される。 In the following S2003, the microkernel abstraction unit 1110 initializes all OSs and applications. In which environment each application is executed at the time of initialization is predetermined. In the following S2004, the monitoring unit 1160 polls the CPU, OS, and managed application. In S2005, the microkernel abstraction unit 1110 transmits the information acquired by the monitoring unit 1160 in S2004 to the application movement management unit 1120. In the following S2006, the application movement management unit 1120 updates all ranks 1128 of the application movement table 1121 by the above-mentioned method, and detects an abnormality of the managed application. As described above, the operation status of the CPU running the OS on which the managed app is running, the memory usage of the managed app, the CPU load of the managed app, etc. are used to detect the abnormality of the managed app. Referenced.

続くS2007ではマイクロカーネル抽象化部1110は、S2006において管理対象アプリの異常を検出したか否かを判断する。マイクロカーネル抽象化部1110は、いずれかの管理対象アプリに異常があると判断する場合はS2009に進み、全ての管理対象アプリに異常がないと判断する場合はS2008に進む。なお以下では、S2006において異常が検出された管理対象アプリを「異常が検出されたアプリ」と呼ぶ。S2008ではマイクロカーネル抽象化部1110は所定時間だけ待機してS2004に戻る。すなわちアプリに異常が検出されない間はマイクロカーネル抽象化部1110は、S2004〜S2008の処理を繰り返す。 In the following S2007, the microkernel abstraction unit 1110 determines whether or not an abnormality of the managed application is detected in S2006. The microkernel abstraction unit 1110 proceeds to S2009 when it is determined that one of the managed applications has an abnormality, and proceeds to S2008 when it is determined that there is no abnormality in all the managed applications. In the following, the managed application in which an abnormality is detected in S2006 will be referred to as an "application in which an abnormality is detected". In S2008, the microkernel abstraction unit 1110 waits for a predetermined time and returns to S2004. That is, the microkernel abstraction unit 1110 repeats the processes of S2004 to S2008 while no abnormality is detected in the application.

S2007において肯定判定されると実行されるS2009ではマイクロカーネル抽象化部1110は、アプリ移動表1121を読み込む。続くS2010ではマイクロカーネル抽象化部1110は、S2007において異常が検出された管理対象アプリを実行する他の環境、すなわち代替環境が存在するか否かを判断する。マイクロカーネル抽象化部1110は代替環境が存在すると判断する場合はS2011に進み、代替環境が存在しないと判断する場合はS2016に進む。具体的にはマイクロカーネル抽象化部1110は、アプリ移動表1121において異常が検出されたアプリが現在実行されている環境に、ランク1128がN/Aではない環境が存在するか否かを判断する。 In S2009, which is executed when a positive determination is made in S2007, the microkernel abstraction unit 1110 reads the application movement table 1121. In the following S2010, the microkernel abstraction unit 1110 determines whether or not there is another environment for executing the managed application in which the abnormality is detected in S2007, that is, an alternative environment. The microkernel abstraction unit 1110 proceeds to S2011 if it determines that an alternative environment exists, and proceeds to S2016 if it determines that an alternative environment does not exist. Specifically, the microkernel abstraction unit 1110 determines whether or not there is an environment in which the application in which the abnormality is detected in the application movement table 1121 is currently executed, in which rank 1128 is not N / A. ..

たとえばアプリ移動表1121が図4に示すものであり、画像処理アプリが第1CPU11において実行されており画像処理アプリに異常が検出された場合は、第2CPU12と第3CPU13で実行可能なのでS2010は肯定判断される。また図4に示す例において距離推定アプリが第1CPU11において実行されており、距離推定アプリに異常が検出されて第3CPU13のランクがN/Aであった場合には、他に距離推定アプリを実行可能な環境が存在しないのでS2010では否定判断がされる。 For example, the application movement table 1121 is shown in FIG. 4. When the image processing application is executed in the first CPU 11 and an abnormality is detected in the image processing application, it can be executed in the second CPU 12 and the third CPU 13, so S2010 makes a positive judgment. Will be done. Further, in the example shown in FIG. 4, when the distance estimation application is executed in the first CPU 11 and an abnormality is detected in the distance estimation application and the rank of the third CPU 13 is N / A, another distance estimation application is executed. Since there is no possible environment, a negative judgment is made in S2010.

S2011ではマイクロカーネル抽象化部1110は、異常が検出されたアプリの移動先の環境を決定する。具体的にはマイクロカーネル抽象化部1110は、アプリ移動表1121を参照し、異常が検出されたアプリについて記載しているレコードであって、現在実行されている環境を除くレコードにおいてランク1128が最も小さい値を有する環境を移動先として決定する。たとえばアプリ移動表1121が図4に示すものであり、画像処理アプリが第1CPU11において動作しており異常が検出された場合は、ランク1128が「2」である第3CPU13の環境が選択される。 In S2011, the microkernel abstraction unit 1110 determines the environment to which the application in which the abnormality is detected is moved. Specifically, the microkernel abstraction unit 1110 refers to the application movement table 1121, and is a record that describes the application in which an abnormality is detected, and rank 1128 is the highest among the records excluding the currently running environment. The environment with a small value is determined as the destination. For example, the application movement table 1121 is shown in FIG. 4, and when the image processing application is operating in the first CPU 11 and an abnormality is detected, the environment of the third CPU 13 having rank 1128 of "2" is selected.

続くS2012ではマイクロカーネル抽象化部1110は、S2011において特定された環境における、異常が検出されたアプリのプログラムファイルを特定する。具体的にはマイクロカーネル抽象化部1110は、アプリ対応表1150を参照し、異常が検出されたアプリの名称、S2011において特定された環境のCPUタイプからプログラムファイルを特定する。ただしアプリ対応表1150が図2(a)に示すようにOSの種類ごとに異なる場合は、さらにS2011において特定された環境のOSも加味してプログラムファイルを特定する。 In the following S2012, the microkernel abstraction unit 1110 identifies the program file of the application in which the abnormality is detected in the environment specified in S2011. Specifically, the microkernel abstraction unit 1110 refers to the application correspondence table 1150 and specifies the program file from the name of the application in which the abnormality is detected and the CPU type of the environment specified in S2011. However, when the application correspondence table 1150 differs for each type of OS as shown in FIG. 2A, the program file is specified by further considering the OS of the environment specified in S2011.

続くS2013ではマイクロカーネル抽象化部1110は、S2011において決定した移動先のOSのメモリ領域に、S2012において特定したプログラムファイルを配置する。続くS2014ではマイクロカーネル抽象化部1110は、S2014において配置したアプリを初期化する。この初期化では必要に応じてタイマなども配置される。たとえばアプリ移動表1121が図4に示すものであり、画像処理アプリを第2CPU12で動作させる場合は、プログラムファイルbin05を初期化するとともにタイマBがbin05に提供される。 In the following S2013, the microkernel abstraction unit 1110 arranges the program file specified in S2012 in the memory area of the destination OS determined in S2011. In the following S2014, the microkernel abstraction unit 1110 initializes the application placed in S2014. In this initialization, a timer or the like is also arranged as needed. For example, the application movement table 1121 is shown in FIG. 4. When the image processing application is operated by the second CPU 12, the program file bin05 is initialized and the timer B is provided to the bin05.

続くS2015では割り込み転送部1140は、移動したアプリケーションにあわせてIRQの転送を行う。たとえばアプリ移動表1121が図4に示すものであり、画像処理アプリが第1CPU11の環境から第2CPU12の環境に移動した場合は、割り込み転送部1140は割り込み対応表1141を次のように書き換える。すなわち割り込み転送部1140は、割り込み対応表1141におけるIRQ1とIRQ4の転送先をO1からO2に書き換える。S2015の処理が完了するとS2008に進む。 In the following S2015, the interrupt transfer unit 1140 transfers the IRQ according to the moved application. For example, the application movement table 1121 is shown in FIG. 4, and when the image processing application moves from the environment of the first CPU 11 to the environment of the second CPU 12, the interrupt transfer unit 1140 rewrites the interrupt correspondence table 1141 as follows. That is, the interrupt transfer unit 1140 rewrites the transfer destinations of IRQ1 and IRQ4 in the interrupt correspondence table 1141 from O1 to O2. When the processing of S2015 is completed, the process proceeds to S2008.

S2010において否定判断されると実行されるS2016ではマイクロカーネル抽象化部1110は、問題が検出された管理対象アプリに動作停止指令を出力してS2008に進む。なおS2016ではさらにイベントの発生、すなわち管理対象アプリに動作停止指令を出力したことを記録してもよいし、この記録にはECU1000の任意の内部状態、たとえばメモリ20のダンプ情報を加えてもよい。以上がマイクロカーネル抽象化部1110の動作を表すフローチャートの説明である。 In S2016, which is executed when a negative determination is made in S2010, the microkernel abstraction unit 1110 outputs an operation stop command to the managed application in which the problem is detected, and proceeds to S2008. In S2016, it may be recorded that an event has occurred, that is, an operation stop command has been output to the managed application, or an arbitrary internal state of the ECU 1000, for example, dump information of the memory 20 may be added to this record. .. The above is the description of the flowchart showing the operation of the microkernel abstraction unit 1110.

上述した第1の実施の形態によれば、次の作用効果が得られる。
(1)ハイパーバイザ1100は、アプリケーションを実行可能な複数のオペレーティングシステムを実行可能な仮想環境1200を提供し複数のCPUにより動作する。ハイパーバイザ1100は、複数のOSの稼働状態を監視する監視部1160と、稼働状態に基づき第1のOSにおいて実行されている第1のプログラムファイルにより実現されるアプリケーションに代えて、第2のOSにおいて第1のアプリケーションと同様の機能を有する第2のプログラムファイルにより実現されるアプリケーションを動作させるアプリ移動管理部1120と、を備える。アプリ移動管理部1120は、第2のOSを実行しているCPUの種類に基づき第2のアプリケーションを実現するプログラムファイルを選択する。そのため、異なる種類のCPUを用いる場合でもアプリケーションの移動、すなわちマイグレーションを実現できる。
According to the first embodiment described above, the following effects can be obtained.
(1) The hypervisor 1100 provides a virtual environment 1200 capable of executing a plurality of operating systems capable of executing an application, and is operated by a plurality of CPUs. The hypervisor 1100 replaces the application realized by the monitoring unit 1160 that monitors the operating status of a plurality of OSs and the first program file that is executed in the first OS based on the operating status, and replaces the second OS. The application movement management unit 1120 for operating the application realized by the second program file having the same function as the first application is provided. The application movement management unit 1120 selects a program file that realizes the second application based on the type of CPU running the second OS. Therefore, application movement, that is, migration can be realized even when different types of CPUs are used.

(2)ハイパーバイザ1100は、実現される機能、CPUの種類、およびプログラムファイルの対応関係を示すアプリ対応表1150を有する。アプリ移動管理部1120は、アプリ対応表1150を参照して第2のアプリケーションを実現するプログラムファイルを選択する。そのためハイパーバイザ1100は、マイグレーション先の環境にあわせた適切なプログラムファイルを選択できる。 (2) The hypervisor 1100 has an application correspondence table 1150 showing the functions to be realized, the types of CPUs, and the correspondence relationships of program files. The application movement management unit 1120 selects a program file that realizes the second application by referring to the application correspondence table 1150. Therefore, the hypervisor 1100 can select an appropriate program file according to the migration destination environment.

(3)アプリ対応表1150におけるCPUのタイプは、少なくともCPUの命令セット、およびレジスタ構成に基づいて分類される。CPUの命令セットおよびレジスタ構成が同一であれば同一のプログラムファイルが使用できる傾向にあるからである。 (3) CPU types in the application correspondence table 1150 are classified based on at least the instruction set of the CPU and the register configuration. This is because the same program file tends to be used if the instruction set and register configuration of the CPU are the same.

(4)ハイパーバイザ1100は、割り込み要求の番号とOSの対応関係を示す割り込み対応表1141を有する。ハイパーバイザ1100は、割り込み転送部1140を備える。割り込み転送部1140は、割り込み対応表1141に基づきOSに対応するIRQ番号の割り込み要求を転送する。また割り込み転送部1140は、アプリ移動管理部1120が第2のアプリケーションを動作させると、図3(a)から図3(b)へ変化させたように割り込み対応表1141における第1のOSを第2のOSに書き換える。そのためマイグレーションの実行とともにIRQを転送できる。 (4) The hypervisor 1100 has an interrupt correspondence table 1141 showing the correspondence between the interrupt request number and the OS. The hypervisor 1100 includes an interrupt transfer unit 1140. The interrupt transfer unit 1140 transfers the interrupt request of the IRQ number corresponding to the OS based on the interrupt correspondence table 1141. Further, when the application movement management unit 1120 operates the second application, the interrupt transfer unit 1140 changes the first OS in the interrupt correspondence table 1141 from FIG. 3A to FIG. 3B. Rewrite to 2 OS. Therefore, the IRQ can be transferred at the same time as the migration is executed.

(5)アプリ移動管理部1120は、第1のOSの動作が停止している場合、または第1のアプリケーションの動作に異常がある場合に、第1のOSにおいて実行されている第1のアプリケーションに代えて、第2のOSにおいて第2のアプリケーションを動作させる。そのためOSの停止を契機としてマイグレーションを実行できる。 (5) The application movement management unit 1120 is the first application executed in the first OS when the operation of the first OS is stopped or there is an abnormality in the operation of the first application. Instead, run the second application on the second OS. Therefore, migration can be executed when the OS is stopped.

(変形例1)
上述した第1の実施の形態において、アプリ移動表1121の移行要件1127にプログラムファイルの名称が記載されていなくてもよい。上述した実施の形態では、ハイパーバイザ1100はアプリ対応表1150を有し、アプリ対応表1150を参照してプログラムファイルを選択するからである。
(Modification example 1)
In the first embodiment described above, the name of the program file may not be described in the migration requirement 1127 of the application movement table 1121. This is because in the above-described embodiment, the hypervisor 1100 has an application correspondence table 1150 and selects a program file with reference to the application correspondence table 1150.

(変形例2)
ハイパーバイザ1100はアプリ対応表1150を備えず、アプリ移動表1121の移行要件1127を参照することで移行先のOSで実行するプログラムファイルを特定してもよい。
(Modification 2)
The hypervisor 1100 does not include the application correspondence table 1150, and the program file to be executed in the migration destination OS may be specified by referring to the migration requirement 1127 in the application movement table 1121.

(変形例3)
ハイパーバイザ1100を実現するプログラムファイルは、記録媒体やデータ通信を通じてECU1000に提供されてもよい。
(Modification 3)
The program file that realizes the hypervisor 1100 may be provided to the ECU 1000 through a recording medium or data communication.

図6は、上述したハイパーバイザ1100を実現するプログラムファイルを、記録媒体やデータ信号を通じてECU1000に提供する様子を示す図である。ECU1000は、車両に搭載されるものであり、各種プログラムを実行可能なプロセッサを有する。ECU1000は、入力装置300を介してCD−ROM304を読み込み、ハイパーバイザ1100を実現するためのプログラムファイルの情報の提供を受ける。このプログラムファイルをECU1000のプロセッサで実行することにより、ハイパーバイザ1100が実現される。 FIG. 6 is a diagram showing how a program file that realizes the hypervisor 1100 described above is provided to the ECU 1000 through a recording medium or a data signal. The ECU 1000 is mounted on a vehicle and has a processor capable of executing various programs. The ECU 1000 reads the CD-ROM 304 via the input device 300, and receives the information of the program file for realizing the hypervisor 1100. The hypervisor 1100 is realized by executing this program file on the processor of the ECU 1000.

また、入力装置300は通信回線301との接続機能を有する。コンピュータ302は上記のプログラムファイル等の情報を提供するサーバーコンピュータであり、ハードディスク303などの記録媒体に情報を格納する。通信回線301は、インターネット、パソコン通信などの通信回線、あるいは専用通信回線などである。コンピュータ302はハードディスク303を使用してプログラムファイル等の情報を読み出し、通信回線301を介して入力装置300に送信する。 Further, the input device 300 has a connection function with the communication line 301. The computer 302 is a server computer that provides information such as the above program file, and stores the information in a recording medium such as a hard disk 303. The communication line 301 is a communication line such as the Internet or personal computer communication, or a dedicated communication line. The computer 302 uses the hard disk 303 to read information such as a program file and transmits the information to the input device 300 via the communication line 301.

すなわち、プログラムをデータ信号として搬送波を介して、通信回線301を介して送信する。そして入力装置300がECU1000に受信した信号を伝達する。このように、ハイパーバイザ1100を実現させるためのプログラムは、記録媒体やデータ信号(搬送波)などの種々の形態のコンピュータ読み込み可能なコンピュータプログラム製品として供給できる。 That is, the program is transmitted as a data signal via a carrier wave and via a communication line 301. Then, the input device 300 transmits the received signal to the ECU 1000. As described above, the program for realizing the hypervisor 1100 can be supplied as a computer-readable computer program product of various forms such as a recording medium and a data signal (carrier wave).

上述した各実施の形態および変形例は、それぞれ組み合わせてもよい。上記では、種々の実施の形態および変形例を説明したが、本発明はこれらの内容に限定されるものではない。本発明の技術的思想の範囲内で考えられるその他の態様も本発明の範囲内に含まれる。 Each of the above-described embodiments and modifications may be combined. Although various embodiments and modifications have been described above, the present invention is not limited to these contents. Other aspects conceivable within the scope of the technical idea of the present invention are also included within the scope of the present invention.

1100…ハイパーバイザ
1110…マイクロカーネル抽象化部
1120…アプリ移動管理部
1121…アプリ移動表
1128…ランク
1160…監視部
1140…割り込み転送部
1141…割り込み対応表
1150…アプリ対応表
1200…仮想環境
1100 ... Hypervisor 1110 ... Microkernel abstraction unit 1120 ... App movement management unit 1121 ... App movement table 1128 ... Rank 1160 ... Monitoring unit 1140 ... Interrupt transfer unit 1141 ... Interrupt correspondence table 1150 ... App correspondence table 1200 ... Virtual environment

Claims (7)

アプリケーションを実行可能な複数のオペレーティングシステムを実行可能な仮想環境を提供し複数のCPUにより動作するハイパーバイザであって、
前記複数のオペレーティングシステムの稼働状態を監視する監視部と、
前記稼働状態に基づき第1の前記オペレーティングシステムにおいて実行されている第1のアプリケーションに代えて、第2の前記オペレーティングシステムにおいて前記第1のアプリケーションと同様の機能を有する第2のアプリケーションを動作させる移動管理部と、を備え、
前記移動管理部は、前記第2のオペレーティングシステムを実行しているCPUの種類に基づき前記第2のアプリケーションを実現するプログラムファイルを選択するハイパーバイザ。
A hypervisor that provides a virtual environment that can execute multiple operating systems that can execute applications and is operated by multiple CPUs.
A monitoring unit that monitors the operating status of the plurality of operating systems,
A move that runs a second application having the same function as the first application in the second operating system in place of the first application running in the first operating system based on the operating state. With a management department,
The movement management unit is a hypervisor that selects a program file that realizes the second application based on the type of CPU running the second operating system.
請求項1に記載のハイパーバイザであって、
実現される機能、CPUの種類、およびプログラムファイルの対応関係を示すプログラム対応情報を有し、
前記移動管理部は、前記プログラム対応情報を参照して前記第2のアプリケーションを実現するプログラムファイルを選択するハイパーバイザ。
The hypervisor according to claim 1.
It has program correspondence information that shows the functions to be realized, the type of CPU, and the correspondence of program files.
The movement management unit is a hypervisor that selects a program file that realizes the second application by referring to the program correspondence information.
請求項2に記載のハイパーバイザであって、
前記プログラム対応情報における前記CPUの種類は、少なくともCPUの命令セット、およびレジスタ構成に基づいて分類されるハイパーバイザ。
The hypervisor according to claim 2.
The type of CPU in the program correspondence information is a hypervisor classified based on at least the instruction set of the CPU and the register configuration.
請求項1に記載のハイパーバイザであって、
割り込み要求の番号と前記オペレーティングシステムの対応関係を示す割り込み対応情報を有し、
前記割り込み対応情報に基づき前記オペレーティングシステムに対応する番号の前記割り込み要求を転送し、前記移動管理部が前記第2のアプリケーションを動作させると前記割り込み対応情報における前記第1のオペレーティングシステムを前記第2のオペレーティングシステムに書き換える割り込み転送部をさらに備えるハイパーバイザ。
The hypervisor according to claim 1.
It has interrupt correspondence information indicating the correspondence between the interrupt request number and the operating system.
When the interrupt request with the number corresponding to the operating system is transferred based on the interrupt correspondence information and the movement management unit operates the second application, the first operating system in the interrupt correspondence information is referred to as the second. A hypervisor with an interrupt transfer section that rewrites to the operating system of.
請求項1に記載のハイパーバイザであって、
前記移動管理部は、前記第1のオペレーティングシステムの動作が停止している場合、または前記第1のアプリケーションの動作に異常がある場合に、前記第1のオペレーティングシステムにおいて実行されている前記第1のアプリケーションに代えて、前記第2のオペレーティングシステムにおいて前記第2のアプリケーションを動作させるハイパーバイザ。
The hypervisor according to claim 1.
The movement management unit is executed in the first operating system when the operation of the first operating system is stopped or when there is an abnormality in the operation of the first application. A hypervisor that runs the second application in the second operating system in place of the application.
アプリケーションを実行可能な複数のオペレーティングシステムを実行可能な仮想環境を提供し複数のCPUにより動作するハイパーバイザであって、
前記複数のオペレーティングシステムの稼働状態を監視する監視部と、
前記稼働状態に基づき第1の前記オペレーティングシステムにおいて実行されている第1のアプリケーションに代えて、第2の前記オペレーティングシステムにおいて前記第1のアプリケーションと同様の機能を有する第2のアプリケーションを動作させる移動管理部と、
割り込み要求の番号と前記オペレーティングシステムの対応関係を示す割り込み対応情報と、
前記割り込み対応情報に基づき前記オペレーティングシステムに対応する番号の前記割り込み要求を転送し、前記移動管理部が前記第2のアプリケーションを動作させると前記割り込み対応情報における前記第1のオペレーティングシステムを前記第2のオペレーティングシステムに書き換える割り込み転送部とを備えるハイパーバイザ。
A hypervisor that provides a virtual environment that can execute multiple operating systems that can execute applications and is operated by multiple CPUs.
A monitoring unit that monitors the operating status of the plurality of operating systems,
A move that runs a second application that has the same functions as the first application in the second operating system in place of the first application running in the first operating system based on the operating state. With the management department
Interrupt support information indicating the correspondence between the interrupt request number and the operating system, and
When the interrupt request with the number corresponding to the operating system is transferred based on the interrupt correspondence information and the movement management unit operates the second application, the first operating system in the interrupt correspondence information is referred to as the second. Hypervisor with an interrupt transfer section that rewrites to the operating system of.
アプリケーションを実行可能な複数のオペレーティングシステムを実行可能な仮想環境を提供し複数のCPUにより動作するハイパーバイザを備える演算装置であって、
前記ハイパーバイザは、
前記複数のオペレーティングシステムの稼働状態を監視する監視部と、
前記稼働状態に基づき第1の前記オペレーティングシステムにおいて実行されている第1のアプリケーションに代えて、第2の前記オペレーティングシステムにおいて前記第1のアプリケーションと同様の機能を有する第2のアプリケーションを動作させる移動管理部と、を備え、
前記移動管理部は、前記第2のオペレーティングシステムを実行しているCPUの種類に基づき前記第2のアプリケーションを実現するプログラムファイルを選択する演算装置。
An arithmetic unit that provides a virtual environment that can execute multiple operating systems that can execute applications and has a hypervisor that runs on multiple CPUs.
The hypervisor
A monitoring unit that monitors the operating status of the plurality of operating systems,
A move that runs a second application that has the same functions as the first application in the second operating system in place of the first application running in the first operating system based on the operating state. With a management department,
The movement management unit is an arithmetic unit that selects a program file that realizes the second application based on the type of CPU that is executing the second operating system.
JP2018021377A 2018-02-08 2018-02-08 Hypervisor, arithmetic unit Active JP6814756B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2018021377A JP6814756B2 (en) 2018-02-08 2018-02-08 Hypervisor, arithmetic unit
DE112019000308.9T DE112019000308T5 (en) 2018-02-08 2019-01-30 Computer program product and computing unit
PCT/JP2019/003223 WO2019155966A1 (en) 2018-02-08 2019-01-30 Computer program product and computation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018021377A JP6814756B2 (en) 2018-02-08 2018-02-08 Hypervisor, arithmetic unit

Publications (2)

Publication Number Publication Date
JP2019139453A JP2019139453A (en) 2019-08-22
JP6814756B2 true JP6814756B2 (en) 2021-01-20

Family

ID=67549542

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018021377A Active JP6814756B2 (en) 2018-02-08 2018-02-08 Hypervisor, arithmetic unit

Country Status (3)

Country Link
JP (1) JP6814756B2 (en)
DE (1) DE112019000308T5 (en)
WO (1) WO2019155966A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579249A (en) * 2019-09-30 2021-03-30 奇安信安全技术(珠海)有限公司 Multi-CPU virtual machine operation method and device, storage medium and computer equipment
CN111475342B (en) * 2020-04-15 2024-04-23 广州三星通信技术研究有限公司 Application switching method and application switching device for electronic terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4345630B2 (en) * 2004-09-29 2009-10-14 ソニー株式会社 Information processing apparatus, interrupt processing control method, and computer program
JP2013073542A (en) * 2011-09-29 2013-04-22 Fixstars Corp Program processor, program processing method and program
US9503387B2 (en) * 2013-08-21 2016-11-22 Cisco Technology, Inc. Instantiating incompatible virtual compute requests in a heterogeneous cloud environment
US10042790B2 (en) * 2014-03-07 2018-08-07 Hitachi, Ltd. Computer and method with interrupt vector management
JP6504065B2 (en) * 2016-01-22 2019-04-24 株式会社デンソー Vehicle control system

Also Published As

Publication number Publication date
DE112019000308T5 (en) 2020-10-15
JP2019139453A (en) 2019-08-22
WO2019155966A1 (en) 2019-08-15

Similar Documents

Publication Publication Date Title
US10810051B1 (en) Autoscaling using file access or cache usage for cluster machines
US20240004834A1 (en) Directory structure for a distributed storage system
US9058197B2 (en) Method for sharing memory of virtual machine and computer system using the same
US10061713B2 (en) Associating cache memory with a work process
JP6814756B2 (en) Hypervisor, arithmetic unit
WO2019055601A1 (en) Systems and methods for computing infrastructure resource allocation
US11797355B2 (en) Resolving cluster computing task interference
US9934147B1 (en) Content-aware storage tiering techniques within a job scheduling system
CN113391881A (en) Interrupt management method and device, electronic equipment and computer storage medium
JP5030647B2 (en) Method for loading a program in a computer system including a plurality of processing nodes, a computer readable medium containing the program, and a parallel computer system
JP6694683B2 (en) Scheduler computing device, data node of distributed computing system including the same, and method thereof
KR102045997B1 (en) Method for scheduling task in big data analysis platform based on distributed file system, program and computer readable storage medium therefor
KR102026333B1 (en) Method for processing task in respect to distributed file system
CN109144708B (en) Electronic computing device and method for adjusting trigger mechanism of memory recovery function
US20180103089A1 (en) Methods for determining processing nodes for executed tasks and apparatuses using the same
US9940037B1 (en) Multi-tier storage environment with burst buffer middleware appliance for batch messaging
TWI452468B (en) Method for sharing memory of virtual machine and computer system using the same
WO2022111264A1 (en) Reducing load balancing work stealing
KR101748210B1 (en) Distributed processing system and processing method for file in distributed processing system
CN114398300B (en) Method, integrated circuit, and computer-readable storage medium
JP2010152513A (en) Hybrid system, interrupt control unit and interrupt control method
Jackson Key-Value Store Using a Network Packet Filter Situated in the OS Kernel
WO2018180664A1 (en) Vehicle control device
JP2024008514A (en) Vehicle control device
CN117762320A (en) Data migration method and device and related equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200313

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201221

R150 Certificate of patent or registration of utility model

Ref document number: 6814756

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250