From: Fam Zheng <famz@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Alberto Garcia <berto@igalia.com>,
qemu-block@nongnu.org, qemu-devel@nongnu.org,
Jeff Cody <jcody@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
Max Reitz <mreitz@redhat.com>, John Snow <jsnow@redhat.com>
Subject: Re: [Qemu-devel] Minutes from the "Stuttgart block Gipfele"
Date: Mon, 4 Jan 2016 15:28:36 +0800 [thread overview]
Message-ID: <20160104072836.GA28942@ad.usersys.redhat.com> (raw)
In-Reply-To: <20160104051634.GA26505@stefanha-x1.localdomain>
On Mon, 01/04 13:16, Stefan Hajnoczi wrote:
> On Wed, Dec 23, 2015 at 06:15:20PM +0800, Fam Zheng wrote:
> > On Fri, 12/18 14:15, Markus Armbruster wrote:
> > In that theory, all other block job types, mirror/stream/commit, fit into a
> > "pull" model, which follows a specified dirty bitmap and copies data from a
> > specified src BDS. In this pull model,
> >
> > mirror (device=d0 target=d1) becomes a pull fileter:
> >
> > BB[d0] BB[d1]
> > | |
> > throttle [pull,src=d0]
> > | |
> > detect-zero detect-zero
> > | |
> > copy-on-read copy-on-read
> > | |
> > BDS BDS
> >
> > Note: the pull reuses most of the block/mirror.c code except the
> > s->dirty_bitmap will be initialized depending on the block job type. In the
> > case of mirror, it is trivially the same as now.
>
> I don't understand the pull filter. Is there also a mirror block job
> coroutine?
>
> Does anything perform I/O to BB[d1]?
Yes, the filter will have a mirror block job coroutine, and it writes to the
BDS behind BB[d1]. This is conceptually different from the "block jobs have
their own BBs" design.
>
> If nothing is writing to/reading from BB[d1], then I don't understand
> the purpose of the pull filter.
>
> Stefan
next prev parent reply other threads:[~2016-01-04 7:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-18 13:15 [Qemu-devel] Minutes from the "Stuttgart block Gipfele" Markus Armbruster
2015-12-23 8:33 ` Stefan Hajnoczi
2016-01-11 15:10 ` Kevin Wolf
2016-01-14 11:25 ` Stefan Hajnoczi
2015-12-23 10:15 ` Fam Zheng
2016-01-04 5:16 ` Stefan Hajnoczi
2016-01-04 7:28 ` Fam Zheng [this message]
2016-01-07 5:23 ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2016-01-07 9:32 ` Fam Zheng
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=20160104072836.GA28942@ad.usersys.redhat.com \
--to=famz@redhat.com \
--cc=armbru@redhat.com \
--cc=berto@igalia.com \
--cc=jcody@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).