Patent ID: 8631170
Filing Date: 2014-01-14
Classification: G06F

Abstract:
1. A method comprising: receiving, by a computer system, an indication that a bus address is to be used by a device to perform direct memory access (DMA) to a buffer, the buffer being managed by a guest operating system of one of a plurality of virtual machines hosted by the computer system, wherein the bus address is a physical address associated with the device; determining, by the computer system, a host device identifier for the device based on a guest device identifier recognized by the guest operating system; pinning, by the computer system, a memory page addressed by a host address to keep the pinned memory page in host memory, wherein the host address is associated with the bus address and a guest address of the guest operating system; recording, by the computer system, in a host I/O memory management unit (IOMMU), a mapping of the bus address and the host device identifier to the host address; and removing, by the computer system, the mapping after the device completes the DMA.