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

US2016306647A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2016306647-A1
Application numberUS-201615187458-A
CountryUS
Kind codeA1
Filing dateJun 20, 2016
Priority dateDec 20, 2013
Publication dateOct 20, 2016
Grant date

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).

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; performing by the computer device, one-to-one correspondence affinity binding between multiple virtual central processing units (VCPUs) and multiple physical central processing units (PCPUs); and performing, by the computer device, affinity binding between a virtual interrupt of the virtual network interface card and a VCPU, and performing, by the computer device, affinity binding between a physical interrupt of the virtual network interface card and a corresponding PCPU according to the affinity policy parameter. 2 . The method according to claim 1 , wherein performing the affinity binding between the virtual interrupt of the virtual network interface card and the VCPU, and performing the affinity binding between the physical interrupt of the virtual network interface card and the corresponding PCPU according to the affinity policy parameter further comprises: when the virtual interrupt of the virtual network interface card is in affinity binding with a first VCPU of the multiple VCPUs, performing binding between the physical interrupt of the virtual network interface card and a first PCPU of the multiple PCPUs according to the policy parameter, wherein the first VCPU is a VCPU in affinity binding with the first PCPU. 3 . The method according to claim 2 , wherein the method further comprises: when the virtual interrupt of the virtual network interface card changes to be in affinity binding with a second VCPU, performing binding between the physical interrupt of the virtual network interface card and a second PCPU, wherein the second VCPU is a VCPU in affinity binding with the second PCPU. 4 . The method according to claim 2 , wherein performing the binding between the physical interrupt of the virtual network interface card and the first PCPU of the multiple PCPUs further comprises: finding a corresponding physical interrupt number according to a virtual interrupt number of the virtual network interface card, so as to determine a corresponding physical interrupt; determining a corresponding first PCPU according to a one-to-one correspondence affinity binding relationship between the VCPUs and the PCPUs; and performing binding between the physical interrupt of the virtual network interface card and the corresponding first PCPU. 5 . The method according to claim 3 , wherein performing the binding between the physical interrupt of the virtual network interface card and the second PCPU further comprises: finding a corresponding physical interrupt number according to a virtual interrupt number of the virtual network interface card, so as to determine a corresponding physical interrupt; determining a corresponding second PCPU according to a one-to-one correspondence affinity binding relationship between the VCPUs and the PCPUs; and performing binding between the physical interrupt of the virtual network interface card and the corresponding second PCPU. 6 . The method according to claim 1 , wherein performing the affinity binding between the physical interrupt of the virtual network interface card and the corresponding PCPU according to the affinity policy parameter further comprises: performing affinity binding between the physical interrupt of the virtual network interface card and an idle PCPU according to the policy parameter. 7 . The method according to claim 6 , wherein when a state of the idle PCPU changes to non-idle, affinity binding between the physical interrupt of the virtual network interface card and another idle PCPU is performed. 8 . The method according to claim 1 , wherein performing the affinity binding between the physical interrupt of the virtual network interface card and the corresponding PCPU according to the policy parameter further comprises: performing, according to the policy parameter, affinity binding between the physical interrupt of the virtual network interface card and a reserved PCPU that is used to process the physical interrupt of the virtual network interface card. 9 . A computer device, comprising: a non-transitory memory storage comprising processor-executable instructions; and one or more processor 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; performing one-to-one correspondence affinity binding between multiple virtual central processing units VCPUs and multiple physical central processing units PCPUs; and 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. 10 . The computer device according to claim 9 , wherein the one or more processors are further configured to execute the processor-executable instructions to facilitate: capturing an operation of performing affinity binding between the virtual interrupt of the virtual network interface card and the VCPU or changing affinity binding; and performing affinity binding between the physical interrupt of the virtual network interface card and the corresponding PCPU; wherein affinity binding is performed between the physical interrupt of the virtual network interface card and the corresponding PCPU according to a notification, wherein the corresponding PCPU is a PCPU in one-to-one correspondence affinity binding with the VCPU. 11 . The computer device according to claim 9 , wherein the one or more processors are further configured to execute the processor-executable instructions to facilitate: performing affinity binding between the physical interrupt of the virtual network interface card and an idle PCPU. 12 . The computer device according to claim 9 , wherein the one or more processors are further configured to execute the processor-executable instructions to facilitate: performing affinity binding between the physical interrupt of the virtual network interface card and a reserved PCPU that is used to process the physical interrupt of the virtual network interface card.

Assignees

Inventors

Classifications

  • 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

  • by interrupt, e.g. masked · CPC title

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

  • Hypervisor-specific management and integration aspects · 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 US2016306647A1 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 Thu Oct 20 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). 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).