Here's my first attempt to solve the problem explained here: https://lists.gnu.org/archive/html/qemu-devel/2015-08/msg02847.html
In short: there's no way to pass options to snapshots created using blockdev-snapshot-sync. This patch simply allows passing a BlockdevOptions structure to that command. I'm not 100% happy with the API because there's some overlap with a couple of parameters, but it's the simplest I could think of. This need to be applied on top of this series from Max Reitz: https://lists.gnu.org/archive/html/qemu-block/2015-08/msg00189.html Regards, Berto Alberto Garcia (1): block: Allow passing BlockdevOptions to blockdev-snapshot-sync blockdev.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++------ hmp.c | 2 +- qapi/block-core.json | 9 +++++++- qmp-commands.hx | 3 ++- 4 files changed, 64 insertions(+), 9 deletions(-) -- 2.5.0