Received: from eggs.gnu.org ([2001:4830:134:3::10]:40134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUEkT-0007Dk-Na for qemu-devel@nongnu.org; Tue, 25 Aug 2015 09:58:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUEkO-0006Sm-Nb for qemu-devel@nongnu.org; Tue, 25 Aug 2015 09:58:49 -0400 Date: Tue, 25 Aug 2015 16:57:53 +0300 From: Alberto Garcia Message-ID: <20150825135753.GA19764@perseus.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] Creating snapshots with specific runtime options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Stefan Hajnoczi As far as I can see there's no way to create a snapshot and either a) inherit the runtime options from the original image b) specify a new set of options This comment in external_snapshot_prepare() before calling bdrv_open() suggests that the problem is known but the discussion was postponed. /* TODO Inherit bs->options or only take explicit options with an * extended QMP command? */ I would like to retake this and make it possible. I discussed it briefly with Stefan on IRC and he said that Kevin might have some ideas. In principle extending the QMP command sounds as simple as adding 'options': 'BlockdevOptions' to 'blockdev-snapshot-sync', but it's surely more complicated than that :) Is the 'BlockdevOptions' API even stable? Berto