# US 8,578,080 B2 · Secure handling of interrupted events utilizing a virtual interrupt definition table

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

- Number: US 8,578,080 B2
- Document ID: US8578080B2
- Status: Granted
- Kind: B2
- Application number: 13/175,544
- Filed: 2011-07-01
- Published: 2013-01-03
- Granted: 2013-11-05
- Earliest claimed: 2011-07-01
- Assignees: Intel Corporation
- Applicants: Ravi L. Sahita; Xiaoning Li; Manohar R. Castelino
- Inventors: Ravi L. Sahita; Xiaoning Li; Manohar R. Castelino
- Web page: https://patentgrep.com/patent/US8578080B2

## CPC

- G06F 13/24: using interrupt (G06F13/32 takes precedence)
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- 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

Various embodiments of this disclosure may describe method, apparatus and system for reducing system latency caused by switching memory page permission views between programs while still protecting critical regions of the memory from attacks of malwares. Other embodiments may be disclosed and claimed.

## Claims

### Claim 1

A method, comprising:
receiving, by a processor of a computing device, a notification of an asynchronous event during execution of a process, wherein the asynchronous event is associated with an interrupt handler secured in a protected memory page of a memory of the computing device, and the process lacks permission to access the memory page to trigger execution of the interrupt handler; and
executing, by the processor, a virtual interrupt description table (VIDT) exit stub in response to the notification of the asynchronous event, wherein the VIDT exit stub is configured to cause the processor to perform operations including:
switching from a first permission view associated with the process to a second permission view associated with the interrupt handler to allow the process to trigger execution of the interrupt handler; and
triggering execution of the interrupt handler.

### Claim 2 (depends on 1)

The method of claim 1, wherein the operations further include saving the first permission view in a view exclusive page (VEP) associated with the memory.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
initializing the VIDT by a system root agent and a virtual machine monitor (VMM) of the computing device.

### Claim 4 (depends on 1)

The method of claim 1, wherein the operations further include determining, by the processor, whether the process is a protected process.

### Claim 5 (depends on 2)

The method of claim 2, wherein the operations further include saving a return instruction pointer of the process in the VEP along with an identification of the process.

### Claim 6 (depends on 3)

The method of claim 3, wherein the processor includes a plurality of processor cores, and wherein said initializing comprising initializing, by one of the processor cores, a interrupt redirection table for respective ones of the plurality of cores.

### Claim 7 (depends on 5)

The method of claim 5, wherein the operations further include replacing the return instruction pointer of the process with an address of a VIDT re-entry stub.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
executing the VIDT re-entry stub, by the processor, after execution of the interrupt handler, including retrieving the first permission view from the VEP and switching the second permission view back to the first permission view.

### Claim 9 (depends on 7)

The method of claim 7, wherein the operations further include:
prior to said switching, saving, by the processor, registry states of the processor in a stack of the process; and
after said switching and prior to said triggering execution of the interrupt handler, restoring, by the processor, the saved registry states from the stack.

### Claim 10 (depends on 8)

The method of claim 8, wherein said executing of the VIDT re-entry stub further comprises restoring the return instruction pointer to a register of the processor and causing the processor to transfer execution control to the return instruction pointer.

### Claim 11

An apparatus, comprising:
a processor; and
a memory coupled to the processor;
wherein the processor is configured to support a virtual machine having a guest operating system (OS) that includes a virtual interrupt description table (VIDT), the VIDT having a VIDT exit stub; and
wherein the processor is further configured to:
support a process of the guest OS to trigger execution of the VIDT exit stub, in response to a notification of an interrupt received during execution of the process, to enable the VIDT exit stub to switch from a first permission view associated with the process to a second permission view associated with an interrupt handler, the interrupt handler associated with the interrupt, and
trigger execution of the interrupt handler.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the processor is further configured to support an extended page table, wherein the extended page table is configured to store one or more permission views correspondingly associated with one or more respective processes executed by the processor.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the process is further configured to support a system root agent configured to be operated in the guest OS to allocate the VIDT; and the apparatus further comprising a virtual machine manager (VMM) configured to initialize the VIDT.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the VIDT further includes a VIDT re-entry stub.

### Claim 15 (depends on 11)

The apparatus of claim 11, wherein the processor includes a plurality of processor cores, and the processor is further configured to support a plurality of redirection tables corresponding to the plurality of processor cores, where respective ones of the direction tables are configured to store addresses of the interrupt handler and the VIDT exit stub of the corresponding processor cores.

### Claim 16

An article of manufacture, comprising:
a tangible and non-transitory storage medium;
instructions stored in the storage medium, which, in response to execution of the instructions by a processor of a computing device, cause the computing device to:
receive a notification of an asynchronous event during execution of a process, wherein the asynchronous event is associated with an interrupt handler secured in a protected memory page of a memory of the computing device, and the process lacks permission to access the memory page to trigger execution of the interrupt handler; and
execute a virtual interrupt description table (VIDT) exit stub in response to the notification of the asynchronous event, wherein the VIDT exit stub is configured to cause the processor to:
switch from a first permission view associated with the process to a second permission view associate with the interrupt handler to allow the process to trigger execution of the interrupt handler; and
trigger execution of the interrupt handler.

### Claim 17 (depends on 16)

The article of claim 16, wherein the instruction further cause the computing device to save the first permission view in a view exclusive page (VEP) associated with the memory.

### Claim 18 (depends on 16)

The article of claim 16, wherein the instructions further cause the computing device to:
save prior to said switch, registry states of the processor in a stack of the process; and
restore, after said switch and prior to said trigger, the saved registry states from the stack.

### Claim 19 (depends on 17)

The article of claim 17, wherein the instructions further cause the computing device to save a return instruction pointer of the process in the VEP along with an identification of the process.

### Claim 20 (depends on 19)

The article of claim 19, wherein the instructions further cause the computing device to replace the return instruction pointer of the process with an address of a VIDT re-entry stub.
