From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ1pQ-0004pN-QZ for qemu-devel@nongnu.org; Fri, 22 Mar 2013 09:16:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UJ1pP-000855-Cu for qemu-devel@nongnu.org; Fri, 22 Mar 2013 09:16:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UJ1pP-000850-5J for qemu-devel@nongnu.org; Fri, 22 Mar 2013 09:16:15 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2MDGE9u022567 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 22 Mar 2013 09:16:14 -0400 From: Pavel Hrdina Date: Fri, 22 Mar 2013 14:15:59 +0100 Message-Id: Subject: [Qemu-devel] [PATCH v2 00/12] convert savevm to use qapi and introduce qmp command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Pavel Hrdina , armbru@redhat.com, lcapitulino@redhat.com This patch series convert the savevm command into qapi and introduce QMP command vm-snapshot-save. It also rewrite error report for functions used by this command. The patch 10/11 introduce new functionality of savevm and vm-snapshot-save that you cannot override existing snapshot without using 'force' parameter. The last patch improves speed of savevm. Previous buffer was too small for writing into block devices. Changes from v1: - rebase on current master branch - improve the speed of savevm - name parameter remains optionl for HMP and QMP Pavel Hrdina (12): block: add error parameter to bdrv_snapshot_create() and related functions block: add error parameter to del_existing_snapshots() savevm: add error parameter to qemu_savevm_state_begin() savevm: add error parameter to qemu_savevm_state_iterate() savevm: add error parameter to qemu_savevm_state_complete() savevm: add error parameter to qemu_savevm_state() qapi: Convert savevm qemu-img: introduce qemu_img_handle_error block: update return value from bdrv_snapshot_create savevm: update return value from qemu_savevm_state vm-snapshot-save: add force parameter savevm: icrease the IO_BUF_SIZE to improve the speed of savevm block.c | 26 +++++++++++----- block/qcow2-snapshot.c | 13 ++++++-- block/qcow2.h | 4 ++- block/rbd.c | 16 ++++++---- block/sheepdog.c | 21 ++++++------- hmp-commands.hx | 17 ++++++----- hmp.c | 10 +++++++ hmp.h | 1 + include/block/block.h | 3 +- include/block/block_int.h | 3 +- include/sysemu/sysemu.h | 8 ++--- migration.c | 6 ++-- qapi-schema.json | 21 +++++++++++++ qemu-img.c | 18 +++++++---- qmp-commands.hx | 33 ++++++++++++++++++++ savevm.c | 76 ++++++++++++++++++++++++++--------------------- 16 files changed, 192 insertions(+), 84 deletions(-) -- 1.8.1.4