Re: [RFC] qemu_cleanup: do vm_shutdown() before bdrv_drain_all_begin()

2021-09-02 Thread Vladimir Sementsov-Ogievskiy
ping 30.07.2021 17:29, Vladimir Sementsov-Ogievskiy wrote: That doesn't seem good to stop handling io when guest is still running. For example it leads to the following: After bdrv_drain_all_begin(), during vm_shutdown() scsi_dma_writev() calls blk_aio_pwritev(). As we are in drained section

[RFC] qemu_cleanup: do vm_shutdown() before bdrv_drain_all_begin()

2021-07-30 Thread Vladimir Sementsov-Ogievskiy
That doesn't seem good to stop handling io when guest is still running. For example it leads to the following: After bdrv_drain_all_begin(), during vm_shutdown() scsi_dma_writev() calls blk_aio_pwritev(). As we are in drained section the request waits in blk_wait_while_drained(). Next, during