Patent ID: 8892788

Claim:
A method, implemented by a computer system, comprising: detecting, by a hypervisor executed by a processing device of the computer system, an inquiry of a guest hosted by the computer system about a direct memory access (DMA) engine; in response to the inquiry, indicating to the guest that the DMA engine is available; identifying, by the hypervisor, a DMA request from the guest, the DMA request comprising a source address and a target address for copying data, the source address and the target address being within an address space allocated to the guest; in view of at least one condition pertaining to the data and defined in one or more data transfer policies, determining, by the hypervisor and in response to the DMA request from the guest, whether to direct the DMA engine to copy the data for the guest; and providing, by the hypervisor to the guest, an indication of completion of copying the data.