From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyLln-0001DK-KY for qemu-devel@nongnu.org; Mon, 16 Nov 2015 10:32:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyLli-00030v-2t for qemu-devel@nongnu.org; Mon, 16 Nov 2015 10:32:39 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:8315 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyLlh-00030e-Ln for qemu-devel@nongnu.org; Mon, 16 Nov 2015 10:32:34 -0500 From: "Denis V. Lunev" Date: Mon, 16 Nov 2015 18:32:25 +0300 Message-Id: <1447687950-29350-1-git-send-email-den@openvz.org> Subject: [Qemu-devel] [PATCH 0/5] QMP wrappers for VM snapshot operations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juan Quintela , qemu-devel@nongnu.org, Markus Armbruster , Amit Shah , "Denis V. Lunev" EFI based VM with pflash storage for NVRAM could not be snapshoted as libvirt configures storage as 'raw' and writable. OK, this is a libvirt problem. Another problem is that libvirt can not detect this failure at all as it uses HMP for this operation. This create snapshot/delete snapshot sequence passes silently. The patchset adds QMP wrappers for the purpose. At the moment I have placed 2.6 version into QAPI. Though (if you feel appropriate) I can change it to 2.5 :) This is up to you to decide. Please note, this patchset is made on top of [PATCH for 2.5 v8 0/10] dataplane snapshot fixes Signed-off-by: "Denis V. Lunev" CC: Juan Quintela CC: Amit Shah CC: Markus Armbruster CC: Eric Blake Denis V. Lunev (5): migration: split hmp_savevm to do_savevm and hmp_savevm wrapper qmp: create qmp_savevm command qmp: create qmp_delvm command migration: improve error reporting for hmp_loadvm qmp: create QMP implementation of loadvm command include/sysemu/sysemu.h | 2 +- migration/savevm.c | 100 +++++++++++++++++++++++++++++++----------------- monitor.c | 7 +++- qapi-schema.json | 39 +++++++++++++++++++ qmp-commands.hx | 71 ++++++++++++++++++++++++++++++++++ vl.c | 5 ++- 6 files changed, 185 insertions(+), 39 deletions(-) -- 2.5.0