From: Lyu Mitnick <mitnick.lyu@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] GSoC: Improved image format compatibility
Date: Sun, 3 Apr 2011 03:03:42 +0800 [thread overview]
Message-ID: <BANLkTinEdShFg3M7kfiNq7a=F0txByatOg@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinOQo+24hWXO1JdZh72cQEVahXpbyojH12Ndknx@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]
Hello Stefan,
I have take a look at block.c. But I am a little confused about the meaning
of synchronous/asynchronous i/o. I know the two concept in a operating
system. However I am not sure whether it is analogous in virtual machine.
2011/4/2 Stefan Hajnoczi <stefanha@gmail.com>
> On Fri, Apr 1, 2011 at 7:29 PM, Lyu Mitnick <mitnick.lyu@gmail.com> wrote:
> > Hello
> > I have some question about asynchronous i/o in QEMU block driver: Why a
> file
> > format with asynchronous i/o support(ex. qcow) doesn't need to register
> > bdrv_read/bdrv_write which is registered in vhd file format?? Would qcow
> > block driver
> > also support synchronous i/o??
>
> Take a look at block.c. There are synchronous I/O emulation (and
> asynchronous I/O emulation) functions in case the block driver
> provides only asynchronous (or synchronous, respectively) functions.
>
> One thing to mention about synchronous and asynchronous interfaces is
> that block drivers which are synchronous really don't work well for
> running VMs. They block execution until I/O completes (which can take
> a long time) and therefore steal time from the guest (i.e. laggy, poor
>
I am wondering the meaning of execution block. It is for host host
operating system or for guest operating system?? (ie, Could I issue an
asynchronous i/o in guest operating system when the vhd file system image
mounted)
> responsiveness from the guest). Therefore synchronous block drivers
> are useful for qemu-img convert but not running VMs.
>
> Stefan
Mitnick
[-- Attachment #2: Type: text/html, Size: 2219 bytes --]
next prev parent reply other threads:[~2011-04-02 19:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 21:55 [Qemu-devel] GSoC: Improved image format compatibility Lyu Mitnick
2011-03-30 4:50 ` Stefan Weil
2011-03-30 8:32 ` Stefan Hajnoczi
2011-03-30 18:40 ` Lyu Mitnick
2011-03-30 19:11 ` Stefan Weil
2011-03-30 19:36 ` Lyu Mitnick
2011-04-01 15:15 ` Lyu Mitnick
2011-04-01 16:29 ` Kevin Wolf
2011-04-01 18:29 ` Lyu Mitnick
2011-04-02 13:54 ` Stefan Hajnoczi
2011-04-02 19:03 ` Lyu Mitnick [this message]
2011-04-03 7:33 ` Stefan Hajnoczi
2011-04-04 17:35 ` Lyu Mitnick
2011-04-01 17:02 ` Stefan Weil
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='BANLkTinEdShFg3M7kfiNq7a=F0txByatOg@mail.gmail.com' \
--to=mitnick.lyu@gmail.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
/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).