A KVM virtual machine network card pass-through method and device for a host

A virtual machine network card and virtual machine technology, applied in the field of virtualization, can solve the problems of slow signal transmission speed and poor performance of the network card of the virtual machine, and achieve the effect of simple process, fast signal transmission rate and improved network card performance
CN106803794BActive Publication Date: 2020-02-07ZHENGZHOU YUNHAI INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Publication Date
2020-02-07

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a kvm virtual machine network card pass-through method and a device thereof for a host, including receiving a network card pass-through request sent by a virtual machine, determining the number of network cards required by the virtual machine, and controlling the hardware virtualization function of the host and the opening state of Intel_iommu ;According to the number of network cards required by the virtual machine, select the corresponding number of physical network cards from the PCI address list of the physical network cards in the host, and obtain the PCI addresses of the selected physical network cards; The xml configuration file of the physical network card; call the connection interface between the host and the virtual machine, and send the xml configuration file to the virtual machine according to the identifier of the virtual machine carried in the NIC pass-through request, for the virtual machine to use the selected physical network card. The invention enables the virtual machine to directly use the physical network card of the host, simplifies the signal transmission process, and optimizes the performance of the virtual machine.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of virtualization, in particular to a KVM virtual machine network card pass-through method and device for a host. Background technique

[0002] Virtualization refers to virtualizing a computer into multiple logical computers (virtual machines) through virtualization technology. Run multiple logical computers on one computer at the same time, each logical computer can run a different operating system, and the application programs can run in independent spaces without affecting each other, thereby significantly improving the work efficiency of the computer. Among them, a physical computer is called a host, and multiple logical computers are called clients.

[0003] At present, the network card used by the virtual machine is a virtual network card, which is obtained by virtualizing the physical network card on the host. The virtual machine cannot directly use the physical network card on the host, which makes ...

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