# US 2017/0255462 A1 · Isa-ported container images

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

- Number: US 2017/0255462 A1
- Document ID: US20170255462A1
- Status: Published application
- Kind: A1
- Application number: 15/060,750
- Filed: 2016-03-04
- Published: 2017-09-07
- Earliest claimed: 2016-03-04
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Alain C. Azagury; Ilsiyar I. Gaynutdinov; Erez Hadad; Sadek Jbara; Igor Khapov; Alexey Miroshkin; Nitzan Peleg; Indrajit Poddar; Michael Rodeh
- Web page: https://patentgrep.com/patent/US20170255462A1

## CPC

- G06F 8/76: Adapting program code to run in a different environment; Porting
- G06F 8/52: Binary to binary
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/30181: {Instruction operation extension or modification}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A software container image that includes components dependent on a first computer instruction set architecture (ISA) is ported to enable a container to execute using the container image on a computer having a second ISA different from the first. Porting the container image entails replacing components of the container image not compatible with the second ISA with equivalent components compatible with the second ISA. The porting is performed, in some instances, dynamically as part of running a container with the container image on a computer implementing the second ISA.

## Claims

### Claim 1

A computer-implemented method for porting a software container image to a target instruction set architecture (ISA), the software container image selected for execution on a first computer, the first computer implementing the target ISA, the method comprising:
forming a ported image, the ported image capable of executing on the first computer, the forming performed in association with at least one of preparing the software container image for execution on the first computer and executing the software container image on the first computer;
selecting a source image, the source image included in the software container image;
selecting a source component, the source component included in the source image;
determining that the source component is not compatible with the target ISA, the determining based, at least in part, on the source component dependent on a first ISA, the first ISA different from the target ISA; and
including in the ported image an at least one first target-ISA equivalent component, the at least one first target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one first target-ISA equivalent component compatible with the target ISA, the at least one first target-ISA equivalent component replacing, in the ported image, the source component.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
determining that the source component has an at least one second target-ISA equivalent component, the at least one second target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one second target-ISA equivalent component compatible with the target ISA; and
including, in the at least one first target-ISA equivalent component, the at least one second target-ISA equivalent component.

### Claim 3 (depends on 1)

The method of claim 1 further comprising:
determining that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
forming an at least one second target-ISA equivalent component, the at least one second target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one second target-ISA equivalent component compatible with the target ISA; and
including, in the at least one first target-ISA equivalent component, the at least one second target-ISA equivalent component.

### Claim 4 (depends on 1)

The method of claim 1 further comprising:
determining that the source component includes a source binary file, the source binary file not compatible with the target ISA;
determining that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
determining that source binary file has at least one target-ISA equivalent binary file, the at least one target-ISA equivalent binary file performing a function equivalent to at least one function of the source binary file, the at least one target-ISA equivalent binary file compatible with the target ISA; and
including, in the at least one first target-ISA equivalent component, the at least one target-ISA equivalent binary file.

### Claim 5 (depends on 1)

The method of claim 1 further comprising:
determining that the source component includes a source binary file, the source binary file not compatible with the target ISA;
determining that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
determining that the source binary file does not have at least one target-ISA equivalent binary file; and
including, in the at least one first target-ISA equivalent component, the source binary file and at least one target-ISA stub program, the at least one target-ISA stub program invoking execution of the source binary file, the at least one target-ISA stub program invoking execution of at least one ISA translator, the execution of the at least one ISA translator translating the source binary file from the first ISA to the target ISA.

### Claim 6 (depends on 5)

The method of claim 5 further comprising including, in the first target-ISA equivalent component, the at least one ISA translator.

### Claim 7 (depends on 1)

The method of claim 1 wherein the at least one first target-ISA equivalent component includes at least one component included in a repository, and wherein the at least one first target-ISA equivalent component includes the component included in the repository replacing the at least one component in the first target-ISA equivalent component.

### Claim 8

A computer program product for porting a software container image to a target instruction set architecture (ISA), the software container image selected for execution on a first computer, the first computer implementing the target ISA, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a first computer to perform a method comprising:
forming, by a second computer, a ported image, the ported image capable of executing on the first computer, the forming performed in association with at least one of preparing the software container image for execution on the first computer and executing the software container image on the first computer;
selecting, by the second computer, a source image, the source image included in the software container image;
selecting, by the second computer, a source component, the source component included in the source image;
determining, by the second computer, that the source component is not compatible with the target ISA, the determining based, at least in part, on the source component dependent on a first ISA, the first ISA different from the target ISA; and
including, by the second computer, in the ported image an at least one first target-ISA equivalent component, the at least one first target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one first target-ISA equivalent component compatible with the target ISA, the at least one first target-ISA equivalent component replacing, in the ported image, the source component.

### Claim 9 (depends on 8)

The computer program product of claim 8, the method further comprising:
determining, by the second computer, that the source component has an at least one second target-ISA equivalent component, the at least one second target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one second target-ISA equivalent component compatible with the target ISA; and
including, by the second computer, in the at least one first target-ISA equivalent component, the at least one second target-ISA equivalent component.

### Claim 10 (depends on 8)

The computer program product of claim 8, the method further comprising:
determining, by the second computer, that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
forming, by the second computer, an at least one second target-ISA equivalent component, the at least one second target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one second target-ISA equivalent component compatible with the target ISA; and
including, by the second computer, in the at least one first target-ISA equivalent component, the at least one second target-ISA equivalent component.

### Claim 11 (depends on 8)

The computer program product of claim 8, the method further comprising:
determining, by the second computer, that the source component includes a source binary file, the source binary file not compatible with the target ISA;
determining, by the second computer, that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
determining, by the second computer, that source binary file has at least one target-ISA equivalent binary file, the at least one target-ISA equivalent binary file performing a function equivalent to at least one function of the source binary file, the at least one target-ISA equivalent binary file compatible with the target ISA; and
including, by the second computer, in the at least one first target-ISA equivalent component, the at least one target-ISA equivalent binary file.

### Claim 12 (depends on 8)

The computer program product of claim 8, the method further comprising:
determining, by the second computer, that the source component includes a source binary file, the source binary file not compatible with the target ISA;
determining, by the second computer, that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
determining, by the second computer, that the source binary file does not have at least one target-ISA equivalent binary file; and
including, by the second computer, in the at least one first target-ISA equivalent component, the source binary file and at least one target-ISA stub program, the at least one target-ISA stub program invoking execution of the source binary file, the at least one target-ISA stub program invoking execution of at least one ISA translator, the execution of the at least one ISA translator translating the source binary file from the first ISA to the target ISA.

### Claim 13 (depends on 12)

The computer program product of claim 12, the method further comprising including, by the second computer, in the first target-ISA equivalent component, the at least one ISA translator.

### Claim 14 (depends on 8)

The computer program product of claim 8, wherein the at least one first target-ISA equivalent component includes at least one component included in a repository, and wherein the at least one first target-ISA equivalent component includes the component included in the repository replacing the at least one component in the first target-ISA equivalent component.

### Claim 15

A system for porting a software container image to a target instruction set architecture (ISA), the software container image selected for execution on a first computer, the first computer implementing the target ISA, the system comprising:
a processor; and
a memory in communication with the processor, wherein the system is configured to perform a method, the method comprising:
forming a ported image, the ported image capable of executing on the first computer, the forming performed in association with at least one of preparing the software container image for execution on the first computer and executing the software container image on the first computer;
selecting a source image, the source image included in the software container image;
selecting a source component, the source component included in the source image;
determining that the source component is not compatible with the target ISA, the determining based, at least in part, on the source component dependent on a first ISA, the first ISA different from the target ISA; and
including in the ported image an at least one first target-ISA equivalent component, the at least one first target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one first target-ISA equivalent component compatible with the target ISA, the at least one first target-ISA equivalent component replacing, in the ported image, the source component.

### Claim 16 (depends on 15)

The system of claim 15, the method further comprising:
determining that the source component has an at least one second target-ISA equivalent component, the at least one second target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one second target-ISA equivalent component compatible with the target ISA; and
including, in the at least one first target-ISA equivalent component, the at least one second target-ISA equivalent component.

### Claim 17 (depends on 15)

The system of claim 15, the method further comprising:
determining that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
forming an at least one second target-ISA equivalent component, the at least one second target-ISA equivalent component performing a function equivalent to at least one function of the source component, the at least one second target-ISA equivalent component compatible with the target ISA; and
including, in the at least one first target-ISA equivalent component, the at least one second target-ISA equivalent component.

### Claim 18 (depends on 15)

The system of claim 15, the method further comprising:
determining that the source component includes a source binary file, the source binary file not compatible with the target ISA;
determining that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
determining that source binary file has at least one target-ISA equivalent binary file, the at least one target-ISA equivalent binary file performing a function equivalent to at least one function of the source binary file, the at least one target-ISA equivalent binary file compatible with the target ISA; and
including, in the at least one first target-ISA equivalent component, the at least one target-ISA equivalent binary file.

### Claim 19 (depends on 15)

The system of claim 15, the method further comprising:
determining that the source component includes a source binary file, the source binary file not compatible with the target ISA;
determining that the source component does not have a second target-ISA equivalent component, the second target-ISA equivalent component compatible with the target ISA;
determining that the source binary file does not have at least one target-ISA equivalent binary file; and
including, in the at least one first target-ISA equivalent component, the source binary file and at least one target-ISA stub program, the at least one target-ISA stub program invoking execution of the source binary file, the at least one target-ISA stub program invoking execution of at least one ISA translator, the execution of the at least one ISA translator translating the source binary file from the first ISA to the target ISA.

### Claim 20 (depends on 15)

The system of claim 15, wherein the at least one first target-ISA equivalent component includes at least one component included in a repository, and wherein the at least one first target-ISA equivalent component includes the component included in the repository replacing the at least one component in the first target-ISA equivalent component.
