From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7jlS-0000xk-GA for qemu-devel@nongnu.org; Thu, 17 Jul 2014 07:22:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7jlL-00037d-LZ for qemu-devel@nongnu.org; Thu, 17 Jul 2014 07:22:18 -0400 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:46039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7jlL-000351-F0 for qemu-devel@nongnu.org; Thu, 17 Jul 2014 07:22:11 -0400 Received: by mail-pa0-f45.google.com with SMTP id eu11so3182784pac.4 for ; Thu, 17 Jul 2014 04:22:10 -0700 (PDT) From: Sanidhya Kashyap Date: Thu, 17 Jul 2014 16:51:13 +0530 Message-Id: <1405596081-29701-1-git-send-email-sanidhya.iiith@gmail.com> Subject: [Qemu-devel] [PATCH v4 0/8] Obtain dirty bitmap via VM logging List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Amit Shah , Sanidhya Kashyap , "Dr. David Alan Gilbert" , Juan Quintela Hi, The following patches introduce the support of the dirty bitmap logging and dumping to a specified file. This patch addresses the previous issues raised by David and Juan. Since, I have not received any comments on the runstates, I'll keep them in the patch series. v3 --> v4 * Added new qmp interface for information extraction from the bitmap process v2 --> v3 * Reformatted the code and removed some unnecessary parts. * Printing block info along with length and offset. * Changed the functions that were directly using RUN_STATE_RUNNING as state. v1 --> v2: * Added two new run states to avoid simultaneous execution of both migration and bitmap dump process. * Removed FILE pointer usage. * Dumping the data only in machine-readable format. * Tried to rectify mistakes of the previous version. Sanidhya Kashyap (8): enable sharing of the function between migration and bitmap dump RunState: added two new flags for bitmap dump and migration process BitmapLog: bitmap dump code via QAPI framework with runstates BitmapLog: hmp interface for dirty bitmap dump BitmapLog: cancel mechanism for an already running dump bitmap process BitmapLog: set the frequency of the dump bitmap process BitmapLog: get the information about the parameters BitmapLog: python script for extracting bitmap from a binary file arch_init.c | 19 ++- hmp-commands.hx | 45 ++++++ hmp.c | 33 ++++ hmp.h | 3 + hw/usb/hcd-ehci.c | 2 +- hw/usb/redirect.c | 6 +- include/exec/cpu-all.h | 4 +- include/exec/ram_addr.h | 4 + migration.c | 7 + qapi-schema.json | 77 +++++++++- qmp-commands.hx | 99 ++++++++++++ savevm.c | 384 ++++++++++++++++++++++++++++++++++++++++++++++ scripts/extract-bitmap.py | 97 ++++++++++++ vl.c | 29 +++- 14 files changed, 794 insertions(+), 15 deletions(-) create mode 100755 scripts/extract-bitmap.py -- 1.9.3