# US 2020/0394049 A1 · Support for third-party kernel modules on host operating systems

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

- Number: US 2020/0394049 A1
- Document ID: US20200394049A1
- Status: Published application
- Kind: A1
- Application number: 16/443,540
- Filed: 2019-06-17
- Published: 2020-12-17
- Earliest claimed: 2019-06-17
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Jeremy John Eder; Marko Zvonko Kaiser
- Web page: https://patentgrep.com/patent/US20200394049A1

## CPC

- G06F 9/4411: {Configuring for operating with peripheral devices; Loading of device drivers}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/545: {where tasks reside in different layers, e.g. user- and kernel-space}
- G06F 16/11: File system administration, e.g. details of archiving or snapshots (error detection or correction of the data by redundancy in operations G06F11/14)
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An example method of running an application workload includes detecting a request from a client for a hardware element for executing a workload of an application, the hardware element using a kernel driver to communicate with a host operating system and being abstracted by a node running on the host operating system. The method also includes creating a container on the node. The method further includes allocating the hardware element for the workload to execute in the container. The method also includes loading, by the container, the kernel driver into the host operating system. The method further includes running, by the container, the workload inside the container using the hardware element.

## Claims

### Claim 1

A method of running an application workload, comprising:
detecting a request from a client for a hardware element for executing a workload of an application, the hardware element using a kernel driver to communicate with a host operating system and being abstracted by a node running on the host operating system;
creating a container on the node;
allocating the hardware element for the workload to execute in the container;
loading, by the container, the kernel driver into the host operating system; and
running, by the container, the workload inside the container using the hardware element.

### Claim 2 (depends on 1)

The method of claim 1, wherein the hardware element is a graphics processing unit (GPU).

### Claim 3 (depends on 1)

The method of claim 1, wherein the hardware element is a network interface card (NIC).

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining whether the kernel driver has been loaded into the host operating system, wherein running the workload includes in response to a determination that the kernel driver has been loaded into the host operating system, running the workload.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
in response to a determination that the kernel driver has not been loaded into the host operating system, determining whether a repository local to the host operating system has an image of the kernel driver for a version of the host operating system.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
in response to a determination that the repository has the image of the kernel driver for the version of the host operating system, retrieving from the repository the image of the kernel driver, wherein loading the kernel driver includes loading the retrieved image into the host operating system.

### Claim 7 (depends on 5)

The method of claim 5, wherein the hardware element is associated with a configuration map that specifies a name of the hardware element.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
in response to a determination that the repository does not have the image of the kernel driver for the version of the host operating system:
fetching, based on a reference included in the configuration map, source code of the kernel driver;
generating, based on a build of the source code of the kernel driver, an executable version of the kernel driver; and
pushing the executable version of the kernel driver into the repository.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
in response to a determination that the repository does not have the image of the kernel driver for the version of the host operating system:
fetching, based on a reference included in the configuration map, binary code of the kernel driver; and
pushing the binary code of the kernel driver into the repository.

### Claim 10

A system for running an application workload, comprising:
a kernel driver support system that detects a request from a client for a hardware element for executing a workload of an application, wherein the hardware element uses a kernel driver to communicate with a host operating system and is abstracted by a node running on the host operating system;
an orchestrator that creates a main container on the node and allocates the hardware element on which the workload executes;
a privileged container that loads the kernel driver into the host operating system, wherein the privileged container runs inside the main container; and
a workload container that runs the workload inside the workload container using the hardware element, wherein the workload container runs inside the main container.

### Claim 11 (depends on 10)

The system of claim 10, wherein the host operating system is a containerized operating system.

### Claim 12 (depends on 10)

The system of claim 10, wherein the host operating system is a non-containerized operating system.

### Claim 13 (depends on 10)

The system of claim 10, wherein the privileged container determines whether the kernel driver has been loaded into the host operating system, and wherein the workload container runs the workload in response to a determination that the kernel driver has been loaded into the host operating system.

### Claim 14 (depends on 13)

The system of claim 13, wherein the privileged container determines whether a repository local to the system stores an image of the kernel driver that is compatible with a version of the host operating system in response to a determination that the kernel driver has not been loaded into the host operating system.

### Claim 15 (depends on 14)

The system of claim 14, wherein in response to a determination that the repository stores the image of the kernel driver that is compatible with the version of the host operating system, the privileged container retrieves the image of the kernel driver from the repository.

### Claim 16 (depends on 14)

The system of claim 14, wherein the hardware element is associated with a configuration map that specifies a name of the hardware element.

### Claim 17 (depends on 16)

The system of claim 16, wherein in response to a determination that the repository does not store the image of the kernel driver, the privileged container fetches, based on a reference included in the configuration map, binary code of the kernel driver and pushes the binary code of the kernel driver into the repository.

### Claim 18 (depends on 16)

The system of claim 16, wherein in response to a determination that the repository does not store the image of the kernel driver, the privileged container fetches, based on a reference included in the configuration map, source code of the kernel driver and builds the image of the kernel driver based on the source code.

### Claim 19 (depends on 18)

The system of claim 18, wherein the privileged container pushes the image of the kernel driver into the repository.

### Claim 20

A machine-readable medium comprising a plurality of machine-readable instructions that when executed by one or more processors is adapted to cause the one or more processors to perform a method comprising:
detecting a request from a client for a hardware element for executing a workload of an application, the hardware element using a kernel driver to communicate with a host operating system and being abstracted by a node running on the host operating system;
creating a container on the node;
allocating the hardware element for the workload to execute in the container;
loading, by the container, the kernel driver into the host operating system; and
running, by the container, the workload inside the container using the hardware element.
