# US 2021/0279095 A1 · Interrupt Management for a Hypervisor

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

- Number: US 2021/0279095 A1
- Document ID: US20210279095A1
- Status: Published application
- Kind: A1
- Application number: 17/321,988
- Filed: 2021-05-17
- Published: 2021-09-09
- Earliest claimed: 2017-09-19
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Aditya BHANDARI; Bruce J. SHERWIN, JR.; Xin David ZHANG
- Web page: https://patentgrep.com/patent/US20210279095A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/4812: {by interrupt, e.g. masked}
- G06F 9/505: {considering the load}
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- G06F 2009/45579: {I/O management, e.g. providing access to device drivers or storage}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This disclosure generally relates to enabling a hypervisor of a host machine to provide virtual interrupts to select virtual processors or a set of virtual processors. More specifically, the present disclosure describes how a hypervisor of a host machine may monitor the status of one or more virtual processors that are executing on the host machine and deliver interrupts to the virtual processors based on a number of factors including, but not limited to, a priority of the interrupt, a priority of the virtual processor, a current workload of the virtual processor and so on.

## Claims

### Claim 1

A method, comprising:
monitoring, by a hypervisor of a host machine, a workload of a plurality of virtual processors;
receiving an interrupt;
determining, by the hypervisor and based on the workload of each of the plurality of virtual processors, a first virtual processor that can execute the interrupt, wherein the first virtual processor is determined based on a time frame that the first virtual processor can execute the interrupt; and
providing the interrupt to the first virtual processor but not to the other virtual processors in the plurality of virtual processors.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the plurality of virtual processors is associated with a virtual machine.

### Claim 3 (depends on 2)

The method of claim 2, further comprising assigning an identifier to the virtual machine.

### Claim 4 (depends on 1)

The method of claim 1, further comprising providing the interrupt to hardware associated with the host machine when the first virtual processor is not active.

### Claim 5 (depends on 4)

The method of claim 4, wherein the hardware pends the interrupt to the first virtual processor.

### Claim 6 (depends on 1)

The method of claim 1, wherein the interrupt is associated with a priority.

### Claim 7 (depends on 1)

The method of claim 1, wherein each of the plurality of virtual processors is associated with a priority.

### Claim 8

A method, comprising:
determining a current priority of at least one virtual processor of the plurality of virtual processors;
receiving an interrupt,
determining a priority of the interrupt;
when it is determined that the priority of the interrupt is higher than the priority of the at least one virtual processor, providing the interrupt to the at least one virtual processor;
when it is determined that the priority of the interrupt is not higher than the priority of the at least one virtual processor, determining whether one or more other virtual processors of the plurality of virtual processors has a lower priority; and
delivering the interrupt to one of the one or more other virtual processors of the plurality of virtual processors that has a lower priority.

### Claim 9 (depends on 8)

The method of claim 8, wherein each of the plurality of virtual processors is associated with a logical processor.

### Claim 10 (depends on 8)

The method of claim 8, further comprising determining whether the priority of the interrupt is higher than the priority of the virtual processor.

### Claim 11 (depends on 10)

The method of claim 10, further comprising delivering the interrupt to the one of the one or more other virtual processors of the plurality of virtual processors that has a corresponding priority when it is determined that the priority of interrupt is not higher than the priority of the virtual processor.

### Claim 12 (depends on 11)

The method of claim 11, wherein the one of the one or more other virtual processors has a priority that is lower than the priority of the interrupt.

### Claim 13 (depends on 8)

The method of claim 8, further comprising determining a workload of each virtual processor.

### Claim 14 (depends on 8)

The method of claim 8, further comprising determining whether the virtual processor is executing critical activities.

### Claim 15 (depends on 14)

The method of claim 14, further comprising blocking a delivery of interrupts to the virtual processor when it is determined that the virtual processor is executing critical activities.

### Claim 16

A host machine, comprising:
at least one processor; and
a memory coupled to the at least one processor and storing instructions that, when executed by the at least one processor, perform a method, comprising:
causing a hypervisor to monitor a workload of each virtual processor in a plurality of virtual processors;
receiving an interrupt;
causing the hypervisor to determine which virtual processor of the plurality of virtual processors is to receive the interrupt, wherein the determination is based, at least in part, on the workload of each virtual processor of the plurality of virtual processors, and
providing the interrupt to the determined virtual processor.

### Claim 17

The host machine of 16, further comprising instructions for assigning an identifier to the virtual processor.

### Claim 18 (depends on 16)

The host machine of claim 16, further comprising instructions for providing the interrupt to hardware associated with the host machine when the virtual processor is not active.

### Claim 19 (depends on 16)

The host machine of claim 16, wherein the interrupt is associated with a priority.

### Claim 20 (depends on 16)

The host machine of claim 16, wherein each of the plurality of virtual processors is associated with a priority.
