# US 2021/0173686 A1 · Providing device abstractions to applications inside a virtual machine

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

- Number: US 2021/0173686 A1
- Document ID: US20210173686A1
- Status: Published application
- Kind: A1
- Application number: 16/706,546
- Filed: 2019-12-06
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Alessandro Domenico SCARPANTONI; Shyamal Kaushik VARMA; Ajay Preetham BARBOZA; Jason Christopher KNICHEL; Adam Joseph LENART; Samuel David ADAMS
- Web page: https://patentgrep.com/patent/US20210173686A1

## CPC

- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- 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 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to devices and methods for creating one or more proxy devices in a guest device mirroring the devices hosted by a host device. The proxy devices may provide full device access functionality to applications running in the guest device. The devices and methods may load a proxy driver inside the guest device, which communicates with the host device. When applications running on the guest device interact with the proxy devices, the proxy driver communicates the interaction to the host device, which communicates with the device driver managing the device. The devices and methods allow applications running on the host and applications running on the guest to shares access to the same device.

## Claims

### Claim 1

A computer device, comprising:
a memory;
at least one processor;
a host device in communication with the memory and the at least one processor, wherein the host device hosts a guest device operable to:
receive, from the host device, a notification with information for at least one device in communication with the host device;
use the information for the at least one device to generate a proxy device that mirrors the at least one device in the guest device; and
load a redirection driver for the proxy device to communicate with the host device in response to determining that the proxy device supports input/output redirection.

### Claim 2 (depends on 1)

The computer device of claim 1, wherein the guest device is further operable to:
apply one or more rules for determining whether to create the proxy device; and
generate the proxy device in response to determining to create the proxy device.

### Claim 3 (depends on 1)

The computer device of claim 1, wherein in the information includes device metadata.

### Claim 4 (depends on 1)

The computer device of claim 1, wherein the notification is received in response to the host device applying at least one rule for determining whether to project the at least one device in the guest device.

### Claim 5 (depends on 4)

The computer device of claim 4, wherein the at least one rule includes one or more of identifying supported device types, identifying supported device classes, identifying whether devices opted in to projection into the guest device, identifying whether devices opted out of projection into the guest device, providing a list of devices to project into the guest device, or providing a list of devices to prevent projection into the guest device.

### Claim 6 (depends on 1)

The computer device of claim 1, wherein the guest device is further operable to:
identify the proxy device to use for an input/output request associated with an application running on the guest device;
use the redirection driver to send the input/output request to the host device; and
receive an input/output response from the host device in response to the at least one device performing one or more operations for the input/output request.

### Claim 7 (depends on 6)

The computer device of claim 6, wherein the host device is further operable to:
receive the input/output request from the redirection driver;
open a handle to a driver associated with the at least one device corresponding to the proxy device; and
send the input/output request to the driver for the at least one device to perform one or more operations for the input/output request and generate the input/output response.

### Claim 8 (depends on 7)

The computer device of claim 7, wherein the host device is further operable to:
perform an access control verifying access to the at least one device from the guest device;
send the input/output request to the driver in response to determining the guest device has access to the at least one device; and
block the input/output request to the driver in response to determining the guest device is unable to access the at least one device.

### Claim 9 (depends on 7)

The computer device of claim 7, wherein the host device is further operable to:
provide a host application running on the host device access to the at least one device in response to receiving a request from the host application to use the at least one device.

### Claim 10 (depends on 9)

The computer device of claim 9, wherein the host device is further operable to coordinate between the host application and the application running on the guest device the access to the at least one device.

### Claim 11

A method executed on computer device with a host device in communication with a guest device, comprising:
receiving, from the host device, a notification with information for at least one device in communication with the host device;
using the information for the at least one device to generate, in the guest device, a proxy device that mirrors the at least one device in the guest device; and
loading, in the guest device, a redirection driver for the proxy device to communicate with the host device in response to determining that the proxy device supports input/output redirection.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
applying one or more rules for determining whether to create the proxy device; and
generating the proxy device in response to determining to create the proxy device.

### Claim 13 (depends on 11)

The method of claim 11, wherein the notification is received in response to determining to project the at least one device into the guest device using at least one rule.

### Claim 14 (depends on 13)

The method of claim 13, wherein the at least one rule includes one or more of identifying supported device types, identifying supported device classes, identifying whether devices opted in to projection into the guest device, identifying whether devices opted out of projection into the guest device, providing a list of devices to project into the guest device, or providing a list of devices to prevent projection into the guest device.

### Claim 15 (depends on 11)

The method of claim 11, further comprising:
identifying the proxy device to use for an input/output request associated with an application running on the guest device;
using the redirection driver to send the input/output request to the host device; and
receiving an input/output response from the host device in response to the at least one device performing one or more operations for the input/output request.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
receiving, by the host device, the input/output request from the redirection driver;
opening, by the host device, a handle to a driver associated with the at least one device corresponding to the proxy device; and
sending, by the host device, the input/output request to the driver for the at least one device to perform one or more operations for the input/output request and generate the input/output response.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
performing, by the host device, an access control verifying access to the at least one device from the guest device;
sending, by the host device, the input/output request to the driver in response to determining the guest device has access to the at least one device; and
blocking, by the host device, the input/output request to the driver in response to determining the guest device is unable to access the at least one device.

### Claim 18 (depends on 16)

The method of claim 16, further comprising:
providing, at the host device, a host application running on the host device access to the at least one device in response to receiving a request from the host application to use the at least one device.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
coordinating, at the host device, the access to the at least one device between the host application and the application running on the guest device.

### Claim 20

A computer-readable medium storing instructions executable by a computer device, comprising:
at least one instruction for causing the computer device to receive, from a host device, a notification with information for at least one device in communication with the host device;
at least one instruction for causing the computer device to receive use the information for the at least one device to generate a proxy device that mirrors the at least one device in a guest device; and
at least one instruction for causing the computer device to load a redirection driver for the proxy device to communicate with the host device in response to determining that the proxy device supports input/output redirection.
