CN103853597A - Method for realizing high-frequency data collection of embedded virtual machine platform - Google Patents

Method for realizing high-frequency data collection of embedded virtual machine platform Download PDF

Info

Publication number
CN103853597A
CN103853597A CN201410060284.3A CN201410060284A CN103853597A CN 103853597 A CN103853597 A CN 103853597A CN 201410060284 A CN201410060284 A CN 201410060284A CN 103853597 A CN103853597 A CN 103853597A
Authority
CN
China
Prior art keywords
hypervisor
data
interrupt
virtual machine
space
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.)
Granted
Application number
CN201410060284.3A
Other languages
Chinese (zh)
Other versions
CN103853597B (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.)
Beijing Shenzhou Aerospace Software Technology Co.,Ltd.
Original Assignee
BEIJING SHENZHOU AEROSPACE SOFTWARE TECHNOLOGY Co 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 BEIJING SHENZHOU AEROSPACE SOFTWARE TECHNOLOGY Co Ltd filed Critical BEIJING SHENZHOU AEROSPACE SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201410060284.3A priority Critical patent/CN103853597B/en
Publication of CN103853597A publication Critical patent/CN103853597A/en
Application granted granted Critical
Publication of CN103853597B publication Critical patent/CN103853597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a method for realizing high-frequency data collection of an embedded virtual machine platform. The method comprises the following steps that an internal memory mapping mechanism and an interrupt trap mechanism provided by Hypervisor are utilized, and a virtual machine partition registers a calling interface of an interrupt preprocessing function and a corresponding interrupt internal memory mapping partition in a Hypervisor space, so the privileged operation in the high-frequency data collection and the interrupt fast response can be directly completed in the Hypervisor. The method provided by the invention is mainly used in high-real-time-performance and high-safety-requirement embedded systems such as aerospace and energy source control, safety mechanisms of temporal and spatial isolation and the like provided by using virtualization technology are utilized, and meanwhile, the problem of excessive expenditure for responding high-frequency interrupt in the traditional virtualization technology is solved, so the high-real-time-performance and high-safety-requirement embedded virtualization systems can be realized.

Description

Realize embedded type virtual machine platform high-frequency data acquisition method
Technical field
The invention belongs to virtual machine field, specifically, relate to one and realize embedded type virtual machine platform high-frequency data acquisition method.
Background technology
Comprehensively modularized avionics system (IMA) taking ARINC653 specification as representative become the 4th generation avionics system actual standard, in Aero-Space, energy national defence field, obtained generally application.And along with the development of Intel Virtualization Technology, utilize the virtual machine subregion mechanism that Hypervisor provides that security, isolation, reusability are provided, widespread use and high-performance calculation, commerce server field, and derive many employing virtual methods and realize the embedded real-time operating system of ARINC653 standard, as XtratuM, Integrity, PikeOS etc.
In space industry, especially in the aerospacecraft control system such as rocket, guided missile, manned spaceship, need to constantly gather a large amount of external sensor information at run duration, need the data that gather to belong to different sub-systems, and the frequency of some data acquisition may very high (every 10ms gathers multiple sensing datas), image data will cause not in time enters the orbit or the positioning precision consequence such as reduce, cannot finish the work.
Traditional virtual technology, does not consider the consideration of numerous areas control system to interrupt response real-time demand such as Aero-Space, energy national defence.As Xen has adopted separation equipment model (Split Driver Model), driving processing to be divided into front end (Front-End) carries out with rear end (Back-End), rear end drives in the privileged partition operating in such as Domain0, be responsible for accessing actual hardware by Hypervisor, and Front End operates in the subregion of actual needs equipment, it does not need to move privileged instruction, only need to from privileged partition, obtain data by loop buffer, in the time that certain application virtual machine subregion needs access means, forward end drives and sends request, front-end driven will ask to send to the rear end operating in privileged partition to drive by circular buffer (Ring Buffer), after privileged partition starts to carry out, obtain one by one the device access request in circular buffer, access actual hardware by Hypervisor respectively, and data are preserved by shared drive, notify application partition to obtain equipment by loop buffer.Thereby front and back end device Driver Model has been realized the share and access of equipment on the one hand, and equipment, by direct hardware access, has reduced the performance cost that device emulation brings; By buffer zone, device access request is cushioned on the other hand, reduced frequent subregion and switched the expense of bringing.Separation equipment model is conducive to the access efficiency of block device (block device).
In embedded type virtual operating system XtratuM, in order to improve the time response velocity fails of system, outside the event subregion scheduling of ARINC653 normalized definition, adopt the method based on priority scheduling, thereby high priority subregion can be met with a response as early as possible, thereby improve the response speed of the tasks such as input data acquisition, signal response.The mode of priority scheduling can only meet high priority subregion is dispatched as early as possible, in the time that external event arrives, can meet with a response in time, still relatively large but switch with the expense of scheduling by stages.
In some research, researchist maps directly to hardware interrupt in the virtual machine subregion of appointment, look-at-me directly passes to virtual machine subregion by the mode of virtual interruption, the interrupt service routine of virtual machine subregion can directly respond the device interrupt of binding, thereby improves the virtual timer response speed of virtual subregion.
In embedded especially space industry, there are the following problems for said method:
The front and back end device model that traditional virtual technology adopts, cushions device access request by circular buffer, and by privileged partition, physical device operation is collected to special subregion, is suitable for the shared transmission of the block device of big data quantity.But for a device request, need in buffer zone, wait for that privileged partition reads, and need to carry out repeatedly subregion and switch and just can complete primary equipment access, for the embedded Hard Real Time Systems such as sensor collection, exchanges data of high-frequency, small data quantity, hard real time, in a lot of situations, cannot meet application demand.
Pass through priority scheduling, can accelerate as far as possible the response speed of high-priority task, but priority and interrupt response frequency are without direct correlation, are to have application characteristic and service logic to determine, the application partition that interrupt response frequency is high, its priority is not necessarily the highest.Therefore, once high-frequency interrupt response subregion is seized by high priority subregion, its data acquisition window will miss, thereby causes the loss of data.
In embedded platform especially space flight embedded platform, what adopt in a large number is the flush bonding processor such as SPARC, ARM, APIC module cannot be provided, relatively limited (for example SPARC V8 of its hardware interrupts resource, only have 16 interrupt numbers), cannot be for each sensor provides independently interrupt number, so just cannot adopt the direct mapping mode of above-mentioned interruption to improve the method for the Response time of subregion.
Summary of the invention
The technical problem to be solved in the present invention is to overcome above-mentioned defect, provide a kind of high-frequency data collection and privileged operation interrupting in response fast of making directly to complete in Hypervisor, reduce the repeatedly switching of Hypervisor and division operation system, thus realize high-frequency data collection and the quick response mechanism of interruption realize embedded type virtual machine platform high-frequency data acquisition method.
For addressing the above problem, the technical solution adopted in the present invention is:
One realizes embedded type virtual machine platform high-frequency data acquisition method, it is characterized in that: step is as follows: utilize the memory-mapped mechanism that Hypervisor provides to be absorbed in mechanism with interruption, virtual machine subregion interrupts the calling interface of pre-service function (PISR) in the registration of Hypervisor space, and corresponding interruption memory-mapped subregion (IMM), high-frequency data collection and the privileged operation interrupting in response fast are directly completed in Hypervisor, reduce the repeatedly switching of Hypervisor and division operation system, thereby realize high-frequency data collection and interrupt quick response mechanism.
The step of acquisition method is as follows:
1), at the spacecraft flight control platform based on Intel Virtualization Technology, build virtual machine monitor Hypervisor, and memory-mapped mechanism and interrupt response mechanism be provided;
2), provide special kernel code space and data space at Hypervisor, Hypercall calling interface is provided, allow the virtual machine subregion of non-privilege that the first half section code PISR that interrupts processing is kept in corresponding kernel code space, and can apply for certain data space IMM, preserve for the data of first half section code operational process;
3), as virtual machine subregion 1(VM1) need every 20ms to sample and obtain the external data that certain sensor (Sensor1) gathers by AD, VM1 can interrupt kernel corresponding to registration for Sensor1 sampling and interrupt pre-service service (PISR1), and request for data space IMM1, ISR1 operates in Hypervisor space, IMM1 is shone upon to VM1 by Hypervisor, in the time that AD sampling is interrupted arriving, Hypervisor does not need to be switched to privileged partition or VM1 and can call PISR1 and complete AD data read work, data are kept in IMM1 successively, and continue the normal process of work at present, when entering after the time window of VM1, the data that VM1 gathers before can obtaining by memory-mapped mechanism, and data are processed,
4), as virtual machine subregion 2(VM2) need every 10ms to carry out data by two-port RAM (DPRAM1) and redundant system and synchronize, VM2 can interrupt kernel corresponding to registration for DPRAM1 synchronizing signal and interrupt processing service PISR2, and request for data space IMM2, PISR2 operates in Hypervisor space, IMM2 is shone upon to VM2 by Hypervisor, in the time that two-port RAM synchronizing signal arrives, do not need to be switched to privileged partition or VM1, Hypervisor directly calls PISR2 and completes synchronous operation, synchrodata is kept in IMM2, and continue the normal process of work at present, when entering after the time window of VM2, synchronous data before VM2 can obtain by memory-mapped mechanism, and data are processed.
Owing to having adopted technique scheme, compared with prior art, the invention provides a kind of high-frequency data collection and quick response mechanism of interruption of completing in virtual platform, utilize the memory-mapped mechanism that Hypervisor provides to be absorbed in mechanism with interruption, virtual machine subregion interrupts the calling interface of pre-service function in the registration of Hypervisor space, and corresponding interruption memory-mapped subregion, high-frequency data collection and the privileged operation interrupting in response fast are directly completed in Hypervisor, reduce the repeatedly switching of Hypervisor and division operation system, thereby realize high-frequency data collection and interrupt quick response mechanism.
Brief description of the drawings
Fig. 1 is the working plan of an embodiment of the present invention.
Embodiment
Embodiment:
One realizes embedded type virtual machine platform high-frequency data acquisition method, step is as follows: utilize the memory-mapped mechanism that Hypervisor provides to be absorbed in mechanism with interruption, virtual machine subregion interrupts the calling interface of pre-service function (PISR) in the registration of Hypervisor space, and corresponding interruption memory-mapped subregion (IMM), high-frequency data collection and the privileged operation interrupting in response fast are directly completed in Hypervisor, reduce the repeatedly switching of Hypervisor and division operation system, thereby realize high-frequency data collection and interrupt quick response mechanism.
As shown in Figure 1, the concrete implementation step of acquisition method is as follows:
1), at the spacecraft flight control platform based on Intel Virtualization Technology, build virtual machine monitor Hypervisor, and memory-mapped mechanism and interrupt response mechanism be provided.
2), provide special kernel code space and data space at Hypervisor, Hypercall calling interface is provided, allow the virtual machine subregion of non-privilege that the first half section code PISR that interrupts processing is kept in corresponding kernel code space, and can apply for certain data space IMM, preserve for the data of first half section code operational process.
3), as virtual machine subregion 1(VM1) need every 20ms to sample and obtain the external data that certain sensor (Sensor1) gathers by AD, VM1 can interrupt kernel corresponding to registration for Sensor1 sampling and interrupt pre-service service (PISR1), and request for data space IMM1, ISR1 operates in Hypervisor space, IMM1 is shone upon to VM1 by Hypervisor, in the time that AD sampling is interrupted arriving, Hypervisor does not need to be switched to privileged partition or VM1 and can call PISR1 and complete AD data read work, data are kept in IMM1 successively, and continue the normal process of work at present, when entering after the time window of VM1, the data that VM1 gathers before can obtaining by memory-mapped mechanism, and data are processed.
4), as virtual machine subregion 2(VM2) need every 10ms to carry out data by two-port RAM (DPRAM1) and redundant system and synchronize, VM2 can interrupt kernel corresponding to registration for DPRAM1 synchronizing signal and interrupt processing service PISR2, and request for data space IMM2, PISR2 operates in Hypervisor space, IMM2 is shone upon to VM2 by Hypervisor, in the time that two-port RAM synchronizing signal arrives, do not need to be switched to privileged partition or VM1, Hypervisor directly calls PISR2 and completes synchronous operation, synchrodata is kept in IMM2, and continue the normal process of work at present, when entering after the time window of VM2, synchronous data before VM2 can obtain by memory-mapped mechanism, and data are processed.
The present invention is mainly used in the embedded system of the hard real time such as Aero-Space, energy control, high safety requirements, in the security mechanisms such as the space-time isolation that utilizes Intel Virtualization Technology to provide, solve the excessive problem of expense that traditional virtual technology response high-frequency is interrupted, thereby realize the embedded type virtual system of hard real time, high safety.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (2)

1. realize embedded type virtual machine platform high-frequency data acquisition method for one kind, it is characterized in that: step is as follows: utilize the memory-mapped mechanism that Hypervisor provides to be absorbed in mechanism with interruption, virtual machine subregion interrupts the calling interface of pre-service function (PISR) in the registration of Hypervisor space, and corresponding interruption memory-mapped subregion (IMM), high-frequency data collection and the privileged operation interrupting in response fast are directly completed in Hypervisor, reduce the repeatedly switching of Hypervisor and division operation system, thereby realize high-frequency data collection and interrupt quick response mechanism.
2. according to realizing embedded type virtual machine platform high-frequency data acquisition method described in claim 1, it is characterized in that: the step of acquisition method is as follows:
1), at the spacecraft flight control platform based on Intel Virtualization Technology, build virtual machine monitor Hypervisor, and memory-mapped mechanism and interrupt response mechanism be provided;
2), provide special kernel code space and data space at Hypervisor, Hypercall calling interface is provided, allow the virtual machine subregion of non-privilege that the first half section code PISR that interrupts processing is kept in corresponding kernel code space, and can apply for certain data space IMM, preserve for the data of first half section code operational process;
3), as virtual machine subregion 1(VM1) need every 20ms to sample and obtain the external data that certain sensor (Sensor1) gathers by AD, VM1 can interrupt kernel corresponding to registration for Sensor1 sampling and interrupt pre-service service (PISR1), and request for data space IMM1, PISR1 operates in Hypervisor space, IMM1 is shone upon to VM1 by Hypervisor, in the time that AD sampling is interrupted arriving, Hypervisor does not need to be switched to privileged partition or VM1 and can call PISR1 and complete AD data read work, data are kept in IMM1 successively, and continue the normal process of work at present, when entering after the time window of VM1, the data that VM1 gathers before can obtaining by memory-mapped mechanism, and data are processed,
4), as virtual machine subregion 2(VM2) need every 10ms to carry out data by two-port RAM (DPRAM1) and redundant system and synchronize, VM2 can interrupt kernel corresponding to registration for DPRAM1 synchronizing signal and interrupt processing service PISR2, and request for data space IMM2, PISR2 operates in Hypervisor space, IMM2 is shone upon to VM2 by Hypervisor, in the time that two-port RAM synchronizing signal arrives, do not need to be switched to privileged partition or VM1, Hypervisor directly calls PISR2 and completes synchronous operation, synchrodata is kept in IMM2, and continue the normal process of work at present, when entering after the time window of VM2, synchronous data before VM2 can obtain by memory-mapped mechanism, and data are processed.
CN201410060284.3A 2014-02-21 2014-02-21 Method for realizing high-frequency data collection of embedded virtual machine platform Active CN103853597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410060284.3A CN103853597B (en) 2014-02-21 2014-02-21 Method for realizing high-frequency data collection of embedded virtual machine platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410060284.3A CN103853597B (en) 2014-02-21 2014-02-21 Method for realizing high-frequency data collection of embedded virtual machine platform

Publications (2)

Publication Number Publication Date
CN103853597A true CN103853597A (en) 2014-06-11
CN103853597B CN103853597B (en) 2017-04-19

Family

ID=50861286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410060284.3A Active CN103853597B (en) 2014-02-21 2014-02-21 Method for realizing high-frequency data collection of embedded virtual machine platform

Country Status (1)

Country Link
CN (1) CN103853597B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107278293A (en) * 2017-05-08 2017-10-20 深圳前海达闼云端智能科技有限公司 The sensor of virtual machine realizes devices and methods therefor
CN109542610A (en) * 2018-12-04 2019-03-29 中国航空工业集团公司西安航空计算技术研究所 A kind of multi partition operating system void interrupt criteria component realization method
CN110147265A (en) * 2019-04-26 2019-08-20 王云飞 A method of the integrated virtualization system based on microcontroller platform
WO2021185135A1 (en) * 2020-03-17 2021-09-23 阿里巴巴集团控股有限公司 Message signaled interrupt implementation method, apparatus and device
CN114520825A (en) * 2022-01-07 2022-05-20 中汽创智科技有限公司 Distributed Hypervisor microkernel architecture, communication method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070028244A1 (en) * 2003-10-08 2007-02-01 Landis John A Computer system para-virtualization using a hypervisor that is implemented in a partition of the host system
CN101271436A (en) * 2007-03-19 2008-09-24 联想(北京)有限公司 Virtual machine system and access processing method of its advanced programmable interrupt controller
CN101271401A (en) * 2008-04-23 2008-09-24 北京航空航天大学 Server cluster unit system with single system image
CN101377745A (en) * 2007-08-28 2009-03-04 张玉昆 Virtual computer system and method for implementing data sharing between each field
US20090113110A1 (en) * 2007-10-30 2009-04-30 Vmware, Inc. Providing VMM Access to Guest Virtual Memory
CN101539868A (en) * 2009-04-10 2009-09-23 北京大学 Client operating system nucleus code dynamic replacement method of virtual machine manager
CN101727351A (en) * 2009-12-14 2010-06-09 北京航空航天大学 Multicore platform-orientated asymmetrical dispatcher for monitor of virtual machine and dispatching method thereof
US20120079479A1 (en) * 2010-09-27 2012-03-29 James Robert Howard Hakewill Microprocessor system for virtual machine execution

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070028244A1 (en) * 2003-10-08 2007-02-01 Landis John A Computer system para-virtualization using a hypervisor that is implemented in a partition of the host system
CN101271436A (en) * 2007-03-19 2008-09-24 联想(北京)有限公司 Virtual machine system and access processing method of its advanced programmable interrupt controller
CN101377745A (en) * 2007-08-28 2009-03-04 张玉昆 Virtual computer system and method for implementing data sharing between each field
US20090113110A1 (en) * 2007-10-30 2009-04-30 Vmware, Inc. Providing VMM Access to Guest Virtual Memory
CN101271401A (en) * 2008-04-23 2008-09-24 北京航空航天大学 Server cluster unit system with single system image
CN101539868A (en) * 2009-04-10 2009-09-23 北京大学 Client operating system nucleus code dynamic replacement method of virtual machine manager
CN101727351A (en) * 2009-12-14 2010-06-09 北京航空航天大学 Multicore platform-orientated asymmetrical dispatcher for monitor of virtual machine and dispatching method thereof
US20120079479A1 (en) * 2010-09-27 2012-03-29 James Robert Howard Hakewill Microprocessor system for virtual machine execution

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张炯等: "虚拟化技术在综合化航电系统中的应用", 《北京航空航天大学学报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107278293A (en) * 2017-05-08 2017-10-20 深圳前海达闼云端智能科技有限公司 The sensor of virtual machine realizes devices and methods therefor
CN107278293B (en) * 2017-05-08 2020-11-06 深圳前海达闼云端智能科技有限公司 Sensor implementation device and method for virtual machine
CN109542610A (en) * 2018-12-04 2019-03-29 中国航空工业集团公司西安航空计算技术研究所 A kind of multi partition operating system void interrupt criteria component realization method
CN110147265A (en) * 2019-04-26 2019-08-20 王云飞 A method of the integrated virtualization system based on microcontroller platform
WO2021185135A1 (en) * 2020-03-17 2021-09-23 阿里巴巴集团控股有限公司 Message signaled interrupt implementation method, apparatus and device
CN114520825A (en) * 2022-01-07 2022-05-20 中汽创智科技有限公司 Distributed Hypervisor microkernel architecture, communication method and device
CN114520825B (en) * 2022-01-07 2023-12-26 中汽创智科技有限公司 Hypervisor micro-kernel architecture based on distributed mode, communication method and equipment

Also Published As

Publication number Publication date
CN103853597B (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN103853597A (en) Method for realizing high-frequency data collection of embedded virtual machine platform
EP1899810B1 (en) System and method to optimize os context switching by instruction group trapping
CN101557420B (en) Realization method of high-efficiency network communication of a virtual machine monitor
CN103853598B (en) Realize embedded type virtual machine strong when virtual timer response method
US8692832B2 (en) Para-virtualized asymmetric GPU processors
US11157302B2 (en) Idle processor management in virtualized systems via paravirtualization
CN103473129B (en) Multi-task queue scheduling system with scalable number of threads and implementation method thereof
CN101620547B (en) Virtual physical interrupt processing method of X86 computer
CN103942178A (en) Communication method between real-time operating system and non-real-time operating system on multi-core processor
US10365651B2 (en) Control system for autonomous locomotion devices
CN108196946B (en) A kind of subregion multicore method of Mach
CN103744716A (en) Dynamic interrupt balanced mapping method based on current virtual central processing unit (VCPU) scheduling state
CN103197949A (en) Method and assembly for use of a resource of a hardware platform with at least two virtual machines
US10949243B2 (en) Reducing IPI overhead with CPU overcommit support via IPI broadcast
WO2022037265A1 (en) Edge computing center integrated server
CN106462451A (en) Interruption handling method and relevant device of virtual platform
US20170024231A1 (en) Configuration of a computer system for real-time response from a virtual machine
Kato et al. Operating systems challenges for GPU resource management
CN102053947B (en) Method for realizing reconfiguration of global positioning system (GPS) baseband algorithm
Wu et al. Oops! it's too late. your autonomous driving system needs a faster middleware
Kirsch et al. Cyber-physical cloud computing: The binding and migration problem
CN101639791B (en) Method for improving interruption delay of embedded type real-time operation system
CN103955422A (en) Method for analyzing I/O (Input/Output) performance interference of coexisting application in virtualized environment and system thereof
CN114237813A (en) Micro-kernel IO virtualization method and system based on ARM architecture
CN101364183B (en) Virtual machine monitor, virtual machine system and method for accessing true physical equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100094 No. 28, Yongfeng Road, Beijing, Haidian District

Patentee after: Beijing Shenzhou Aerospace Software Technology Co.,Ltd.

Address before: 100094 No. 28, Yongfeng Road, Beijing, Haidian District

Patentee before: BEIJING SHENZHOU AEROSPACE SOFTWARE TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder