# US 2012/0084517 A1 · Shared Memory Between Child and Parent Partitions

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

- Number: US 2012/0084517 A1
- Document ID: US20120084517A1
- Status: Published application
- Kind: A1
- Application number: 12/894,896
- Filed: 2010-09-30
- Published: 2012-04-05
- Earliest claimed: 2010-09-30
- Assignees: Microsoft Corporation
- Inventors: Bradley Stephen Post; Ed Cox
- Web page: https://patentgrep.com/patent/US20120084517A1

## CPC

- G06F 9/45541: {Bare-metal, i.e. hypervisor runs directly on hardware}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 9/452: {Remote windowing, e.g. X-Window System, desktop virtualisation (protocols for virtual reality H04L67/131)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A mechanism for the creation of a shared memory aperture between modes in a parent and child partition is described. The shared memory aperture can be created between any memory mode between the guest and any host. For example, a shared memory aperture can be created between the kernel mode on the child partition and the user mode on the parent partition.

## Claims

### Claim 1

A method of transferring data between virtual machine partitions, the method comprising:
sending by a first virtual machine partition to a second virtual machine partition a request for allocation of memory, wherein the allocation indicates a maximum buffer size for transferred data;
mapping the requested memory allocation;
allocating the requesting memory in a shared memory aperture between modes in the first and second virtual machine partitions; and
transferring data between the first and second virtual machine partitions using the shared memory aperture.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first virtual machine partition is a child partition and the second virtual machine partition is a parent partition.

### Claim 3 (depends on 2)

The method of claim 2, wherein the modes comprise either a kernel mode or a user mode.

### Claim 4 (depends on 2)

The method of claim 2, wherein the data comprises graphics data representative of a client screen in a remote presentation session.

### Claim 5 (depends on 4)

The method of claim 4, the graphics data is rendered by a virtualized graphics accelerator executing in the parent partition.

### Claim 6 (depends on 1)

The method of claim 1, wherein the maximum buffer size is negotiated between the first and second partitions.

### Claim 7 (depends on 1)

The method of claim 1, wherein the shared memory aperture is created using a software library.

### Claim 8 (depends on 3)

The method of claim 3, further comprising opening a VSC device object and sending a control message to a VSC driver requesting that the user mode or kernel mode buffer allocated in the child partition be shared with a parent partition buffer.

### Claim 9 (depends on 8)

The method of claim 8, wherein the VSC driver creates a memory descriptor list (MDL) for the buffer allocated in the child partition guest OS memory space.

### Claim 10 (depends on 9)

The method of claim 9, wherein the VSC driver converts the MDL to a guest physical address descriptor list (GPADL) that describes the system pages that the memory buffer has been allocated by the hypervisor.

### Claim 11 (depends on 1)

The method of claim 1, further comprising closing the shared memory aperture by unlocking, unmapping, and releasing the shared memory aperture.

### Claim 12

A system for transferring data between virtual machine partitions, comprising:
a computing device comprising at least one processor;
a memory communicatively coupled to said processor when said system is operational; said memory having stored therein computer instructions that upon execution by the at least one processor cause:
sending by a first virtual machine partition to a second virtual machine partition a request for allocation of memory, wherein the allocation indicates a maximum buffer size for transferred data;
mapping the requested memory allocation;
allocating the requesting memory in a shared memory aperture between modes in the first and second virtual machine partitions; and
transferring data between the first and second virtual machine partitions using the shared memory aperture.

### Claim 13 (depends on 12)

The system of claim 12, wherein the first virtual machine partition is a child partition and the second virtual machine partition is a parent partition.

### Claim 14 (depends on 13)

The system of claim 13, wherein the modes comprise either a kernel mode or a user mode.

### Claim 15 (depends on 12)

The system of claim 12, wherein the maximum buffer size is negotiated between the first and second partitions.

### Claim 16 (depends on 12)

The system of claim 12, wherein the shared memory aperture is created using a software link library.

### Claim 17

A computer readable storage medium storing thereon computer executable instructions for transferring data between virtual machine partitions, said instructions for:
sending by a child virtual machine partition to a parent virtual machine partition a request for allocation of memory, wherein the allocation indicates a maximum buffer size for transferred data;
mapping the requested memory allocation;
allocating the requesting memory in a shared memory aperture between modes in the child and parent virtual machine partitions; and
transferring data between the child and parent virtual machine partitions using the shared memory aperture.

### Claim 18 (depends on 17)

The computer readable storage medium of claim 17, wherein the modes comprise either a kernel mode or a user mode.

### Claim 19 (depends on 17)

The computer readable storage medium of claim 17, wherein the maximum buffer size is negotiated between the first and second partitions.

### Claim 20 (depends on 17)

The computer readable storage medium of claim 17, wherein the data comprises graphics data representative of a client screen in a remote presentation session and the graphics data is rendered by a virtualized graphics accelerator executing in the parent partition.
