Interrupt processing method, interrupt manager, electronic equipment and computer readable medium

A processing method and manager technology, applied in the field of communication, can solve the problems of low efficiency of IPI virtualization operation, achieve the effect of improving virtualization operation efficiency and reducing performance loss

Pending Publication Date: 2021-05-11
ZTE CORP
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, IPI virtualization operates less efficiently

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interrupt processing method, interrupt manager, electronic equipment and computer readable medium
  • Interrupt processing method, interrupt manager, electronic equipment and computer readable medium
  • Interrupt processing method, interrupt manager, electronic equipment and computer readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0140] Figure 16 It is a schematic diagram of the storage space of the IPI interrupt manager in the embodiment of the present disclosure.

[0141] Such as Figure 16 As shown, in the storage space of the IPI interrupt manager, different virtual machines have independent IPI interrupt information storage spaces, and each IPI interrupt information storage space includes:

[0142] The IPI interrupt request information area is 4K page aligned. Each IPI interrupt request information area is divided into multiple IPI request information memory blocks, and the multiple IPI request information memory blocks are in one-to-one correspondence with each vCPU in the VM. In the first embodiment, each IPI request information memory block is 32 bits, including 16 bits of IPI target vCPU information and 16 bits of IPI interrupt vector number. The IPI interrupt request information area is mapped to the corresponding VM through MMIO, and can be directly written by vCPU;

[0143] The vCPU st...

Embodiment 2

[0149] Embodiment 2 provides an initialization process of the host VMM.

[0150] When the VMM is initialized, read the PCI control information, obtain the physical first address of the storage space of the IPI interrupt manager, and complete the MMIO mapping;

[0151] The VMM allocation sets the VMM notification interrupt, and the IPI interrupt manager can wake up the VMM by sending the VMM notification interrupt;

[0152] VMM sets the Posted Interrupt interrupt, and the setting method is:

[0153] Traverse all pCPUs;

[0154] Assign an IRTE to each pCPU, set it as the property of Posted Interrupt, and set its posting target pCPU;

[0155] Write the pCPU ID and the corresponding IRTE index into the pCPU information area of ​​the IPI interrupt manager.

Embodiment 3

[0157]Embodiment 3 provides a process for creating a VM.

[0158] After receiving the virtual machine creation command, the VMM applies for a new virtual machine IPI request information area from the IPI interrupt manager;

[0159] The VMM creates a VM, and creates an IPI virtual PCI device, and the BAR address space of the virtual PCI device is set as the address of the newly allocated IPI request information area.

[0160] When the virtual machine starts, an IPI driver is created, the address of the IPI request information area corresponding to the virtual machine is obtained from the virtual PCI device, and the MMIO mapping is completed, and the mapping is actually mapped to the corresponding IPI request information area. Subsequently, the IPI driver can directly write through the virtual address space GVA to complete the IPI interrupt request. Since each VM can only map its corresponding IPI request information area, the IPI requests of different VMs will not affect other...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an interrupt processing method. The method comprises the steps: when IPI request information is written into an IPI request information area among processors, generating a predetermined interrupt request according to the IPI request information, wherein the IPI request information carries an identifier of at least one target virtual central processing unit vCPU, the storage space of a current IPI interrupt manager comprises at least one IPI request information area, the IPI request information area corresponds to a virtual machine, and the physical address of the IPI request information area is mapped to the corresponding virtual machine through memory mapping input and output (MMIO); and sending the predetermined interrupt request to an interrupt controller, and enabling the interrupt controller to send the predetermined interrupt request to each target vCPU. The invention further provides the interrupt processing method, the IPI interrupt manager, electronic equipment and a computer readable medium.

Description

technical field [0001] The present disclosure relates to the technical field of communications, and in particular to an interrupt processing method, an interrupt processing method, an IPI interrupt manager, an electronic device, and a computer-readable medium. Background technique [0002] Virtualization supports one physical host to run multiple logical hosts (virtual machines), so that features such as security isolation and high utilization can be obtained. A virtual machine can have multiple virtual central processing units (vCPUs) to provide better performance. In order to support synchronization among multiple vCPUs, the operating system needs virtualization to provide an Inter-Processor Interrupt (IPI, Inter-Processor Interrupts) mechanism. The IPI mechanism allows one vCPU to send interrupts to multiple vCPUs, and generally performs operations such as address translation buffer (TLB, Translation Lookaside Buffer) refresh, cross-CPU function calls, etc., and is an im...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455
CPCG06F9/45504G06F9/45558G06F2009/45575
Inventor 李翌刘熠
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products