From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmxvr-0001AA-61 for qemu-devel@nongnu.org; Wed, 21 May 2014 00:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wmxvl-000054-Nz for qemu-devel@nongnu.org; Wed, 21 May 2014 00:15:11 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:23458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmxvl-0008CE-2R for qemu-devel@nongnu.org; Wed, 21 May 2014 00:15:05 -0400 Message-ID: <537C27D3.6070804@huawei.com> Date: Wed, 21 May 2014 12:13:07 +0800 From: ChenLiang MIME-Version: 1.0 References: <1400608075-19917-1-git-send-email-sanidhya.iiith@gmail.com> In-Reply-To: <1400608075-19917-1-git-send-email-sanidhya.iiith@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/6] Obtain dirty bitmap via VM logging List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, quintela@redhat.com Hi, Nice job. We should avoid running migration_thread and bitmap_logging_thread simultaneously. Best regards: ChenLiang > Hi, > > This is the first part of my gsoc work. > > Following patches add the support of dirty bitmap logging and dumping > to a specified file. These patches provide the mechanism to get the > dirty bitmap if the user wants to log the VM besides migration. This > can be useful in case of learning about the writable working set of > the VM even when it is not being migrated. I know that it will incur > huge degradation but still, a user might want to do that. Besides this, > this mechanism can also be useful in case of learning about the pages > that can be stored in the cache while performing the xbzrle based live > migration or even before the beginning of the hybrid (precopy + postcopy) > live migration. > > I have tried to provide both of the hmp and qmp commands interface to > obtain the dirty bitmap. Besides dumping the dirty bitmap, one can > also update the frequency with which the logging is taking place or > even can cancel the ongoing logging process. Thus, there are 3 hmp and > qmp commands interface provided to perform the task. > > > Sanidhya Kashyap (6): > split dirty bitmap into four for dumping the bitmaps > bitmap dump code via QAPI framework > hmp interface for dirty bitmap dump > cancel mechanism for an already running dump bitmap process > set the frequency of the dump bitmap process > python script for extracting bitmap from a binary file > > exec.c | 4 + > hmp-commands.hx | 46 +++++++ > hmp.c | 36 +++++ > hmp.h | 3 + > include/exec/memory.h | 3 +- > include/exec/ram_addr.h | 16 ++- > include/qapi/qmp/qerror.h | 3 + > qapi-schema.json | 23 ++++ > qmp-commands.hx | 77 +++++++++++ > savevm.c | 344 ++++++++++++++++++++++++++++++++++++++++++++++ > scripts/extract-bitmap.py | 68 +++++++++ > 11 files changed, 621 insertions(+), 2 deletions(-) > create mode 100755 scripts/extract-bitmap.py >