Received: from eggs.gnu.org ([2001:4830:134:3::10]:53525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz4Yu-0005lo-4l for qemu-devel@nongnu.org; Thu, 11 Dec 2014 09:17:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz4Yn-0001sX-VB for qemu-devel@nongnu.org; Thu, 11 Dec 2014 09:17:48 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:43021 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz4Yn-0001sN-JI for qemu-devel@nongnu.org; Thu, 11 Dec 2014 09:17:41 -0500 From: Vladimir Sementsov-Ogievskiy Date: Thu, 11 Dec 2014 17:17:28 +0300 Message-Id: <1418307457-25996-1-git-send-email-vsementsov@parallels.com> Subject: [Qemu-devel] [PATCH 0/8] Dirty bitmaps migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, den@openvz.org, vsementsov@parallels.com, jsnow@redhat.com, stefanha@redhat.com These patches provide dirty bitmap migration feature. Only named dirty bitmaps are to be migrated. Migration is made as a part of block migration in block-migration.c. Dirty bitmap migration may be enabled by "dirty" parameter for qmp migrate command. If "blk" and "inc" parameters are false when "dirty" is true block migration is actually skipped: no allocatoions, no bdrv_read's, no bdrv_write's, only bitmaps are migrated. The patch set includes two my previous bug fixes, which are necessary for it. The patch set is based on Incremental backup series by John Snow. Vladimir Sementsov-Ogievskiy (8): block-migration: fix pending() return value block: fix spoiling all dirty bitmaps by mirror and migration hbitmap: store / restore block: BdrvDirtyBitmap store/restore interface block-migration: tiny refactoring block-migration: remove not needed iothread lock migration: add dirty parameter block-migration: add named dirty bitmaps migration block-migration.c | 232 +++++++++++++++++++++++++++++++++--------- block.c | 76 +++++++++++++- block/mirror.c | 11 +- hmp-commands.hx | 10 +- hmp.c | 4 +- include/block/block.h | 16 ++- include/migration/migration.h | 1 + include/qemu/hbitmap.h | 49 +++++++++ migration.c | 4 +- qapi-schema.json | 2 +- qmp-commands.hx | 5 +- savevm.c | 4 +- util/hbitmap.c | 84 +++++++++++++++ 13 files changed, 434 insertions(+), 64 deletions(-) -- 1.9.1