Embodiments of the disclosure enable exit-less movement of guest memory assigned to a device in a virtualized environment. An example method comprises detecting, by a processing device of a host computer system, an event triggering a move/copy of a memory page residing at a first memory location that is mapped to a virtual address space of a virtual machine being hosted by the host computer system. Thereafter, the first memory location is un-mapped from the virtual address space of the virtual machine. Responsive to determining that a DMA write indicator associated with a hardware device assigned to the virtual machine indicates that a DMA write operation is not in progress, the memory page is moved from the first memory location to a second memory location. Then, the second memory location is mapped into the virtual address space of the virtual machine for use by an input/output memory management unit.
展开▼