1. A method comprising: detecting a direct memory access (DMA) write request for a device assigned to a guest operating system to perform a DMA write to a page of memory; prior to a write access of to the page, setting a DMA write state of a guest physical address for the requested page of memory to indicate that a DMA write operation is in progress for the requested page; causing, by a processing device, a virtual central processing unit (CPU) to attempt to write to the requested page of memory; and sending the DMA write request to the device to cause the device to write to the requested page of memory.