Network card interrupt control method for a plurality of virtual machines

A multi-virtual machine and control method technology, applied in the field of virtualized network card interrupt control, can solve the problems of reducing the processing performance of the network card I/O interface, high CPU usage, and increasing the response time of data packet processing, so as to avoid system crashes, The effect of reducing CPU load and increasing data processing rate

Active Publication Date: 2010-01-06
DAWNING INFORMATION IND BEIJING +1
View PDF0 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the softswitch of the traditional virtual machine monitor (Virtual Machine Monitor) realizes the sharing of network devices by multiple virtual machines, which obviously reduces the processing performance of the network card I / O interface, increases the response time of data packet processing, and occupies a high CPU usage, such as figure 1 shown

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
  • Network card interrupt control method for a plurality of virtual machines
  • Network card interrupt control method for a plurality of virtual machines
  • Network card interrupt control method for a plurality of virtual machines

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] according to Figure 2-4 As shown, a network card interrupt control method for multi-virtual machine applications of the present invention is provided with an FPGA on the network card, and the FPGA includes: a MAC module, a memory module, PCIe, a network filter, a DMA controller, a protocol processor, and a descriptor The manager, memory module, and DMA controller are also connected to an interrupt controller. The interrupt controller is equipped with counters and timers. The memory module has a corresponding virtual machine queue corresponding to each virtual machine:

[0020] First, when the network card is sending and receiving data packets, the protocol processor reads the descriptor of the data packet through the descriptor manager to obtain the source address, destination address and length information of the DMA, and transmits the descriptor to the DMA controller;

[0021] When sending a data packet, the DMA controller dispatches the data packet directly from the...

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 relates to a virtual network card interrupt control method for a plurality of virtual machines, which comprises the following steps: reading a descriptor of a data packet firstly to obtain information of a DMA source address, a destination address, length, and the like when a network card receives or transmits the data packet; then, executing DMA operation, back writing the descriptor after the operation is completed; counting by a counter corresponding to a virtual machine queue; transmitting an interrupt request when a numerical value of the counter reaches a preset time threshold value; carrying out the counting operation of the counter when the counter operates; when the numerical value of the counter reaches a preset time threshold value, judging whether the data packetcompletes the operation or not, if completing the operation, transmitting the interrupt request, otherwise, transmitting the interrupt request after the data packet completes the operation, and setting immediate interrupt operation without being restrained by the two threshold values as required. The network card interrupt control method completes the interrupt operation of the original software layer by hardware, completely releases the CPU and reduces the utilization ratio of the CPU, and meanwhile, because the processing speed of the hardware is greatly higher than the processing speed of the software, the data processing speed is greatly increased.

Description

technical field [0001] The invention provides an interrupt control method of a high-speed network card, and in particular relates to a virtual network card interrupt control method for multi-virtual machine applications. Background technique [0002] Generally speaking, for a 10M or 100M network card, its hardware interrupt is interrupted once every data packet comes. This method can work normally when the data flow is below 100M. But in the 1000M network card, this method is generally not used, because the large data flow will cause the system at the receiving end to crash. This is because high-speed data streams generate too many interrupts, and the CPU spends all of its time handling interrupts without any system resources to pass arriving packets to the application for processing or forwarding. For this reason, a hardware technology called Interrupt Batching is introduced in the design of Gigabit network cards. The network card using this technology will generate inter...

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/48G06F13/28
Inventor 曾宇方信我郑臣明温志明吴平
Owner DAWNING INFORMATION IND BEIJING
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