From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyZjw-00043a-I9 for qemu-devel@nongnu.org; Sun, 14 Jul 2013 23:46:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyZjv-0005xA-Oo for qemu-devel@nongnu.org; Sun, 14 Jul 2013 23:46:20 -0400 Date: Mon, 15 Jul 2013 11:46:08 +0800 From: Stefan Hajnoczi Message-ID: <20130715034608.GE21224@stefanha-thinkpad.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Questions about Block subsystem in QEMU. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yaodong Yang Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org On Mon, Jul 08, 2013 at 11:15:12PM -0500, Yaodong Yang wrote: > I have a question about the qemu block-subsytem. When a user in guest os > perform an io operation, how this io request performed in the qemu. Where > is the start point in qemu code to serve this request. QEMU emulates a number of different storage controllers, including virtio-blk, virtio-scsi, IDE, USB Mass Storage Device, SD cards, etc. See hw/block/ for storage controller emulation code, which the guest drivers invoke through hardware register accesses. Stefan