Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Dpdk vhostuser network adapter management method and device based on libvirt

A management method and network card technology, applied in the field of virtualization platform applications, can solve the problems of adding a network card that does not support the vhostuser type to the ovs bridge, not supporting the specified virtualport, etc., to avoid memory copying and system calls, and facilitate iterative optimization. , the effect of avoiding overhead

Inactive Publication Date: 2020-12-08
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The vhost user protocol uses a UNIX socket to handle the communication between vswitch and QEMU, including during the initialization process, and when the data packet is copied to the virtio ring of the shared memory and needs to be notified to the other party, so the interaction between the two includes based on the control channel (vhu ) creation operation and notification mechanism, and the data channel for copying data packets (direct memory access); in the vhostuser client mode, QEMU creates a vhu socket, and OVS connects; using the DPDK vhostuser network card can greatly improve the performance of virtual machine network sending and receiving. However, libvirt does not support adding a vhostuser type network card to the ovs bridge, and does not support specifying a virtual port; therefore, an improved technology is urgently needed to solve this problem existing in the prior art

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
  • Dpdk vhostuser network adapter management method and device based on libvirt
  • Dpdk vhostuser network adapter management method and device based on libvirt
  • Dpdk vhostuser network adapter management method and device based on libvirt

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Step 1. Configure vhostuser related parameters in XML, set the network card socket path and specify the bridge name, virtualport type and interfaceid. The specific format is as follows:

[0036]

[0037] Step 2, create a virtual machine, libvirt parses the xml, supports bridge and virtualport when the network card type is vhostuser, and saves the relevant parameters in the data structure

[0038] Step 3: Build the openvswitch command line in libvirt according to the parsed vhostuser parameter, and specify the port, network card path and name.

[0039]Step 4, call the openvswitch command to create a network card

[0040] Step 5, check whether the network card is generated under the specified path, whether the network card parameters are correct, and whether the network card path ovs-vsctl list interface net-id is included in the virtual machine command line parameters.

[0041] Step 6, shut down the virtual machine, check whether the socket file in the specified path...

Embodiment 2

[0043] Step 1. Configure vhostuser related parameters in XML, set the network card socket path and specify the bridge name, virtualport type and interfaceid. The specific format is as follows:

[0044]

[0045] Step 2, create a virtual machine, libvirt parses the xml, supports bridge and virtualport when the network card type is vhostuser, and saves the relevant parameters in the data structure

[0046] Step 3: Build the openvswitch command line in libvirt according to the parsed vhostuser parameter, and specify the port, network card path and name.

[0047] Step 4, call the openvswitch command to create a network card

[0048] Step 5, check whether the network card is generated under the specified path, whether the network card parameters are correct, and whether the network card path ovs-vsctl list interface net-id is included in the virtual machine command line parameters.

[0049] Step 6, shut down the virtual machine, check whether the socket file in the specified pat...

Embodiment 3

[0051] Step 1. Configure vhostuser related parameters in XML, set the network card socket path and specify the bridge name, virtualport type and interfaceid. The specific format is as follows:

[0052]

[0053] Step 2, create a virtual machine, libvirt parses the xml, supports bridge and virtualport when the network card type is vhostuser, and saves the relevant parameters in the data structure.

[0054] Step 3: Build the openvswitch command line in libvirt according to the parsed vhostuser parameter, and specify the port, network card path and name.

[0055] Step 4, call the openvswitch command to create a network card.

[0056] Step 5, check whether the network card is generated under the specified path, whether the network card parameters are correct, and whether the network card path ovs-vsctl list interface net-id is included in the virtual machine command line parameters.

[0057] Step 6, shut down the virtual machine, check whether the socket file in the specified p...

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 discloses a dpdk vhostuser network adapter management method and device based on libvirt. The dpdk vhostuser network adapter management method based on libvirt comprises the steps of configuring vhostuser related parameters in XML; creating a virtual machine; constructing an openvswitch command line, an appointed port, a network adapter path and a name in the libvirt according to theanalyzed vhostuser parameters; calling an openvswitch command, and creating a network adapter; checking whether the network adapter is generated under the specified path, whether the network adapterparameters are correct and whether the network adapter path is included in the virtual machine command line parameters; and closing the virtual machine, and checking whether the socket file under thespecified path is cleared and whether the network adapter in the ovs network is deleted. According to the invention, creation of the DPDK network adapter of the virtual machine is achieved in the libvirt, high-speed receiving and sending of network data are achieved, and the network performance of the virtual machine is improved.

Description

technical field [0001] The invention relates to the technical field of virtualization platform application, in particular to a libvirt-based dpdkvhostuser network card management method and management device. Background technique [0002] DPDK uses polling instead of interrupts to process packets. When receiving a data packet, the network card driver overloaded by DPDK will not notify the CPU through an interrupt, but directly store the data packet in the memory, and deliver the application layer software to directly process it through the interface provided by DPDK, which saves a lot of CPU. Interrupt time and memory copy time; vhost user implements the vhost architecture based on the kernel, and implements all features in user space; the vhost user protocol consists of two parties: the master - QEMU; the slave - Open vSwitch or other software switches; In the vhostuser client mode, QEMU acts as the server, and the software switch acts as the client. [0003] When the QEM...

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/45558G06F2009/45562G06F2009/45595
Inventor 周胜利颜秉珩
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products