[go: up one dir, main page]

CN103049318B - The virtual interrupt method of partition operating system - Google Patents

The virtual interrupt method of partition operating system Download PDF

Info

Publication number
CN103049318B
CN103049318B CN201110305970.9A CN201110305970A CN103049318B CN 103049318 B CN103049318 B CN 103049318B CN 201110305970 A CN201110305970 A CN 201110305970A CN 103049318 B CN103049318 B CN 103049318B
Authority
CN
China
Prior art keywords
interrupt
virtual
virtual interrupt
partition
application partition
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
CN201110305970.9A
Other languages
Chinese (zh)
Other versions
CN103049318A (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 KEYIN JINGCHENG TECHNOLOGY Co Ltd
Original Assignee
BEIJING KEYIN JINGCHENG 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 KEYIN JINGCHENG TECHNOLOGY Co Ltd filed Critical BEIJING KEYIN JINGCHENG TECHNOLOGY Co Ltd
Priority to CN201110305970.9A priority Critical patent/CN103049318B/en
Publication of CN103049318A publication Critical patent/CN103049318A/en
Application granted granted Critical
Publication of CN103049318B publication Critical patent/CN103049318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The present invention is a kind of virtual interrupt algorithm for partition operating system, virtual interrupt is categorized as external interrupt by this method, it is abnormal, tick is interrupted, four kinds of virtual interrupts of service request interrupt, virtual interrupt is distributed to corresponding application partition by distributing mechanism by various virtual interrupts, delivered when external interrupt/exception/system call interfaces processing of operating system kernel returns to application partition, the virtual interrupt processing entrance function for jumping to application partition installation carries out the virtual interrupt processing of application partition, so as to provide abnormal interruption isolation mech isolation test and inter-partition communication mechanism for the subregion in partition operating system.

Description

The virtual interrupt method of partition operating system
Technical field subregion
The present invention is a kind of virtual interrupt method for partition operating system.
Background is described
At present, different types of partition operating system handling interruption that hardware produces, it is abnormal when, all processing be all What operating system kernel was carried out, it is impossible to handled accordingly on subregion, but the interruption that different subregions is produced to hardware It is probably different with the various abnormal processing produced on subregion, therefore this is accomplished by providing a kind of for division operation system The abnormal interruption of the subregion of system handles the virtual interrupt algorithm similar with the abnormal interruption processing of current operating system kernel.
The content of the invention
The present invention has comprising specific feature content:
Virtual interrupt is categorized as external interrupt, exception, tick interruptions, service request interrupt
Virtual interrupt is distributed
The delivery of virtual interrupt
Embodiment
1. virtual interrupt is categorized as external interrupt, exception, tick interruptions, service request interrupt
Virtual interrupt provides abnormal interruption isolation mech isolation test and inter-partition communication mechanism for subregion.
Virtual interrupt is categorized as external interrupt, exception, tick interruptions, four kinds of virtual interrupts of service request interrupt.
External interrupt is the interruption that hardware is produced, and system supports 32 external interrupts, with 32 signless integers position One in the external interrupt that seal record occurs, each external interrupt 32 integers of correspondence.
The abnormal exception to be produced on application partition, the exception that anomalous sign record occurs.
Tick, which is interrupted, represents timer interruption, the fixed cycle operator for subregion.Adopted value mode records tick interrupting values, this Sample can ensure the continuity of the tick times in subregion.One tick is a basic time unit of system operation, also It is timeslice.
Service request interrupt is similar to traps, is mainly used in inter-partition communication.Service request interrupt type and 5 parameters Record each service request interrupt produced.The service request interrupt of generation is managed by service request interrupt chained list.
Application partition optionally uses virtual interrupt function, if necessary to use virtual interrupt function, then application point Area needs to enable virtual interrupt function and installs virtual interrupt processing entrance function and initialization of virtual interruption stack space.Virtually Distributing and delivering for interrupting could only be carried out after subregion enables virtual interrupt function.
2. virtual interrupt is distributed
Distributing for virtual interrupt is that application partition records the process for being distributed to the subregion virtual interrupt.
External interrupt distributes subregion:When hardware interrupts are produced, the user in the interrupt handling routine of operating system kernel Call external interrupt dispatch interface that the hardware interrupts of generation are distributed to the application partition specified.
Abnormal distributes subregion:When producing abnormal on application partition, i.e., when User space produces abnormal, operating system kernel This exception is distributed to the application partition currently run.
What tick was interrupted distributes subregion:When a timeslice is often run in current operation application partition, tick interrupting values will Increase by 1.User can set tick interrupting values to be delivered to the threshold value of subregion, once reaching threshold value, then produce tick and interrupt.
Service request interrupt distributes subregion:User calls service request interrupt dispatch interface to distribute service request interrupt To the subregion specified.
3. virtual interrupt is delivered
Thrown when external interrupt/exception/system call interfaces processing of operating system kernel returns to application partition Pass.
Virtual interrupt is detected before interruption, system are called, return to application partition extremely, delivered if necessary Virtual interrupt, by original context, external interrupt bitmap, anomalous sign, tick interrupting values and from service request interrupt chain Win a service request interrupt to be saved in the virtual interrupt stack of application partition, be delivered to application partition.Then application is removed External interrupt bitmap, anomalous sign, the tick interrupting values recorded on subregion.Application partition registration is returned to by the way of interruption is exited Installation virtual interrupt processing entrance function, the interrupt handling routine in subregion carries out related interrupt processing, in last void Intend calling a system for being used for virtual interrupt return to call when interrupt handling routine is returned, carry out virtual interrupt exits place Reason.
The processing of exiting of virtual interrupt is realized by system call mechanism, and virtual interrupt processing journey has been performed for application Sequence is returned to using producing at interruption, provide mechanism at exception or system call interfaces.Operating system kernel is carrying out void During plan interruption is exited, the delivery of multiple virtual interrupt can be carried out to current application, until the void of current application subregion Untill plan interruption has been delivered.Finally, operating system kernel recover context and return to generation produce interruption at, exception or Continued to run with system call interfaces.
Brief description of the drawings
In Figure of description:Fig. 1 is that virtual interrupt delivers handling process.

Claims (1)

1. a kind of virtual interrupt method for partition operating system, completes once fully functional virtual interrupt processing procedure and contains Below some:
1. virtual interrupt is categorized as external interrupt, exception, tick interruptions, four kinds of virtual interrupts of service request interrupt;
2. virtual interrupt is distributed to corresponding application partition by distributing mechanism by various virtual interrupts;When hardware interrupts are produced, User calls external interrupt dispatch interface to be distributed to the hardware interrupts of generation in the interrupt handling routine of operating system kernel The application partition specified;When producing abnormal on application partition, i.e., when User space produces abnormal, operating system kernel sends this extremely Issue the application partition currently run;When a timeslice is often run in current operation application partition, tick interrupting values will increase 1, user can set tick interrupting values to be delivered to the threshold value of subregion, once reaching threshold value, then produce tick and interrupt;User Call service request interrupt dispatch interface that service request interrupt is distributed to the subregion specified;
3. delivered when external interrupt/exception/system call interfaces processing of operating system kernel returns to application partition, Win original context, external interrupt bitmap, anomalous sign, tick interrupting values and from service request interrupt chain a service Request is interrupted and is saved in the virtual interrupt stack of application partition, jumps to the virtual interrupt processing entrance function of application partition installation Carry out the virtual interrupt processing of application partition;
4. call a system for being used for virtual interrupt return to call when last virtual interrupt processing routine is returned, carry out empty That intends interruption exits processing;
5. the processing of exiting of virtual interrupt is realized by system call mechanism, during progress virtual interrupt is exited, The delivery of multiple virtual interrupt can be carried out to current application, untill the virtual interrupt of current application subregion has been delivered;Most Afterwards, operating system kernel recovers context and returned at generation interruption, continued to run with exception or system call interfaces;
Application partition optionally uses virtual interrupt function, if necessary to use virtual interrupt function, then application partition is needed Enable virtual interrupt function and virtual interrupt processing entrance function and initialization of virtual interruption stack space are installed;Virtual interrupt Distribute and deliver only subregion enable virtual interrupt function after could carry out.
CN201110305970.9A 2011-10-11 2011-10-11 The virtual interrupt method of partition operating system Active CN103049318B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110305970.9A CN103049318B (en) 2011-10-11 2011-10-11 The virtual interrupt method of partition operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110305970.9A CN103049318B (en) 2011-10-11 2011-10-11 The virtual interrupt method of partition operating system

Publications (2)

Publication Number Publication Date
CN103049318A CN103049318A (en) 2013-04-17
CN103049318B true CN103049318B (en) 2017-10-17

Family

ID=48061968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110305970.9A Active CN103049318B (en) 2011-10-11 2011-10-11 The virtual interrupt method of partition operating system

Country Status (1)

Country Link
CN (1) CN103049318B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375893A (en) * 2014-11-29 2015-02-25 中国航空工业集团公司第六三一研究所 Partition scheduling method based on two-stage operating system structure
CN105988867B (en) * 2015-01-29 2020-01-21 北京科银京成技术有限公司 Rate group scheduling method based on time-sharing partition operating system
CN106874072B (en) * 2015-12-14 2020-12-29 中国航空工业第六一八研究所 Embedded operating system partition virtual interrupt processing method based on PowerPC processor
CN106293986B (en) * 2016-08-12 2019-01-25 中国航空工业集团公司西安飞行自动控制研究所 A kind of failure monitoring processing unit and method based on virtual interrupt
CN108255591B (en) * 2017-12-07 2021-10-15 中国航空工业集团公司西安航空计算技术研究所 Unified exception handling method for partition operating system
CN112559136A (en) * 2020-12-24 2021-03-26 科东(广州)软件科技有限公司 Method and device for interrupting delivery of computer
WO2024130697A1 (en) * 2022-12-23 2024-06-27 Intel Corporation Approach for handling system interrupts

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540508A (en) * 2003-04-24 2004-10-27 �Ҵ���˾ Dynamic switching between single-threaded and concurrent multi-threaded modes for multithreaded processors
CN101128807A (en) * 2005-03-28 2008-02-20 微软公司 Systems and methods for an augmented interrupt controller and synthetic interrupt sources

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272664B2 (en) * 2002-12-05 2007-09-18 International Business Machines Corporation Cross partition sharing of state information
US8312456B2 (en) * 2008-05-30 2012-11-13 International Business Machines Corporation System and method for optimizing interrupt processing in virtualized environments

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540508A (en) * 2003-04-24 2004-10-27 �Ҵ���˾ Dynamic switching between single-threaded and concurrent multi-threaded modes for multithreaded processors
CN101128807A (en) * 2005-03-28 2008-02-20 微软公司 Systems and methods for an augmented interrupt controller and synthetic interrupt sources

Also Published As

Publication number Publication date
CN103049318A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
CN103049318B (en) The virtual interrupt method of partition operating system
CN109766701B (en) Processing method, device and electronic device for abnormal process termination operation
CN106528193B (en) A kind of application update method and terminal
EP3509270B1 (en) Data backup method and device, storage medium and electronic apparatus
CN110244991A (en) A kind of micro services dependency analysis method and device
CN107888706B (en) Cloud product fault processing method, device, equipment and computer readable storage medium
CN102591658B (en) A kind of message treatment method and device
EP1341083A3 (en) Parallel-process execution method and multiprocessor-type computer
GB2499955A (en) A method computer program and system for managing pre-requisite of a software product virtual image
EP2680144A3 (en) Distributed processing of network device tasks
WO2011104699A3 (en) Method and apparatus for providing a high level mobile virtual machine
CN107450962B (en) Exception handling method, device and system in virtualized operation environment
WO2012088171A3 (en) Method for checkpointing and restoring program state
CN104461675A (en) Method and system for performing a checkpoint
CN105068855A (en) Method, server and system for compiling android package development files
CN106952163A (en) Insurance data processing method and system
CN103248696A (en) Dynamic configuration method for virtual resource in cloud computing environment
CN111277626A (en) Server upgrading method and device, electronic equipment and medium
CN105138388B (en) Virtual machine monitoring method and device
CN106453515A (en) Method and apparatus for hosting a multitasking guest on a host system
CN109741159A (en) Clear account checking method, device and computer equipment
US11888758B2 (en) Methods and apparatus to provide a custom installable open virtualization application file for on-premise installation via the cloud
CN103995718B (en) Method and device for collecting program information
EP3299960B1 (en) Virtual machine deployment method, device and network function virtualization orchestrator (nfvo)
CN110389576A (en) Execution method of alarm operation, smart device, storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
DD01 Delivery of document by public notice

Addressee: Beijing Keyin Jingcheng Technology Co., Ltd.

Document name: Notification of Patent Invention Entering into Substantive Examination Stage

DD01 Delivery of document by public notice

Addressee: Beijing Keyin Jingcheng Technology Co., Ltd.

Document name: the First Notification of an Office Action

DD01 Delivery of document by public notice
GR01 Patent grant
GR01 Patent grant
DD01 Delivery of document by public notice

Addressee: Beijing Keyin Jingcheng Technology Co., Ltd.

Document name: Notification to Pay the Fees

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Li Min

Document name: Notification of conformity

DD01 Delivery of document by public notice