1. A method comprising: detecting, by a processing device of a host computer system, an instruction for triggering a move or 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; un-mapping the first memory location from the virtual address space of the virtual machine; responsive to determining that a direct memory access (DMA) write indicator associated with a hardware device assigned to the virtual machine is set indicating that a DMA write operation is in progress, deferring the move or copy of the memory page from the first memory location to a second memory location until an occurrence of a triggering event; and mapping, for use by an input/output memory management unit (IOMMU), the second memory location to the virtual address space of the virtual machine.