Received: from eggs.gnu.org ([2001:4830:134:3::10]:45135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aH2lQ-00026Y-3J for qemu-devel@nongnu.org; Thu, 07 Jan 2016 00:05:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aH2lM-0003qy-SA for qemu-devel@nongnu.org; Thu, 07 Jan 2016 00:05:32 -0500 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:34834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aH2lM-0003qq-LK for qemu-devel@nongnu.org; Thu, 07 Jan 2016 00:05:28 -0500 Received: by mail-pa0-x231.google.com with SMTP id ho8so2339087pac.2 for ; Wed, 06 Jan 2016 21:05:28 -0800 (PST) Date: Thu, 7 Jan 2016 13:05:25 +0800 From: Stefan Hajnoczi Message-ID: <20160107050525.GD12971@stefanha-x1.localdomain> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sgneBHv3152wZ8jf" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] about I/O List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?B?5rWp5qiK5ZWK?= Cc: qemu-devel --sgneBHv3152wZ8jf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 29, 2015 at 03:36:07PM +0800, =E6=B5=A9=E6=A8=8A=E5=95=8A wrote: > qemu use paio or libaio finish I/O reqeusts,does that mean that when a sy= nc 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 --sgneBHv3152wZ8jf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWjfIVAAoJEJykq7OBq3PI6wUH/jGfwzOy7yIr676OvSb+z+bk ehpoInQyAIZmG/usHoRF9AaY69M5LTS3JX7FK9Nkw1Uvf2yUU6wXpzvWmhthIGSc 9S09m+ZlZdy5/XOQ4VjDjcpprSRpIzDqIeKw2N5B71AQRFtqJCXx8VLpNDS2wBj4 frBTlVjTPDBXu8fKD28BhkfSaHYxRVwNICRdsx3CuKmF7Jdh9UwWAlbxIjcdsl/3 Iv5hfI9cRYGWmk4zDlxpwb4x+xIf7C0VgpHGfaY3p1/vGwFTPC3P5+SZ2pOMBUZy phW1BSEoEIfSgqs99jdHpOuPXCx7yKvODRNY6Fsop2aBKr9UQ7z1sPESjZbkQno= =Eqqx -----END PGP SIGNATURE----- --sgneBHv3152wZ8jf--