qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: 浩樊啊 <fanh2010@foxmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] about I/O
Date: Thu, 7 Jan 2016 13:05:25 +0800	[thread overview]
Message-ID: <20160107050525.GD12971@stefanha-x1.localdomain> (raw)
In-Reply-To: <tencent_188DEB20579AFDDF2C219C1E@qq.com>

[-- Attachment #1: Type: text/plain, Size: 750 bytes --]

On Tue, Dec 29, 2015 at 03:36:07PM +0800, 浩樊啊 wrote:
> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

           reply	other threads:[~2016-01-07  5:05 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <tencent_188DEB20579AFDDF2C219C1E@qq.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160107050525.GD12971@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=fanh2010@foxmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).