# US 11,119,814 B2 · Dynamic assignment of interrupts based on input/output metrics

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,814 B2
- Document ID: US11119814B2
- Status: Granted
- Kind: B2
- Application number: 16/382,182
- Filed: 2019-04-11
- Published: 2020-10-15
- Granted: 2021-09-14
- Earliest claimed: 2019-04-11
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jesse Arroyo; Prathima Kommineni; Timothy J. Schimke; Shyama Venugopal
- Web page: https://patentgrep.com/patent/US11119814B2

## CPC

- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F 2213/0026: PCI express
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method dynamically assign interrupts to a virtual machine from an input/output (I/O) adapter based on I/O metrics of the I/O adapter. An interrupt manager monitors I/O adapter traffic flow metrics such as latency of data transfers, usage levels, and transfers per unit of time. The interrupt manager determines when a traffic flow metric for a virtual machine meets a predetermined performance threshold and updates virtual interrupt assignments in a logical interrupt table to improve performance of the system.

## Claims

### Claim 1

An apparatus comprising:
at least one processor;
a memory coupled to the at least one processor;
a hypervisor residing in the memory and executed by the at least one processor, where the hypervisor uses a logical interrupt table that contains logical interrupt source numbers directly mapped with physical interrupt source numbers; and
an interrupt manager in the hypervisor that dynamically assigns or reassigns interrupts to a virtual machine from an input/output adapter based on input/output traffic metrics of the input/output adapter by making updates to the logical interrupt table, wherein the interrupt manager monitors the input/output adapter traffic metrics of a traffic path from the input/output adapter to the virtual machine and determines when a monitored input/output traffic metric meets a predetermined performance threshold, wherein the interrupt manager dynamically updates virtual interrupt assignments for the virtual machine based on the monitored input/output traffic metric meeting the predetermined performance threshold.

### Claim 2 (depends on 1)

The apparatus of claim 1 wherein the interrupt manager dynamically updates the virtual interrupt assignments in the logical interrupt table.

### Claim 3 (depends on 1)

The apparatus of claim 1 wherein interrupt manager stops traffic while updating the virtual interrupt assignments by generating an error state on a data bus.

### Claim 4 (depends on 3)

The apparatus of claim 3 wherein the data bus is a peripheral component interconnect express (PCIe) bus.

### Claim 5 (depends on 1)

The apparatus of claim 1 wherein the input/output traffic metrics comprise latency of data transfers, usage levels of an adapter input/output (I/O) path, and transfers per unit of time.

### Claim 6 (depends on 1)

The apparatus of claim 1 wherein the input/output adapter is a single-root I/O virtualization adapter.

### Claim 7

A computer-implemented method executed by at least one processor of assigning interrupts, the method comprising:
monitoring traffic metrics of a traffic path from an input/output adapter to a virtual machine;
determining when a monitored traffic metric meets a predetermined performance threshold; and
based on the monitored traffic metric meeting the predetermined performance threshold, dynamically updating virtual interrupt assignments to the virtual machine from the input/output adapter by making updates to a logical interrupt table in a hypervisor where the logical interrupt table contains logical interrupt source numbers directly mapped with physical interrupt source numbers,
wherein the interrupt manager stops traffic while updating the virtual interrupt assignments by generating an error state on a data bus.

### Claim 8 (depends on 7)

The method of claim 7 wherein the traffic metrics comprise latency of data transfers, usage levels of an adapter input/output (I/O) path, and transfers per unit of time.

### Claim 9 (depends on 7)

The method of claim 7 wherein the data bus is a peripheral component interconnect express (PCIe) bus.

### Claim 10 (depends on 9)

The method of claim 9 wherein the input/output adapter is a single-root I/O virtualization adapter.

### Claim 11 (depends on 7)

The method of claim 7 wherein the steps are performed by a hypervisor.

### Claim 12

A computer-implemented method executed by at least one processor of assigning interrupts, the method comprising:
instantiating a plurality of logical partitions;
deploying an I/O adapter to one of the plurality of logical partitions;
creating a mapping of virtual interrupt assignments that maps logical interrupt source numbers to physical interrupt source numbers;
monitoring traffic metrics of a traffic path from an input/output adapter to a virtual machine, wherein the traffic metrics comprise latency of data transfers, usage levels of an adapter input/output (I/O) path, and transfers per unit of time;
determining when a monitored traffic metric meets a predetermined performance threshold;
based on the monitored traffic metric meeting the predetermined performance threshold, dynamically updating virtual interrupt assignments to the virtual machine from the input/output adapter by making updates to a logical interrupt table in a hypervisor wherein the logical interrupt table contains logical interrupt source numbers directly mapped with physical interrupt source numbers; and
stopping traffic while updating the virtual interrupt assignments by generating an error state on a data bus.

### Claim 13 (depends on 12)

The method of claim 12 wherein the data bus is a peripheral component interconnect express (PCIe) bus and the input/output adapter is a single-root I/O virtualization adapter.
