# US 2021/0240644 A1 · Paravirtualized cluster mode for legacy apics

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

- Number: US 2021/0240644 A1
- Document ID: US20210240644A1
- Status: Published application
- Kind: A1
- Application number: 16/777,366
- Filed: 2020-01-30
- Published: 2021-08-05
- Earliest claimed: 2020-01-30
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Bandan Das
- Web page: https://patentgrep.com/patent/US20210240644A1

## CPC

- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F 9/4555: {Para-virtualisation, i.e. guest operating system has to be modified}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- 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

According to one example, a method includes, with a hypervisor, advertising a paravirtualized cluster mode for a guest using a legacy Advanced Programmable Interrupt Controller (APIC), the paravirtualized cluster mode allowing for interrupts using logical destination mode on a virtual machine having a plurality of virtual cores that is greater than eight. The method further includes, associating each of the plurality of virtual cores with an N-bit identifier formatted to be one of 2N different values. The method further includes, with the hypervisor, in response to receiving an interrupt for the virtual machine, determining to which of the plurality of virtual cores the interrupt should be sent based on at least a subset of bits in a destination address of the interrupt.

## Claims

### Claim 1

A method comprising:
with a hypervisor, advertising a paravirtualized cluster mode for a guest using a legacy Advanced Programmable Interrupt Controller (APIC), the paravirtualized cluster mode allowing for interrupts using logical destination mode on a virtual machine having a plurality of virtual cores that is greater than eight;
associating each of the plurality of virtual cores with an N-bit identifier formatted to be one of 2N different values; and
with the hypervisor, in response to receiving an interrupt for the virtual machine, determining to which of the plurality of virtual cores the interrupt should be sent based on at least a subset of bits in a destination address of the interrupt.

### Claim 2 (depends on 1)

The method of claim 1, wherein the hypervisor advertises the paravirtualized cluster mode via a Central Processing Unit Identifier (CPUID) bit.

### Claim 3 (depends on 2)

The method of claim 2, further comprising, with the guest, checking for support of the paravirtualized cluster mode by using a CPUID instruction.

### Claim 4 (depends on 1)

The method of claim 1, further comprising, with the guest, enabling the paravirtualized cluster mode by writing zeros to bits 28-31 of a destination format register.

### Claim 5 (depends on 1)

The method of claim 1, where N equals eight.

### Claim 6 (depends on 1)

The method of claim 1, wherein the N-bit identifier is represented by bits 24-31 of a logical destination register.

### Claim 7 (depends on 1)

The method of claim 1, wherein the destination address is a 32-bit address and the subset of bits is eight bits.

### Claim 8 (depends on 7)

The method of claim 7, wherein the destination address specifies up to four different possible destinations for the interrupt.

### Claim 9 (depends on 7)

The method of claim 7, wherein to send the interrupt to more than four different possible destinations, the guest sets two logical destination registers associated with two different virtual cores of the plurality of virtual cores to have a same value.

### Claim 10

A method comprising:
with a guest using a legacy Advanced Programmable Interrupt Controller (APIC), determining that a hypervisor supports a paravirtualized cluster mode, the paravirtualized cluster mode allowing for interrupts using logical destination mode on a virtual machine having a plurality of virtual cores that is greater than eight;
with the guest, enabling the paravirtualized cluster mode;
associating each of the plurality of virtual cores with an N-bit identifier formatted to be one of 2N different values; and
with the guest, setting N bits in a logical destination register to indicate the N-bit identifier associated with a virtual core of the plurality of virtual cores.

### Claim 11 (depends on 10)

The method of claim 10, wherein enabling the paravirtualized cluster mode comprises writing zeros to bits 28-31 of a destination format register.

### Claim 12 (depends on 10)

The method of claim 10, wherein determining whether the hypervisor supports the paravirtualized cluster mode comprises the guest checking a Central Processing Unit Identifier (CPUID) instruction.

### Claim 13 (depends on 10)

The method of claim 10, where N equals eight.

### Claim 14 (depends on 10)

The method of claim 10, wherein the N-bit identifier is represented by bits 24-31 of the logical destination register.

### Claim 15 (depends on 10)

The method of claim 10, further comprising, with the guest, processing an interrupt with a destination address, wherein the destination address is a 32-bit address.

### Claim 16 (depends on 15)

The method of claim 15, wherein the destination address specifies up to four different possible destinations for the interrupt.

### Claim 17 (depends on 15)

The method of claim 15, wherein to send the interrupt to more than four different possible destinations, the guest sets N bits in two logical destination registers associated with two different virtual cores of the plurality of virtual cores to have a same N-bit identifier.

### Claim 18

A computing system comprising:
a processor; and
a memory comprising machine readable instructions that when executed by the processor, cause the system to:
advertise a paravirtualized cluster mode for a guest using a legacy Advanced Programmable Interrupt Controller (APIC), the paravirtualized cluster mode allowing for interrupts using logical destination mode on a virtual machine having a plurality of virtual cores that is greater than eight;
associate each of the plurality of virtual cores with an N-bit identifier formatted to be one of 2N different values; and
in response to receiving an interrupt for the virtual machine, determine to which of the plurality of virtual cores the interrupt should be sent based on at least a subset of bits in a destination address of the interrupt.

### Claim 19 (depends on 18)

The system of claim 18, wherein a hypervisor advertises the paravirtualized cluster mode via a Central Processing Unit Identifier (CPUID) bit.

### Claim 20 (depends on 18)

The system of claim 18, wherein the destination address is a 32-bit address and the subset of bits is eight bits.
