# US 2012/0278803 A1 · Hardware Assisted Inter Hypervisor Partition Data Transfers

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

- Number: US 2012/0278803 A1
- Document ID: US20120278803A1
- Status: Published application
- Kind: A1
- Application number: 13/096,680
- Filed: 2011-04-28
- Published: 2012-11-01
- Earliest claimed: 2011-04-28
- Assignees: Microsoft Corporation
- Inventors: Vladimir Pavlov
- Web page: https://patentgrep.com/patent/US20120278803A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An invention is disclosed for effectuating direct memory access (DMA) transfers by a guest operating system of a child partition. A guest operating system is presented with virtualized resources rather than physical resources—e.g. a virtualized processor, virtualized memory, and a virtualized DMA controller. When the guest OS attempts to initiate a DMA transfer using the virtualized DMA controller, the child partition detects this, and directs the physical DMA controller to conduct the DMA transfer.

## Claims

### Claim 1

A method for offloading transferring data between a virtualized hardware device and a child partition from a central processing unit (CPU) of a host computer having a host partition, the child partition comprising a guest operating system (OS), comprising:
determining, by the child partition, that the guest OS has attempted to instruct a virtualized hardware device of the child partition to copy data to a destination;
instructing the CPU, by the a virtual machine manager (VMM) that enables the child partition, to process an instruction indicative of instructing a physical hardware device other than the CPU to write the data to the destination, the physical hardware device corresponding to the virtual hardware device; and
causing the CPU to instruct the physical hardware device to write the data to the destination.

### Claim 2 (depends on 1)

The method of claim 1, wherein causing the CPU to instruct the physical hardware device to write the data to the destination comprises:
sending, from the child partition and to the host partition, an indication of instructing the CPU to process the instruction; and
instructing the CPU, by the host partition, to process the instruction indicative of instructing physical hardware device to write the data to the destination, the physical hardware device corresponding to the virtual hardware device.

### Claim 3 (depends on 2)

The method of claim 2, wherein sending, from the child partition and to the host partition, an indication of instructing the CPU to process the instruction comprises:
translating, by the host partition, a location of the data in a virtual address space of the child partition to a location of the data in an address space of the host partition.

### Claim 4 (depends on 2)

The method of claim 2, wherein instructing the CPU, by the host partition, to process the instruction indicative of a physical hardware device corresponding to the virtual hardware device to write the data to the destination comprises:
translating, by the host partition, a location of the data in an address space of the host partition to a location of the data in a physical address space.

### Claim 5 (depends on 2)

The method of claim 2, wherein sending, from the child partition and to the host partition, an indication of instructing the CPU to process the instruction comprises:
sending the instruction, by the child partition and to the host partition, across a shared memory transport.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
sending an indication, by the physical hardware device and to the CPU, that the data has been written to the destination;
sending an indication, by the CPU and to the child partition, that the data has been written to the destination;
writing, by the child partition, second data to a location of the data in an address space of the child partition, the second data overwriting at least a portion of the data;
determining, by the child partition, that the guest OS has attempted to instruct the virtualized hardware device of the child partition to write the second data to a second destination;
instructing the CPU, by the child partition, to process an instruction originated by the child partition indicative of instructing the physical hardware device to write the second data to the second destination; and
causing the CPU to instruct the physical hardware device to write the data to the destination.

### Claim 7 (depends on 1)

The method of claim 1, wherein instructing the CPU, by the VMM, to process an instruction indicative of a physical hardware device other than the CPU to write the data to the destination, the physical hardware device corresponding to the virtual hardware device further comprises:
instructing, by the CPU, a direct memory access (DMA) controller of the host computer to write the data to the destination; and
writing, by the DMA controller, the data to the destination, the destination being part of the physical hardware device.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
determining, by a second child partition of the host computer, that a second guest OS of the second child partition has attempted to instruct a second virtualized hardware device of the second child partition to write second data to a second destination, the second virtualized hardware device corresponding to the physical hardware device;
instructing the CPU, by the VMM, to process an instruction indicative of instructing the physical hardware device to write the second data to the second destination;
and
causing the CPU to instruct the physical hardware device to write the data to the second destination.

### Claim 9

A system for offloading transferring data between a virtualized hardware device and a child partition comprising a guest operating system (OS), comprising:
a processor; and
a memory communicatively coupled to the processor when the system is operational, the memory bearing processor-executable instructions that, when executed on the processor, cause operations comprising:
determining, by the child partition, that the guest OS has attempted to instruct a virtualized hardware device of the child partition to write data to a destination;
instructing the CPU, by a virtual machine manager (VMM) that supports the child partition, to process an instruction indicative of instructing a physical hardware device other than the CPU to write the data to the destination, the physical hardware device corresponding to the virtual hardware device; and
causing the CPU to instruct the physical hardware device to write the data to the destination.

### Claim 10 (depends on 9)

The system of claim 9, wherein instructing the CPU to process the instruction comprises:
sending, from the child partition and to the host partition, an indication of instructing the CPU to process the instruction; and
instructing the CPU, by the host partition, to process the instruction indicative of instructing physical hardware device to write the data to the destination, the physical hardware device corresponding to the virtual hardware device.

### Claim 11 (depends on 10)

The system of claim 10, wherein sending, from the child partition and to the host partition, an indication of instructing the CPU to process the instruction comprises:
translating, by the host partition, a location of the data in a virtual address space of the child partition to a location of the data in an address space of the host partition.

### Claim 12 (depends on 10)

The system of claim 10, wherein instructing the CPU, by the host partition, to process the instruction indicative of a physical hardware device corresponding to the virtual hardware device to write the data to the destination comprises:
translating, by the host partition, a location of the data in an address space of the host partition to a location of the data in a physical address space.

### Claim 13 (depends on 10)

The system of claim 10, wherein sending, from the child partition and to the host partition, an indication of instructing the CPU to process the instruction comprises:
sending the instruction, by the child partition and to the host partition, across a shared memory transport.

### Claim 14 (depends on 9)

The system of claim 9, wherein the memory further bears instructions that, when executed on the processor, cause operations comprising:
sending an indication, by the physical hardware device and to the CPU, that the data has been written to the destination;
sending an indication, by the CPU and to the child partition, that the data has been written to the destination;
writing, by the child partition, second data to a location of the data in an address space of the child partition, the second data overwriting at least a portion of the data;
determining, by the child partition, that the guest OS has attempted to instruct the virtualized hardware device of the child partition to write the second data to a second destination;
instructing the CPU, by the child partition, to process an instruction indicative of instructing the physical hardware device to write the second data to the second destination;
writing the second data, by the physical hardware device, to the second destination; and
storing the second data in the second destination.

### Claim 15 (depends on 9)

The system of claim 9, wherein instructing the CPU, by the child partition, to process an instruction indicative of a physical hardware device other than the CPU to write the data to the destination, the physical hardware device corresponding to the virtual hardware device further comprises:
instructing, by the CPU, a direct memory access (DMA) controller of the host computer to write the data to the destination; and
writing, by the DMA controller, the data to the destination, the destination being part of the physical hardware device.

### Claim 16 (depends on 9)

The system of claim 9, wherein the memory further bears instructions that, when executed on the processor, cause operations comprising:
determining, by a second child partition of the host computer, that a second guest OS of the second child partition has attempted to instruct a second virtualized hardware device of the second child partition to write second data to a second destination, the second virtualized hardware device corresponding to the physical hardware device;
instructing the CPU, by the second child partition, to process an instruction indicative of instructing the physical hardware device to write the second data to the second destination; and
causing the CPU to instruct the physical hardware device to write the data to the destination.

### Claim 17

A computer-readable storage medium for offloading transferring data between a child partition comprising and a guest operating system (OS), bearing computer-readable instructions that, when executed on the computer, cause operations comprising:
determining, by the child partition, that the guest OS has attempted to instruct a virtualized hardware device of the child partition to write data to a destination;
instructing the CPU, by a Virtual Machine Manager (VMM) that supports the child partition, to process an instruction indicative of instructing a physical hardware device other than the CPU to write the data to the destination, the physical hardware device corresponding to the virtual hardware device; and
causing the CPU to instruct the physical hardware device to write the data to the destination.

### Claim 18 (depends on 17)

The computer-readable storage medium of claim 17, wherein instructing the CPU to process the instruction comprises:
sending, from the child partition and to the host partition, an indication of instructing the CPU to process the instruction; and
instructing the CPU, by the host partition, to process the instruction indicative of instructing physical hardware device to write the data to the destination, the physical hardware device corresponding to the virtual hardware device.

### Claim 19 (depends on 17)

The computer-readable storage medium of claim 17, further bearing instructions that, when executed on the computer, cause operations comprising:
sending an indication, by the physical hardware device and to the CPU, that the data has been written to the destination;
sending an indication, by the CPU and to the child partition, that the data has been written to the destination;
writing, by the child partition, second data to a location of the data in an address space of the child partition, the second data overwriting at least a portion of the data;
determining, by the child partition, that the guest OS has attempted to instruct the virtualized hardware device of the child partition to write the second data to a second destination;
instructing the CPU, by the child partition, to process an instruction indicative of instructing the physical hardware device to write the second data to the second destination; and
causing the CPU to instruct the physical hardware device to write the second data to the second destination.

### Claim 20 (depends on 17)

The computer-readable storage medium of claim 17, wherein the memory further bears instructions that, when executed on the processor, cause operations comprising:
determining, by a second child partition of the host computer, that a second guest OS of the second child partition has attempted to instruct a second virtualized hardware device of the second child partition to write second data to a second destination, the second virtualized hardware device corresponding to the physical hardware device;
instructing the CPU, by the second child partition, to process an instruction indicative of instructing the physical hardware device to write the second data to the second destination; and
causing the CPU to instruct the physical hardware device to write the second data to the second destination.
