From: Kevin Wolf <kwolf@redhat.com>
To: Fam Zheng <famcool@gmail.com>
Cc: "Benoît Canet" <benoit.canet@irqsave.net>,
pbonzini@redhat.com, "Fam Zheng" <famz@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Stefan Hajnoczi" <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 1/2] block: per caller dirty bitmap
Date: Wed, 13 Nov 2013 15:36:31 +0100 [thread overview]
Message-ID: <20131113143631.GG2633@dhcp-200-207.str.redhat.com> (raw)
In-Reply-To: <CABgc4wSTm=BLghs70a5yEecHVbsHxmJ6NeKSqfkESVCYOgOpWQ@mail.gmail.com>
Am 13.11.2013 um 15:33 hat Fam Zheng geschrieben:
> On Wed, Nov 13, 2013 at 6:29 PM, Fam Zheng <famz@redhat.com> wrote:
> > Previously a BlockDriverState has only one dirty bitmap, so only one
> > caller (e.g. a block job) can keep track of writing. This changes the
> > dirty bitmap to a list and creates a BdrvDirtyBitmap for each caller, the
> > lifecycle is managed with these new functions:
> >
> > bdrv_create_dirty_bitmap
> > bdrv_release_dirty_bitmap
> >
> > Where BdrvDirtyBitmap is a linked list wrapper structure of HBitmap.
> >
> > In place of bdrv_set_dirty_tracking, a BdrvDirtyBitmap pointer argument
> > is added to these functions, since each caller has its own dirty bitmap:
> >
> > bdrv_get_dirty
> > bdrv_dirty_iter_init
> > bdrv_get_dirty_count
> >
> > bdrv_set_dirty and bdrv_reset_dirty prototypes are unchanged but will
> > internally walk the list of all dirty bitmaps and set them one by one.
> >
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> >
> > ---
> > v2: Added BdrvDirtyBitmap [Paolo]
> >
> > Signed-off-by: Fam Zheng <famz@redhat.com>
> > @@ -2785,9 +2792,7 @@ static int coroutine_fn bdrv_co_do_writev(BlockDriverState *bs,
> > ret = bdrv_co_flush(bs);
> > }
> >
> > - if (bs->dirty_bitmap) {
> > bdrv_set_dirty(bs, sector_num, nb_sectors);
> > - }
>
> Sorry, forgot to fix this indentation. Kevin, could you fix it when
> applying? Thanks.
Yes, I already did that (and added Stefan's Reviewed-by, as this patch
is unchanged compared to v2).
Kevin
next prev parent reply other threads:[~2013-11-13 14:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-13 10:29 [Qemu-devel] [PATCH v3 0/2] block: per caller dirty bitmap Fam Zheng
2013-11-13 10:29 ` [Qemu-devel] [PATCH v3 1/2] " Fam Zheng
2013-11-13 14:33 ` Fam Zheng
2013-11-13 14:36 ` Kevin Wolf [this message]
2013-11-13 10:29 ` [Qemu-devel] [PATCH v3 2/2] qapi: Change BlockDirtyInfo to list Fam Zheng
2013-11-13 14:19 ` Kevin Wolf
2013-11-13 14:40 ` Paolo Bonzini
2013-11-13 14:40 ` Fam Zheng
2013-11-14 2:13 ` Wenchao Xia
2013-11-14 2:22 ` Fam Zheng
2013-11-13 20:37 ` Eric Blake
2013-11-13 20:44 ` Eric Blake
2013-11-14 2:33 ` [Qemu-devel] [PATCH] qapi: Add (Since 1.8) to BlockInfo.dirty-bitmaps Fam Zheng
2013-11-14 12:19 ` Kevin Wolf
2013-11-14 1:31 ` [Qemu-devel] [PATCH v3 2/2] qapi: Change BlockDirtyInfo to list Wenchao Xia
2013-11-14 1:39 ` Fam Zheng
2013-11-14 2:03 ` Eric Blake
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=20131113143631.GG2633@dhcp-200-207.str.redhat.com \
--to=kwolf@redhat.com \
--cc=benoit.canet@irqsave.net \
--cc=famcool@gmail.com \
--cc=famz@redhat.com \
--cc=pbonzini@redhat.com \
--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).