# US 10,956,188 B2 · Transparent interpretation of guest instructions in secure virtual machine environment

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

- Number: US 10,956,188 B2
- Document ID: US10956188B2
- Status: Granted
- Kind: B2
- Application number: 16/296,316
- Filed: 2019-03-08
- Published: 2020-09-10
- Granted: 2021-03-23
- Earliest claimed: 2019-03-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Fadi Y. Busaba; Lisa Cranton Heller; Jonathan D. Bradbury; Christian Borntraeger; Claudio Imbrenda
- Web page: https://patentgrep.com/patent/US10956188B2

## CPC

- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 21/606: {by securing the transmission between two devices or processes}
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- 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)

## Abstract

According to one or more embodiments of the present invention, a computer implemented method includes executing, by a virtual machine that is executing on a host server, a stream of instructions, wherein an instruction from the stream of instructions is to be intercepted to a hypervisor. The method further includes, based on a determination that the virtual machine is a secure virtual machine, preventing the hypervisor from directly accessing any data of the secure virtual machine. The method further includes performing by a secure interface control of the host server, based on a determination that the instruction is not interpretable by the secure interface control itself, extracting one or more parameter data associated with the instruction from the secure virtual machine, and storing the parameter data into a buffer that is accessible by the hypervisor. The instruction is subsequently intercepted into the hypervisor.

## Claims

### Claim 1

A computer implemented method comprising:
executing, by a virtual machine that is executing on a host server, a stream of instructions, wherein an instruction from the stream of instructions is to be intercepted to a hypervisor;
based on a determination that the virtual machine is a secure virtual machine, preventing the hypervisor from directly accessing any data of the secure virtual machine; and
performing by a secure interface control of the host server:
based on a determination that the instruction is not interpretable by the secure interface control itself:
extracting, by the secure interface control, one or more parameter data associated with the instruction from the secure virtual machine;
storing, by the secure interface control, the one or more parameter data into a buffer that is accessible by the hypervisor; and
intercepting, by the secure interface control, the instruction into the hypervisor.

### Claim 2 (depends on 1)

The computer implemented method of claim 1, wherein based on a determination that the instruction is interpretable by the secure interface control itself:
executing the instruction by the secure interface control; and
returning execution control back to the secure virtual machine for continuing execution of the stream of instructions.

### Claim 3 (depends on 1)

The computer implemented method of claim 1, wherein intercepting the instruction further comprises:
setting, by the secure interface control, a first flag that is indicative that the instruction is partially complete; and
setting, by the secure interface control, a second flag that is indicative that the secure virtual machine is in a locked state for execution.

### Claim 4 (depends on 3)

The computer implemented method of claim 3, wherein the secure interface control prevents dispatching the secure virtual machine in the locked state, the locked state indicative that the secure virtual machine is waiting for a response from the hypervisor.

### Claim 5 (depends on 1)

The computer implemented method of claim 1, further comprising:
based on a determination by the secure interface control that the instruction causes a program exception when executed, presenting the exception to the secure virtual machine.

### Claim 6 (depends on 1)

The computer implemented method of claim 1, further comprising:
upon completion of execution of the instruction by the hypervisor, updating, by the secure interface control, a state of the secure virtual machine with a response from the hypervisor, at least a portion of the state being stored in a secure portion of memory that is not accessible by the hypervisor.

### Claim 7 (depends on 6)

The computer implemented method of claim 6, wherein the hypervisor stores the response for the instruction in a dedicated buffer.

### Claim 8 (depends on 6)

The computer implemented method of claim 6, further comprising:
upon completion of the execution, based on a determination that the response generated by the hypervisor is not valid, intercepting, by the secure interface control, an error condition to the hypervisor.

### Claim 9

A system comprising:
a memory;
a secure interface control; and
a processing unit coupled with the memory and the secure interface control, the processing unit configured to execute a hypervisor that hosts a plurality of virtual machines, the hypervisor prohibited from directly accessing any data of a secure virtual machine, and wherein the hypervisor is configured to perform a method to interpret one or more guest instructions from the virtual machines, the method comprising:
executing, by a virtual machine, a stream of instructions, wherein an instruction from the stream of instructions has to be intercepted to a hypervisor;
determining that the virtual machine is a secure virtual machine; and
performing by the secure interface control:
based on a determination that the instruction is not interpretable by the secure interface control itself:
extracting, by the secure interface control, one or more parameter data associated with the instruction from the secure virtual machine;
storing, by the secure interface control, the one or more parameter data into a buffer that is accessible by the hypervisor; and
intercepting, by the secure interface control, the instruction into the hypervisor.

### Claim 10 (depends on 9)

The system of claim 9, wherein based on a determination that the instruction is interpretable by the secure interface control itself:
executing the instruction by the secure interface control; and
returning execution control back to the secure virtual machine for continuing execution of the stream of instructions.

### Claim 11 (depends on 9)

The system of claim 9, wherein intercepting the instruction further comprises:
setting, by the secure interface control, a first flag that is indicative that the instruction is partially complete; and
setting, by the secure interface control, a second flag that is indicative that the secure virtual machine is locked for execution.

### Claim 12 (depends on 9)

The system of claim 9, wherein the method further comprises:
based on a determination by the secure interface control that the instruction causes a program exception when executed, presenting the exception to the secure virtual machine.

### Claim 13 (depends on 9)

The system of claim 9, wherein the method further comprises:
upon completion of execution of the instruction by the hypervisor, updating, by the secure interface control, a state of the secure virtual machine with a response from the hypervisor, at least a portion of the state being stored in a secure portion of memory that is not accessible by the hypervisor.

### Claim 14 (depends on 13)

The system of claim 13, wherein the hypervisor stores the response for the instruction in a dedicated buffer.

### Claim 15 (depends on 13)

The system of claim 13, wherein the method further comprises:
upon completion of the execution, based on a determination that the response generated by the hypervisor is not valid, intercepting, by the secure interface control, an error condition to the hypervisor.

### Claim 16

A computer program product comprising a computer readable storage medium, the computer readable storage medium comprising computer executable instructions, which when executed by a processing unit causes the processing unit to perform a method comprising:
executing, by a virtual machine that is executing on a host server, a stream of instructions, wherein an instruction from the stream of instructions has to be intercepted to a hypervisor;
determining that the virtual machine is a secure virtual machine, the hypervisor prevented from directly accessing any data of the secure virtual machine; and
performing by a secure interface control of the host server:
based on a determination that the instruction is not interpretable by the secure interface control itself:
extracting, by the secure interface control, one or more parameter data associated with the instruction from the secure virtual machine;
storing, by the secure interface control, the one or more parameter data into a buffer that is accessible by the hypervisor; and
intercepting, by the secure interface control, the instruction into the hypervisor.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein based on a determination that the instruction is interpretable by the secure interface control itself:
executing the instruction by the secure interface control; and
returning execution control back to the secure virtual machine for continuing execution of the stream of instructions.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the method further comprises:
upon completion of execution of the instruction by the hypervisor, updating, by the secure interface control, a state of the secure virtual machine with a response from the hypervisor, at least a portion of the state being stored in a secure portion of memory that is not accessible by the hypervisor.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the hypervisor stores the response for the instruction in a dedicated buffer.

### Claim 20 (depends on 18)

The computer program product of claim 18, wherein the method further comprises:
upon completion of the execution, based on a determination that the response generated by the hypervisor is not valid, intercepting, by the secure interface control, an error condition to the hypervisor.

### Claim 21

A computer-implemented method comprising:
executing, by a hypervisor on a host machine, a guest instruction from a secure virtual machine, the hypervisor prohibited from directly accessing any data of the secure virtual machine;
storing, by the hypervisor, a response to the guest instruction in a predetermined buffer; and
updating, by a secure interface control of the host machine, a state descriptor of the secure virtual machine with the response by copying the response into a designated register in the state descriptor, the state descriptor being stored in a secure portion of memory that is not accessible by the hypervisor.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, further comprising:
based on a determination that the response generated by the hypervisor is not valid, intercepting, by the secure interface control, an error condition to the hypervisor.

### Claim 23

A system comprising:
a memory;
a secure interface control; and
a processing unit coupled with the memory and the secure interface control, the processing unit configured to execute a hypervisor that hosts a plurality of virtual machines, the hypervisor prohibited from directly accessing any data of a secure virtual machine, and wherein the hypervisor is configured to perform a method to interpret one or more guest instructions from the virtual machines, the method comprising:
executing, by the hypervisor, a guest instruction from the secure virtual machine, the hypervisor prohibited from directly accessing any data of said secure virtual machine;
storing, by the hypervisor, a response to the guest instruction in a predetermined buffer; and
updating, by the secure interface control, a state descriptor of the secure virtual machine with the response by copying the response into a designated register in the state descriptor, the state descriptor being stored in a secure portion of memory that is not accessible by the hypervisor.

### Claim 24 (depends on 23)

The system of claim 23, wherein the method further comprises:
based on a determination that the response generated by the hypervisor is not valid, intercepting, by the secure interface control, an error condition to the hypervisor.

### Claim 25 (depends on 24)

The system of claim 24, wherein the method further comprises:
resetting, by the secure interface control, a first flag associated with the secure virtual machine, the reset is indicative that the secure virtual machine can be dispatched to continue execution of an instruction stream.
