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.
Signed-off-by: "Denis V. Lunev" <address@hidden>
CC: Juan Quintela <address@hidden>
CC: Amit Shah <address@hidden>
CC: Markus Armbruster <address@hidden>
CC: Eric Blake <address@hidden>
Changes from v1:
- cosmetic fixes suggested by Markus. I pray I have added all of
them :)
- patch 5 is rewritten completely. Original one was deadbeaf
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(-)