Skip to contentSkip to conversation

about I/O

Qemu-devel Stefan Hajnoczi 1 participant 1 message Jan 7, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 1 line · 浩樊啊

qemu use paio or libaio finish I/O reqeusts,does that mean that when a sync request comes from a vm becomes async request in the host?

Yes, although storage controllers (virtio-blk, SCSI, SATA, and even IDE in DMA mode) are asynchronous at the hardware interface level. That means the guest OS submits an I/O request to the device and the guest CPU continues running until the I/O completion interrupt occurs.

The exceptions are old hardware interfaces like some of the SD Card controllers or maybe floppy where a single hardware register read/write actually involves synchronous I/O (the guest cannot execute CPU instructions while the I/O request is happening).

Stefan