Received: from eggs.gnu.org ([2001:4830:134:3::10]:42232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOMNb-0000XE-Un for qemu-devel@nongnu.org; Fri, 14 Mar 2014 03:18:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOMNV-0004ME-Rm for qemu-devel@nongnu.org; Fri, 14 Mar 2014 03:18:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOMNV-0004M4-Ji for qemu-devel@nongnu.org; Fri, 14 Mar 2014 03:18:01 -0400 Date: Fri, 14 Mar 2014 15:18:10 +0800 From: Fam Zheng Message-ID: <20140314071810.GB11745@T430.nay.redhat.com> References: <1394605864-32237-1-git-send-email-famz@redhat.com> <1394605864-32237-3-git-send-email-famz@redhat.com> <20140313132657.GB4534@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20140313132657.GB4534@irqsave.net> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 2/9] qmp: Add dirty-bitmap-add and dirty-bitmap-remove List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Thu, 03/13 14:26, Beno=EEt Canet wrote: > The Wednesday 12 Mar 2014 =E0 14:30:57 (+0800), Fam Zheng wrote : > > The new command pair is added to manage user created dirty bitmap. Th= e > > dirty bitmap's name is mandatory and must be unique for the same devi= ce, > > but different devices can have bitmaps with the same names. > >=20 > > Signed-off-by: Fam Zheng > > --- > > blockdev.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++ > > qapi-schema.json | 45 ++++++++++++++++++++++++++++++++++++++++++ > > qmp-commands.hx | 49 +++++++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 154 insertions(+) > >=20 > > diff --git a/blockdev.c b/blockdev.c > > index c3422a1..662c950 100644 > > --- a/blockdev.c > > +++ b/blockdev.c > > @@ -1713,6 +1713,66 @@ void qmp_block_set_io_throttle(const char *dev= ice, int64_t bps, int64_t bps_rd, > > } > > } > > =20 > > +void qmp_dirty_bitmap_add(const char *device, const char *name, > Do we want this to work on node-names too ? I think having dirty bitmap on device is good enough for now. If there is= a necessity we can add on top. Fam