[go: up one dir, main page]

CN107229590B - A method and system for realizing system stability when plugging and unplugging a physical network card - Google Patents

A method and system for realizing system stability when plugging and unplugging a physical network card Download PDF

Info

Publication number
CN107229590B
CN107229590B CN201710495045.4A CN201710495045A CN107229590B CN 107229590 B CN107229590 B CN 107229590B CN 201710495045 A CN201710495045 A CN 201710495045A CN 107229590 B CN107229590 B CN 107229590B
Authority
CN
China
Prior art keywords
network card
physical network
virtual machine
configuration file
release
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
CN201710495045.4A
Other languages
Chinese (zh)
Other versions
CN107229590A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710495045.4A priority Critical patent/CN107229590B/en
Publication of CN107229590A publication Critical patent/CN107229590A/en
Application granted granted Critical
Publication of CN107229590B publication Critical patent/CN107229590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45579I/O management, e.g. providing access to device drivers or storage
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0024Peripheral component interconnect [PCI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种插拔物理网卡时实现系统稳定性的方法,包括在接收到用户发送的刷新指令时,判断虚拟机与物理网卡是否是直接使用关系;如果是,则生成用于提示用户解除直接使用关系的提示指令;接收用户发送的解除指令,根据解除指令删除上层数据库中物理网卡的使用状态,并删除虚拟机的配置文件中的虚拟机与物理网卡的使用关系;解除完毕后,通过上层逻辑刷新物理网卡列表。保证了上层数据库中存储的物理网卡的使用状态和当前物理网卡的实际使用状态一致,并且有效的避免了在插拔物理网卡时破坏上层数据库中的系统数据,增强了虚拟化系统的稳定性。本发明还公开了一种插拔物理网卡时实现系统稳定性的系统,具有上述有益效果。

Figure 201710495045

The invention discloses a method for realizing system stability when plugging and unplugging a physical network card. The method includes, when receiving a refresh instruction sent by a user, judging whether a virtual machine and a physical network card are in a direct use relationship; if so, generating a method for prompting the user Prompt instruction to release the direct use relationship; receive the release instruction sent by the user, delete the usage status of the physical network card in the upper-level database according to the release instruction, and delete the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine; after the release is completed, Refresh the list of physical NICs through upper-layer logic. It ensures that the use state of the physical network card stored in the upper-layer database is consistent with the actual use state of the current physical network card, and effectively avoids destroying the system data in the upper-layer database when plugging and unplugging the physical network card, thereby enhancing the stability of the virtualization system. The invention also discloses a system for realizing system stability when plugging and unplugging the physical network card, which has the above beneficial effects.

Figure 201710495045

Description

Method and system for realizing system stability during plugging and unplugging of physical network card
Technical Field
The invention belongs to the field of virtual storage, and particularly relates to a method and a system for realizing system stability when various physical network cards are plugged and unplugged.
Background
With the development of virtualization systems, the wide application of cloud computing based on virtualization technology improves the utilization rate of server CPUs and network resources. The virtualization system comprises an upper layer database, a virtual machine and a physical network card. In the prior art, when a virtual machine uses a passthrough or a single virtualization sriov technology, a virtualization system passes through a physical network card to the virtual machine for use, so that the virtual machine is connected to a network outside a server. However, if the physical network card on the physical host is plugged or unplugged, the use state of the physical network card stored in the upper database may be inconsistent with the actual use state of the current physical network card, and if the physical network card list is directly refreshed at this time, data in the upper database of the virtualization system may be damaged, thereby reducing the stability of the virtualization system. In the technical application of the current virtualization system, no scheme is available which can effectively avoid the damage to system data in an upper database when a physical network card is plugged and can ensure the stability of the virtualization system when the physical network card is plugged and unplugged.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method for realizing system stability when plugging and unplugging a physical network card, which ensures that the use state of the physical network card stored in an upper database is consistent with the actual use state of the current physical network card, effectively avoids damaging system data in the upper database when plugging and unplugging the physical network card, and enhances the stability of a virtualization system. The invention also aims to provide a system for realizing system stability when the physical network card is plugged in and pulled out.
In order to solve the above technical problem, the present invention provides a method for realizing system stability when plugging in and unplugging a physical network card, which is applied to a virtualization system comprising an upper database, a virtual machine and a physical network card, and comprises:
when a refreshing instruction sent by a user is received, judging whether the virtual machine and the physical network card are in a direct use relationship;
if yes, generating a prompt instruction for prompting the user to release the direct use relationship;
receiving a release instruction sent by a user, deleting the use state of the physical network card in the upper layer database according to the release instruction, and deleting the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine;
and after the removal is finished, refreshing the physical network card list through upper-layer logic.
Preferably, the process of determining whether the virtual machine and the physical network card are in a direct use relationship specifically includes:
judging whether the virtual machine uses a physical network card through a passthrough technology;
if yes, the process of deleting the usage relationship between the virtual machine and the physical network card in the configuration file of the virtual machine specifically includes:
and deleting Peripheral Component Interconnect (PCI) information of the physical network card in the virtual machine configuration file.
Preferably, the process of determining whether the virtual machine and the physical network card are in a direct use relationship specifically includes:
judging whether the virtual machine uses a physical network card through a single root virtualization sriov technology;
if yes, the process of deleting the usage relationship between the virtual machine and the physical network card in the configuration file of the virtual machine specifically includes:
and deleting the PCI information of the Virtual Function VF (Virtual Function) of the physical network card after the sriov technology is started in the Virtual machine configuration file.
In order to solve the above technical problem, the present invention further provides a system for achieving system stability when plugging and unplugging a physical network card, which is applied to a virtualization system including an upper database, a virtual machine, and a physical network card, and includes:
the receiving unit is used for judging whether the virtual machine and the physical network card are in a direct use relationship or not when a refreshing instruction sent by a user is received, and if so, the generating unit is triggered;
the generating unit is used for generating a prompt instruction for prompting a user to release the direct use relationship;
a release unit, configured to receive a release instruction sent by a user, delete the use state of the physical network card in the upper database according to the release instruction, and delete the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine;
and the refreshing unit is used for refreshing the physical network card list through upper-layer logic after the releasing is finished.
Preferably, the receiving unit is specifically configured to determine whether the virtual machine uses a physical network card through a passthrough technology;
if so, the removing unit is specifically configured to delete the peripheral interconnection standard PCI information of the physical network card in the virtual machine configuration file.
Preferably, the receiving unit is specifically configured to determine whether the virtual machine uses a physical network card through a single root virtualization sriov technology;
if so, the removing unit is specifically configured to delete the PCI information of the virtual function VF of the physical network card after the sriov technology is started in the virtual machine configuration file.
The invention provides a method for realizing system stability when plugging and unplugging a physical network card, which is applied to a virtualization system comprising an upper database, a virtual machine and the physical network card and comprises the steps of judging whether the virtual machine and the physical network card are in a direct use relationship or not when a refreshing instruction sent by a user is received; if yes, generating a prompt instruction for prompting the user to release the direct use relationship; receiving a release instruction sent by a user, deleting the use state of the physical network card in an upper layer database according to the release instruction, and deleting the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine; and after the removal is finished, refreshing the physical network card list through upper-layer logic.
Therefore, after receiving a refreshing instruction sent by a user, the invention prompts the user to release the direct use relationship between the current virtual machine and the physical network card, so that the use state of the physical network card stored in the upper layer database is consistent with the actual use state of the current physical network card.
The invention also provides a system for realizing system stability when the physical network card is plugged, which has the same beneficial effects as the method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of a method for achieving system stability when plugging a physical network card according to the present invention;
fig. 2 is a schematic structural diagram of a system for implementing system stability when plugging and unplugging a physical network card according to the present invention.
Detailed Description
The core of the invention is to provide a method for realizing system stability when plugging the physical network card, which ensures that the use state of the physical network card stored in the upper database is consistent with the actual use state of the current physical network card, effectively avoids damaging the system data in the upper database when plugging the physical network card, and enhances the stability of the virtualization system. The other core of the invention is to provide a system for realizing system stability when plugging and unplugging the physical network card.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a method for implementing system stability when plugging in and unplugging a physical network card, which is applied to a virtualization system including an upper database, a virtual machine, and a physical network card, and includes:
step 1: when a refreshing instruction sent by a user is received, judging whether the virtual machine and the physical network card are in a direct use relationship;
specifically, the physical network card is used as a medium for communicating the virtualization system with a network outside the server, and when the virtual machine wants to communicate with the network outside the server, the physical network card in the physical host needs to be used, and a mode that the virtual machine directly uses the physical network card is adopted, that is, the virtual machine and the physical network card are in a direct use relationship, so that the performance of the virtualization system can be improved.
Step 2: if yes, generating a prompt instruction for prompting the user to release the direct use relationship;
specifically, if the virtual machine directly uses the physical network card, the user is prompted to release the direct use relationship. Specifically, the prompt instruction may be "there is a physical network card that is being used directly, please remove the use relationship, and then perform an operation of refreshing the network card list", and of course, the prompt instruction may also be other contents, and the present invention is not limited herein.
Therefore, misjudgment of the system when the actual use state of the physical network card is judged can be avoided, the accuracy of the system when the actual use state of the physical network card is judged after the physical network card is plugged is ensured, and effective guarantee is provided for ensuring that the actual use state of the physical network card is consistent with the use state of the physical network card stored in the upper database when the physical network card is plugged.
And step 3: receiving a release instruction sent by a user, deleting the use state of the physical network card in an upper layer database according to the release instruction, and deleting the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine;
specifically, after seeing the prompt instruction, if the user wants to refresh the physical network card list, the user needs to remove the direct use relationship between the virtual machine and the physical network card in advance before refreshing the physical network card list. Therefore, even if the use state of the physical network card is possibly changed after the physical network card is plugged in and pulled out, the use state of the physical network card stored in the upper database is not influenced, so that the information of the virtualization system in checking the use state of the physical network card stored in the upper database is accurate, and the use state of the physical network card stored in the upper database is consistent with the actual use state of the current physical network card.
And 4, step 4: and after the removal is finished, refreshing the physical network card list through upper-layer logic.
Specifically, the network card list is refreshed to enable the virtualization system to acquire the actual use state of the physical network card, the use state of the physical network card stored in the upper database is refreshed, and consistency of the previous data and the next data is guaranteed. The system data in the upper database are effectively prevented from being damaged when the physical network card is plugged, so that the stability of the virtualization system is enhanced.
Therefore, after receiving a refreshing instruction sent by a user, the invention prompts the user to release the direct use relationship between the current virtual machine and the physical network card, so that the use state of the physical network card stored in the upper layer database is consistent with the actual use state of the current physical network card.
On the basis of the above-described embodiment:
as a preferred embodiment, the process of determining whether the virtual machine and the physical network card are in a direct use relationship specifically includes:
judging whether the virtual machine uses a physical network card through a passthrough technology;
if yes, the process of deleting the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine specifically comprises the following steps:
and deleting the PCI information of the physical network card in the virtual machine configuration file.
Specifically, the passthrough technology is to directly pass through the physical network card to the virtual machine in the virtualization system for use, so that the virtual machine is connected to the network outside the server, and when the virtual machine directly uses the physical network card through the passthrough technology, since the request conversion is not required by the analog device, the access speed is high, and the I/O performance is greatly improved. When the passhrough technology is used, one virtual machine monopolizes one PCI slot, that is, one virtual machine corresponds to one physical network card, so that to release the direct use relationship of the virtual machines, the PCI information of the physical network card in the virtual machine configuration file needs to be deleted, and under the condition that the use state of the physical network card in the upper layer database is deleted, the use state of the physical network card stored in the upper layer database is not influenced because the use relationship of the virtual machine and the physical network card in the configuration file of the virtual machine is deleted even if the PCI information in the physical network card changes, and further, the use state of the physical network card stored in the upper layer database is consistent with the actual use state of the current physical network card.
As a preferred embodiment, the process of determining whether the virtual machine and the physical network card are in a direct use relationship specifically includes:
judging whether the virtual machine uses a physical network card through a single virtualization sriov technology;
if yes, the process of deleting the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine specifically comprises the following steps:
and deleting the PCI information of the virtual function VF of the physical network card after the sriov technology is started in the virtual machine configuration file.
Specifically, a Virtual machine using sriov technology can virtualize a PF (Physical Function) of a Physical network card into a plurality of VFs (Virtual functions), each of which is a Virtual network card formed by virtualizing the Physical network card, each of the Virtual network cards can be used by the Virtual machine in a transparent transmission manner, one Physical network card can be virtualized into a plurality of Virtual network cards, and one Virtual network card can correspond to one Virtual machine, that is, one Physical network card corresponds to a plurality of Virtual machines, so that removing the direct use relationship of the Virtual machine at this time requires deleting PCI information of the Virtual Function VF of the Physical network card after starting sriov technology in a Virtual machine configuration file, and in the case that the use state of the Physical network card in an upper layer database has been deleted, this can ensure that even if the change of the PCI information of the VF of the Physical network card starting sriov is done, the use relationship between the Virtual machine and the Physical network card in the configuration file of the Virtual machine has been deleted, therefore, the use state of the physical network card stored in the upper database is not affected, and the use state of the physical network card stored in the upper database is further ensured to be consistent with the actual use state of the current physical network card.
Of course, the virtual machine may directly use the physical network card through passthrough or sriov technology, or may directly use the physical network card through other technologies, which is not limited herein.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a system for implementing system stability when plugging a physical network card provided by the present invention, including:
the virtual machine comprises a receiving unit 1, a generating unit 2 and a processing unit, wherein the receiving unit 1 is used for judging whether a virtual machine and a physical network card are in a direct use relationship when receiving a refreshing instruction sent by a user, and if so, the generating unit 2 is triggered;
a generating unit 2 for generating a prompt instruction for prompting a user to release the direct use relationship;
the release unit 3 is used for receiving a release instruction sent by a user, deleting the use state of the physical network card in the upper layer database according to the release instruction, and deleting the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine;
and the refreshing unit 4 is used for refreshing the physical network card list through upper-layer logic after the releasing is finished.
As a preferred embodiment, the receiving unit 1 is specifically configured to determine whether the virtual machine uses a physical network card through a passthrough technology;
if yes, the removing unit 3 is specifically configured to delete the peripheral interconnection standard PCI information of the physical network card in the virtual machine configuration file.
As a preferred embodiment, the receiving unit 1 is specifically configured to determine whether the virtual machine uses a physical network card through a single root virtualization sriov technology;
if so, the removing unit 3 is specifically configured to delete the PCI information of the virtual function VF of the physical network card after the sriov technology is started in the virtual machine configuration file.
For the description of the system for implementing system stability when plugging and unplugging a physical network card provided by the present invention, please refer to the above embodiments, which are not described herein again.
The invention also provides a system for realizing system stability when the physical network card is plugged, which has the same beneficial effects as the method.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (2)

1.一种插拔物理网卡时实现系统稳定性的方法,应用于包含上层数据库、虚拟机和物理网卡的虚拟化系统,其特征在于,包括:1. a method for realizing system stability when plugging and unplugging a physical network card, is applied to the virtualization system comprising upper-layer database, virtual machine and physical network card, is characterized in that, comprises: 在接收到用户发送的刷新指令时,判断所述虚拟机与所述物理网卡是否是直接使用关系;When receiving the refresh instruction sent by the user, determine whether the virtual machine and the physical network card are in a direct use relationship; 如果是,则生成用于提示用户解除所述直接使用关系的提示指令;If so, generating a prompt instruction for prompting the user to release the direct use relationship; 接收用户发送的解除指令,根据所述解除指令删除所述上层数据库中所述物理网卡的使用状态,并删除所述虚拟机的配置文件中的所述虚拟机与所述物理网卡的使用关系;Receive the cancellation instruction sent by the user, delete the usage status of the physical network card in the upper-layer database according to the cancellation instruction, and delete the use relationship between the virtual machine and the physical network card in the configuration file of the virtual machine; 解除完毕后,通过上层逻辑刷新物理网卡列表;After the release is completed, refresh the list of physical network cards through the upper-layer logic; 所述判断所述虚拟机与所述物理网卡是否是直接使用关系的过程具体为:The process of judging whether the virtual machine and the physical network card are in a direct use relationship is specifically: 判断所述虚拟机是否通过透传passthrough技术使用物理网卡;Determine whether the virtual machine uses a physical network card through the passthrough technology; 如果是,则所述删除所述虚拟机的配置文件中的所述虚拟机与所述物理网卡的使用关系的过程具体为:If yes, the process of deleting the usage relationship between the virtual machine and the physical network card in the configuration file of the virtual machine is as follows: 删除所述虚拟机配置文件中所述物理网卡的外设互联标准PCI信息;Delete the peripheral interconnection standard PCI information of the physical network card in the virtual machine configuration file; 所述判断所述虚拟机与所述物理网卡是否是直接使用关系的过程具体为:The process of judging whether the virtual machine and the physical network card are in a direct use relationship is specifically: 判断所述虚拟机是否通过单根虚拟化sriov技术使用物理网卡;Determine whether the virtual machine uses a physical network card through the single-root virtualization sriov technology; 如果是,则所述删除所述虚拟机的配置文件中的所述虚拟机与所述物理网卡的使用关系的过程具体为:If yes, the process of deleting the usage relationship between the virtual machine and the physical network card in the configuration file of the virtual machine is as follows: 删除所述虚拟机配置文件中开启sriov技术后所述物理网卡的虚拟功能VF的PCI信息。Delete the PCI information of the virtual function VF of the physical network card after the sriov technology is enabled in the virtual machine configuration file. 2.一种插拔物理网卡时实现系统稳定性的系统,应用于包含上层数据库、虚拟机和物理网卡的虚拟化系统,其特征在于,包括:2. a system that realizes system stability when plugging and unplugging a physical network card, is applied to a virtualization system comprising an upper-layer database, a virtual machine and a physical network card, and is characterized in that, comprising: 接收单元,用于在接收到用户发送的刷新指令时,判断所述虚拟机与所述物理网卡是否是直接使用关系,如果是,触发生成单元;a receiving unit, configured to judge whether the virtual machine and the physical network card are in a direct use relationship when receiving the refresh instruction sent by the user, and if so, trigger the generating unit; 所述生成单元,用于生成提示用户解除所述直接使用关系的提示指令;The generating unit is configured to generate a prompt instruction prompting the user to cancel the direct use relationship; 解除单元,用于接收用户发送的解除指令,根据所述解除指令删除所述上层数据库中所述物理网卡的使用状态,并删除所述虚拟机的配置文件中的所述虚拟机与所述物理网卡的使用关系;The release unit is configured to receive a release instruction sent by the user, delete the use state of the physical network card in the upper-layer database according to the release instruction, and delete the virtual machine and the physical network card in the configuration file of the virtual machine. Network card usage; 刷新单元,用于在解除完毕后,通过上层逻辑刷新物理网卡列表;The refresh unit is used to refresh the list of physical network cards through the upper-layer logic after the release is completed; 所述接收单元具体用于判断所述虚拟机是否是通过透传passthrough技术使用物理网卡;The receiving unit is specifically configured to determine whether the virtual machine uses a physical network card through the passthrough technology; 如果是,则所述解除单元具体用于删除所述虚拟机配置文件中所述物理网卡的外设互联标准PCI信息;If so, the removal unit is specifically configured to delete the peripheral interconnection standard PCI information of the physical network card in the virtual machine configuration file; 所述接收单元具体用于判断所述虚拟机是否是通过单根虚拟化sriov技术使用物理网卡;The receiving unit is specifically configured to determine whether the virtual machine uses a physical network card through the single-root virtualization sriov technology; 如果是,则所述解除单元具体用于删除所述虚拟机配置文件中开启sriov技术后所述物理网卡的虚拟功能VF的PCI信息。If yes, the removing unit is specifically configured to delete the PCI information of the virtual function VF of the physical network card after the sriov technology is enabled in the virtual machine configuration file.
CN201710495045.4A 2017-06-26 2017-06-26 A method and system for realizing system stability when plugging and unplugging a physical network card Active CN107229590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710495045.4A CN107229590B (en) 2017-06-26 2017-06-26 A method and system for realizing system stability when plugging and unplugging a physical network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710495045.4A CN107229590B (en) 2017-06-26 2017-06-26 A method and system for realizing system stability when plugging and unplugging a physical network card

Publications (2)

Publication Number Publication Date
CN107229590A CN107229590A (en) 2017-10-03
CN107229590B true CN107229590B (en) 2021-06-18

Family

ID=59936438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710495045.4A Active CN107229590B (en) 2017-06-26 2017-06-26 A method and system for realizing system stability when plugging and unplugging a physical network card

Country Status (1)

Country Link
CN (1) CN107229590B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168135A (en) * 2014-08-06 2014-11-26 中国船舶重工集团公司第七0九研究所 Network card resource pooling management method and system
CN106789363A (en) * 2017-02-20 2017-05-31 郑州云海信息技术有限公司 A kind of method and device to virtual machine configuration network interface card

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240149A1 (en) * 2006-03-29 2007-10-11 Lenovo (Singapore) Pte. Ltd. System and method for device driver updates in hypervisor-operated computer system
US9396000B2 (en) * 2010-06-25 2016-07-19 Intel Corporation Methods and systems to permit multiple virtual machines to separately configure and access a physical device
US9135044B2 (en) * 2010-10-26 2015-09-15 Avago Technologies General Ip (Singapore) Pte. Ltd. Virtual function boot in multi-root I/O virtualization environments to enable multiple servers to share virtual functions of a storage adapter through a MR-IOV switch
CN103324532B (en) * 2013-06-28 2016-05-04 东软集团股份有限公司 The dynamic migration method of virtual machine and system
CN103731514B (en) * 2013-12-29 2017-01-18 国云科技股份有限公司 Virtual network management method
CN106572047A (en) * 2015-10-09 2017-04-19 东软集团股份有限公司 Physical network safety device and control method thereof
CN105320628B (en) * 2015-11-06 2018-11-06 中国科学院计算技术研究所 Enable single I/O equipment more shared adaptive devices, system and methods
CN105573791A (en) * 2015-12-15 2016-05-11 国云科技股份有限公司 A method for implementing network card hot-swapping in a linux virtual machine

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168135A (en) * 2014-08-06 2014-11-26 中国船舶重工集团公司第七0九研究所 Network card resource pooling management method and system
CN106789363A (en) * 2017-02-20 2017-05-31 郑州云海信息技术有限公司 A kind of method and device to virtual machine configuration network interface card

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SRVM: Hypervisor Support for Live Migration with Passthrough SR-IOV Network Devices;Xin Xu;《Proceedings of the 12th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments(VEE "16)》;20160331;65-77 *
基于SR-IOV技术的网卡虚拟化研究与实现;龚珊珊;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160315(第3期);I138-7533 *

Also Published As

Publication number Publication date
CN107229590A (en) 2017-10-03

Similar Documents

Publication Publication Date Title
JP6715356B2 (en) Memory Allocation Techniques in Partially Offloaded Virtualization Managers
JP6728409B2 (en) Virtualization manager secure boot process
CN106775924B (en) Virtual machine starts method and apparatus
CN109634718B (en) Method and system for creating mirror image by cloud platform
CN104954451B (en) The access control method of USB device under a kind of virtualized environment
WO2017008675A1 (en) Method and device for transmitting data in virtual environment
CN114020406B (en) A method, apparatus, and system for accelerating virtual machine I/O on a cloud platform.
CN112100090A (en) Data access request processing method, device, medium and memory mapping controller
WO2017032265A1 (en) Application push method and apparatus, and a serving device
CN109995814A (en) Moving method and device, communication equipment, the storage medium of cloud host resource
WO2017193964A1 (en) Component upgrade method, apparatus and system
CN107562520A (en) The method and apparatus of the internal memory of dilatation virtual machine
CN115374481B (en) Data desensitization processing method and device, storage medium and electronic equipment
US20200371882A1 (en) Method, Apparatus, Device and Medium for Starting Virtual Machine
CN111078353A (en) Operation method of storage device and physical server
CN115934254A (en) Deployment method, device, server and medium of elastic search engine cluster
CN107229590B (en) A method and system for realizing system stability when plugging and unplugging a physical network card
CN102393838A (en) Data processing method and device, PCI-E (peripheral component interface-express) bus system, and server
CN114925370A (en) Software security protection method and device, storage medium and electronic equipment
CN114417069A (en) Page data interaction method and device and electronic equipment
CN108509301A (en) The update method and more new system of system slot information in a kind of SMBIOS
CN119182773A (en) Method, device and storage medium for executing computing tasks on cloud system
CN119597358A (en) Bare metal server configuration method and server
CN116361771B (en) Method and device for accessing and managing equipment, electronic equipment and storage medium
CN106844148B (en) Virtual machine starting progress monitoring method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant