# US 2014/0373008 A1 · Thread operation across virtualization contexts

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

- Number: US 2014/0373008 A1
- Document ID: US20140373008A1
- Status: Published application
- Kind: A1
- Application number: 13/917,421
- Filed: 2013-06-13
- Published: 2014-12-18
- Earliest claimed: 2013-06-13
- Assignees: Microsoft Corporation
- Applicants: Microsoft Corporation
- Inventors: Neil A. Jacobson; Gurashish Singh Brar; Kristofer Hellick Reierson
- Web page: https://patentgrep.com/patent/US20140373008A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Application virtualization at the thread level, rather than at the process level, the operation of a thread across virtualization contexts. For instance, one virtualization context might be a native environment, whereas another virtualization context might be a virtualization environment in which code running inside a virtualization package has access to virtualized computing resources. A thread operating in a first virtualization context then enters an entry point to code associated with a second virtualization context. For instance, a native thread might enter a plug-in operating as part of a virtualized package in a virtualization environment. While the thread is operating on the code, the thread might request access to the second computing resources associated with the second virtualization environment. In response, the thread is associated with the second virtualization context such that the thread has access to the second computing resources associated with the second virtualization context.

## Claims

### Claim 1

A method for operating a thread across virtualization contexts, the method comprising:
an act of a thread operating in a first virtualization context and thus having access to first computing resources associated with the first virtualization context;
an act of the thread entering an entry point to code associated with a second virtualization context and that has access to second computing resources associated with the second virtualization context;
while the thread is operating on the code, an act of detecting an event; and
in response to the act of detecting, an act of associating the thread with the second virtualization context such that the thread has access to the second computing resources associated with the second virtualization context.

### Claim 2 (depends on 1)

The method in accordance with claim 1, wherein the event is the thread requesting access to the second computing resources.

### Claim 3 (depends on 2)

The method in accordance with claim 2, further comprising:
an act of registering origin information about the request on a processor call stack.

### Claim 4 (depends on 3)

The method in accordance with claim 3, wherein the act of associated the thread with the second virtualization context is performed in response to the following:
an act of identifying that that thread is to be associated with the second virtualization context using at least the registered origin information.

### Claim 5 (depends on 4)

The method in accordance with claim 4, wherein the act of identifying that the thread is to be associated with the second virtualization context is performed also using a context of the registered origin information within the processor call stack.

### Claim 6 (depends on 1)

The method in accordance with claim 1, wherein the first virtualization context is a native environment and the first computing resources are native resources, and the second virtualization context is a virtualization environment and the second computing resources are virtual resources.

### Claim 7 (depends on 1)

The method in accordance with claim 1, wherein the first virtualization context is a first virtualization environment and the first computing resources are first virtual resources, and the second virtualization context is a second virtualization environment and the second computing resources are second virtual resources.

### Claim 8 (depends on 1)

The method in accordance with claim 1, further comprising:
after the act of association, an act of redirecting one or more subsequent requests from the thread to the second computing resources.

### Claim 9 (depends on 8)

The method in accordance with claim 8, wherein the code is a plug-in.

### Claim 10

A computer program product comprising one or more computer-readable storage media having thereon computer-executable instructions that are structured such that, when executed by one or more processors of a computing system, cause the computing system to perform a method for operating a thread across virtualization contexts, the method comprising:
an act of a thread operating in a first virtualization context and thus having access to first computing resources associated with the first virtualization context;
an act of the thread entering an entry point to code associated with a second virtualization context and that has access to second computing resources associated with the second virtualization context;
while the thread is operating on the code and while still operating in the first virtualization context, an act of requesting access to the second computing resources; and
an act of registering an origin of the request as being the code.

### Claim 11 (depends on 10)

The computer program product in accordance with claim 10, wherein the origin is used to associate the thread with the second virtualization context such that the thread has access to the second computing resources.

### Claim 12 (depends on 10)

The computer program product in accordance with claim 10, wherein the registration of the origin is in a processor call stack.

### Claim 13 (depends on 10)

The computer program product in accordance with claim 10, wherein the first virtualization context is a native environment and the first computing resources are native resources, and the second virtualization context is a virtualization environment and the second computing resources are virtual resources.

### Claim 14 (depends on 10)

The computer program product in accordance with claim 10, wherein the first virtualization context is a first virtualization environment and the first computing resources are first virtual resources, and the second virtualization context is a second virtualization environment and the second computing resources are second virtual resources.

### Claim 15

A computer program product comprising one or more computer-readable storage media having thereon computer-executable instructions that are structured such that, when executed by one or more processors of a computing system, cause the computing system to perform a method for transitioning a thread across virtualization contexts, the method comprising:
an act of detecting an event associated with a thread operating on code in a virtualization environment; and
in response to the event, an act of associating the thread with the virtualization environment such that the thread has access to computing resources associated with the virtualization environment.

### Claim 16 (depends on 15)

The computer program product in accordance with claim 15, wherein the event is the thread requesting access to the computing resources.

### Claim 17 (depends on 16)

The computer program product in accordance with claim 16, wherein the act of associated the thread with the virtualization environment is performed in response to the following:
an act of identifying that that thread is to be associated with the virtualization environment using at least registered origin information that was caused to be registered in response to the request.

### Claim 18 (depends on 17)

The computer program product in accordance with claim 17, wherein the registered origin information is within a processor call stack.

### Claim 19 (depends on 18)

The computer program product in accordance with claim 18, wherein the act of identifying that the thread is to be associated with the virtualization environment is performed also using a context of the registered origin information within the processor call stack.

### Claim 20 (depends on 15)

The computer program product in accordance with claim 15, the method further comprising:
after the act of association, an act of redirecting one or more subsequent requests from the thread to the computing resources associated with the virtualization environment.
