Method for affinity binding of interrupt of virtual network interface card, and computer device

US10768960B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10768960-B2
Application numberUS-201615187458-A
CountryUS
Kind codeB2
Filing dateJun 20, 2016
Priority dateDec 20, 2013
Publication dateSep 8, 2020
Grant dateSep 8, 2020

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present invention discloses a method for affinity binding of interrupt of a virtual network interface card, and a computer device. The method includes: receiving a request message sent by an IaaS resource management system, where the request message carries an interrupt affinity policy parameter of a virtual network interface card; performing one-to-one correspondence affinity binding between multiple virtual central processing units VCPUs and multiple physical central processing units PCPUs; performing affinity binding between a virtual interrupt of the virtual network interface card and a VCPU; and performing affinity binding between a physical interrupt of the virtual network interface card and a corresponding PCPU according to the affinity policy parameter.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for affinity binding of an interrupt of a virtual network interface card, wherein the method comprises: receiving, by a computer device, a request message from an Infrastructure as a Service (IaaS) resource management system, wherein the request message carries an interrupt affinity policy parameter of the virtual network interface card; enabling a capturing module included in a host operating system executed by the computer device based on the interrupt affinity policy parameter, wherein the capturing module is configured to, when enabled, capture an operation executed by a guest operating system of a virtual machine for performing an affinity binding of a virtual interrupt of the virtual network interface card and a first virtual central processing unit (CPU); performing, by the computer device and in response to the capturing module being enabled, affinity binding between a physical interrupt of the virtual network interface card and a first physical CPU, wherein the first virtual CPU is in affinity binding with the first physical CPU; processing interrupts of the virtual network interface card; and performing affinity binding between the physical interrupt of the virtual network interface card and a second physical CPU in response to the capturing module detecting the virtual interrupt of the virtual network interface card changing to be in affinity binding with a second virtual CPU, wherein the second virtual CPU is in affinity binding with the second physical CPU. 2. The method according to claim 1 , wherein performing the affinity binding between the physical interrupt of the virtual network interface card and the first physical CPU further comprises: finding a corresponding physical interrupt number according to a virtual interrupt number of the virtual network interface card; and determining the first physical CPU according to the affinity binding between the first virtual CPU and the first physical CPU. 3. The method according to claim 1 , wherein performing the affinity binding between the physical interrupt of the virtual network interface card and the second physical CPU further comprises: finding a corresponding physical interrupt number according to a virtual interrupt number of the virtual network interface card; and determining the second physical CPU according to the affinity binding between the second virtual CPU and the second physical CPU. 4. A computer device comprising: a non-transitory memory comprising processor-executable instructions; and one or more processors in communication with the memory, wherein the one or more processors are configured to execute the processor-executable instructions to facilitate: receiving a request message from an Infrastructure as a Service (IaaS) resource management system, wherein the request message carries an interrupt affinity policy parameter of a virtual network interface card; enabling a capturing module included in a host operating system based on the interrupt affinity policy parameter, wherein the capturing module is configured to, when enabled, capture an operation executed by a guest operating system of a virtual machine for performing an affinity binding of a virtual interrupt of the virtual network interface card and a first virtual central processing unit (CPU); performing affinity binding between a physical interrupt of the virtual network interface card and a first physical CPU in response to the capturing module being enabled, wherein the first virtual CPU is in affinity binding with the first physical CPU; processing interrupts of the virtual network interface card; and performing affinity binding between the physical interrupt of the virtual network interface card and a second physical CPU in response to the capturing module detecting the virtual interrupt of the virtual network interface card changing to be in affinity binding with a second virtual CPU, wherein the second virtual CPU is in affinity binding with the second physical CPU. 5. The computer device according to claim 4 , wherein the one or more processors are further configured to execute the processor-executable instructions to facilitate: capturing, when the capturing module is enabled, an operation of performing affinity binding between the virtual interrupt of the virtual network interface card and one of multiple virtual CPUs. 6. A non-transitory memory storage comprising processor-executable instructions, that when executed by a processor, cause the processor to facilitate: receiving a request message from an Infrastructure as a Service (IaaS) resource management system, wherein the request message carries an interrupt affinity policy parameter of a virtual network interface card; enabling a capturing module included in a host operating system based on the interrupt affinity policy parameter, wherein the capturing module is configured to, when enabled, capture an operation executed by a quest operating system of a virtual machine for performing an affinity binding of a virtual interrupt of the virtual network interface card and a first virtual central processing unit (CPU); performing affinity binding between a physical interrupt of the virtual network interface card and a first physical CPU in response to the capturing module being enabled, wherein the first virtual CPU is in affinity binding with the first physical CPU; processing interrupts of the virtual network interface card; and performing affinity binding between the physical interrupt of the virtual network interface card and a second physical CPU in response to the capturing module detecting the virtual interrupt of the virtual network interface card changing to be in affinity binding with a second virtual CPU, wherein the second virtual CPU is in affinity binding with the second physical CPU. 7. The non-transitory memory according to claim 6 , wherein the processor-executable instructions further include instructions for a processor to facilitate: capturing, when the capturing module is enabled, an operation of performing affinity binding between the virtual interrupt of the virtual network interface card and one of multiple virtual CPUs.

Assignees

Inventors

Classifications

  • Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272) · CPC title

  • I/O management, e.g. providing access to device drivers or storage · CPC title

  • Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455) · CPC title

  • Network integration; Enabling network access in virtual machine instances · CPC title

  • Provision of facilities of other operating environments, e.g. WINE (I/O emulation G06F13/105) · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10768960B2 cover?
The present invention discloses a method for affinity binding of interrupt of a virtual network interface card, and a computer device. The method includes: receiving a request message sent by an IaaS resource management system, where the request message carries an interrupt affinity policy parameter of a virtual network interface card; performing one-to-one correspondence affinity binding betwe…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F9/45558. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Sep 08 2020 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).