# US 2022/0027181 A1 · Compiler-driver programmable device virtualization in a computing system

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

- Number: US 2022/0027181 A1
- Document ID: US20220027181A1
- Status: Published application
- Kind: A1
- Application number: 16/934,332
- Filed: 2020-07-21
- Published: 2022-01-27
- Earliest claimed: 2020-07-21
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Eric SCHKUFZA; Christopher J. ROSSBACH
- Web page: https://patentgrep.com/patent/US20220027181A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 8/41: Compilation
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 9/4552: {Involving translation to a different instruction set architecture, e.g. just-in-time translation in a JVM}
- G06F 30/323: Translation or migration, e.g. logic to logic, hardware description language [HDL] translation or netlist translation
- G06F 30/331: with hardware acceleration, e.g. by using field programmable gate array [FPGA] or emulation
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Examples provide a method of virtualizing a hardware accelerator in a virtualized computing system. The virtualized computing system includes a hypervisor supporting execution of a plurality of virtual machines (VMs). The method includes: receiving a plurality of sub-programs at a compiler in the hypervisor from a plurality of compilers in the respective plurality of VMs, each of the sub-programs including a hardware-description language (HDL) description; combining, at the compiler in the hypervisor, the plurality of sub-programs into a monolithic program; generating, by the compiler in the hypervisor, a circuit implementation for the monolithic program, the circuit implementation including a plurality of sub-circuits for the respective plurality of sub-programs; and loading, by the compiler in the hypervisor, the circuit implementation to a programmable device of the hardware accelerator.

## Claims

### Claim 1

A method of virtualizing a hardware accelerator in a virtualized computing system, the virtualized computing system including a hypervisor supporting execution of a plurality of virtual machines (VMs), the method comprising:
receiving a plurality of sub-programs at a compiler in the hypervisor from a plurality of compilers in the respective plurality of VMs, each of the sub-programs including a hardware-description language (HDL) description;
combining, at the compiler in the hypervisor, the plurality of sub-programs into a monolithic program;
generating, by the compiler in the hypervisor, a circuit implementation for the monolithic program, the circuit implementation including a plurality of sub-circuits for the respective plurality of sub-programs; and
loading, by the compiler in the hypervisor, the circuit implementation to a programmable device of the hardware accelerator.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving, at the compiler in the hypervisor, an update to a first sub-program of the plurality of sub-programs from a first compiler of the plurality of compilers;
combining, at the compiler in the hypervisor, the plurality of sub-programs having the update to the first sub-program into an updated monolithic program;
generating, by the compiler in the hypervisor, an updated circuit implementation for the updated monolithic program; and
loading, by the compiler in the hypervisor, the updated circuit implementation to the programmable device.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
receiving, at the compiler in the hypervisor, a completion indication from a first compiler of the plurality of compilers;
combining, at the compiler in the hypervisor, the plurality of sub-programs other than a first sub-program received from the first compiler into an updated monolithic program;
generating, by the compiler in the hypervisor, an updated circuit implementation for updated monolithic program; and
loading, by the compiler in the hypervisor, the updated circuit implementation to the programmable device.

### Claim 4 (depends on 1)

The method of claim 1, wherein the step of generating comprises:
generating, by the compiler in the hypervisor, a control statement from procedural logic in the monolithic program using a first set of transformations;
modifying, by the compiler in the hypervisor, the control statement to be compatible with a selected application binary interface (ABI) using a second set of transformations; and
grouping, by the compiler in the hypervisor, a body of the control statement into states of a state machine using a third set of transformations.

### Claim 5 (depends on 4)

The method of claim 4, wherein the procedural logic includes unsynthesizable HDL code.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving, at the compiler in the hypervisor, application binary interface (ABI) requests from the plurality of compilers; and
scheduling, by the compiler in the hypervisor, the ABI requests to the circuit implementation sequentially.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
receiving, at the compiler in the hypervisor, a compilation request from a first compiler of the plurality of compilers;
requesting, by the compiler in the hypervisor to the plurality of compilers, an interrupt;
receiving, at the compiler from the plurality of compilers in response to the interrupt, requests for states of the plurality of sub-circuits in the circuit implementation;
modifying, by the compiler in the hypervisor, the monolithic program based on the compilation request and loading an updated circuit implementation to the programmable device; and
receiving, at the compiler from the plurality of compilers, requests to restore states of the plurality of sub-circuits in the updated circuit implementation.

### Claim 8

A non-transitory computer readable medium having instructions stored thereon that when executed by a processor cause the processor to perform a method of virtualizing a hardware accelerator in a virtualized computing system, the virtualized computing system including a hypervisor supporting execution of a plurality of virtual machines (VMs), the method comprising:
receiving a plurality of sub-programs at a compiler in the hypervisor from a plurality of compilers in the respective plurality of VMs, each of the sub-programs including a hardware-description language (HDL) description;
combining, at the compiler in the hypervisor, the plurality of sub-programs into a monolithic program;
generating, by the compiler in the hypervisor, a circuit implementation for the monolithic program, the circuit implementation including a plurality of sub-circuits for the respective plurality of sub-programs; and
loading, by the compiler in the hypervisor, the circuit implementation to a programmable device of the hardware accelerator.

### Claim 9 (depends on 8)

The non-transitory computer readable medium of claim 8, further comprising:
receiving, at the compiler in the hypervisor, an update to a first sub-program of the plurality of sub-programs from a first compiler of the plurality of compilers;
combining, at the compiler in the hypervisor, the plurality of sub-programs having the update to the first sub-program into an updated monolithic program;
generating, by the compiler in the hypervisor, an updated circuit implementation for the updated monolithic program; and
loading, by the compiler in the hypervisor, the updated circuit implementation to the programmable device.

### Claim 10 (depends on 8)

The non-transitory computer readable medium of claim 8, further comprising:
receiving, at the compiler in the hypervisor, a completion indication from a first compiler of the plurality of compilers;
combining, at the compiler in the hypervisor, the plurality of sub-programs other than a first sub-program received from the first compiler into an updated monolithic program;
generating, by the compiler in the hypervisor, an updated circuit implementation for updated monolithic program; and
loading, by the compiler in the hypervisor, the updated circuit implementation to the programmable device.

### Claim 11 (depends on 8)

The non-transitory computer readable medium of claim 8, wherein the step of generating comprises:
generating, by the compiler in the hypervisor, a control statement from procedural logic in the monolithic program using a first set of transformations;
modifying, by the compiler in the hypervisor, the control statement to be compatible with a selected application binary interface (ABI) using a second set of transformations; and
grouping, by the compiler in the hypervisor, a body of the control statement into states of a state machine using a third set of transformations.

### Claim 12 (depends on 11)

The non-transitory computer readable medium of claim 11, wherein the procedural logic includes unsynthesizable HDL code.

### Claim 13 (depends on 8)

The non-transitory computer readable medium of claim 8, further comprising:
receiving, at the compiler in the hypervisor, application binary interface (ABI) requests from the plurality of compilers; and
scheduling, by the compiler in the hypervisor, the ABI requests to the circuit implementation sequentially.

### Claim 14 (depends on 8)

The non-transitory computer readable medium of claim 8, further comprising:
receiving, at the compiler in the hypervisor, a compilation request from a first compiler of the plurality of compilers;
requesting, by the compiler in the hypervisor to the plurality of compilers, an interrupt;
receiving, at the compiler from the plurality of compilers in response to the interrupt, requests for states of the plurality of sub-circuits in the circuit implementation;
modifying, by the compiler in the hypervisor, the monolithic program based on the compilation request and loading an updated circuit implementation to the programmable device; and
receiving, at the compiler from the plurality of compilers, requests to restore states of the plurality of sub-circuits in the updated circuit implementation.

### Claim 15

A virtualized computing system, comprising:
a hardware platform including a processor, a memory, and a hardware accelerator having a programmable device; and
a software platform having instructions stored in the memory and executing on the processor of the hardware platform, the software platform including a hypervisor supporting execution of a plurality of virtual machines (VMs), the software platform configured to:
receive a plurality of sub-programs at a compiler in the hypervisor from a plurality of compilers in the respective plurality of VMs, each of the sub-programs including a hardware-description language (HDL) description;
combine, at the compiler in the hypervisor, the plurality of sub-programs into a monolithic program;
generate, by the compiler in the hypervisor, a circuit implementation for the monolithic program, the circuit implementation including a plurality of sub-circuits for the respective plurality of sub-programs; and
load, by the compiler in the hypervisor, the circuit implementation to a programmable device of the hardware accelerator.

### Claim 16 (depends on 15)

The virtualized computing system of claim 15, wherein the software platform is configured to:
receive, at the compiler in the hypervisor, an update to a first sub-program of the plurality of sub-programs from a first compiler of the plurality of compilers;
combine, at the compiler in the hypervisor, the plurality of sub-programs having the update to the first sub-program into an updated monolithic program;
generate, by the compiler in the hypervisor, an updated circuit implementation for the updated monolithic program; and
load, by the compiler in the hypervisor, the updated circuit implementation to the programmable device.

### Claim 17 (depends on 15)

The virtualized computing system of claim 15, wherein the software platform is configured to:
receive, at the compiler in the hypervisor, a completion indication from a first compiler of the plurality of compilers;
combine, at the compiler in the hypervisor, the plurality of sub-programs other than a first sub-program received from the first compiler into an updated monolithic program;
generate, by the compiler in the hypervisor, an updated circuit implementation for updated monolithic program; and
load, by the compiler in the hypervisor, the updated circuit implementation to the programmable device.

### Claim 18 (depends on 15)

The virtualized computing system of claim 15, wherein the software platform is configured to generate the monolithic program by:
generating, by the compiler in the hypervisor, a control statement from procedural logic in the monolithic program using a first set of transformations;
modifying, by the compiler in the hypervisor, the control statement to be compatible with a selected application binary interface (ABI) using a second set of transformations; and
grouping, by the compiler in the hypervisor, a body of the control statement into states of a state machine using a third set of transformations.

### Claim 19 (depends on 15)

The virtualized computing system of claim 15, wherein the software platform is configured to:
receive, at the compiler in the hypervisor, application binary interface (ABI) requests from the plurality of compilers; and
schedule, by the compiler in the hypervisor, the ABI requests to the circuit implementation sequentially.

### Claim 20 (depends on 15)

The virtualized computing system of claim 15, wherein the software platform is configured to:
receive, at the compiler in the hypervisor, a compilation request from a first compiler of the plurality of compilers;
request, by the compiler in the hypervisor to the plurality of compilers, an interrupt;
receive, at the compiler from the plurality of compilers in response to the interrupt, requests for states of the plurality of sub-circuits in the circuit implementation;
modify, by the compiler in the hypervisor, the monolithic program based on the compilation request and loading an updated circuit implementation to the programmable device; and
receive, at the compiler from the plurality of compilers, requests to restore states of the plurality of sub-circuits in the updated circuit implementation.
