From patchwork Thu Jan 11 19:52:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Wolf X-Patchwork-Id: 859280 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zHc5m2PdDz9s9Y for ; Fri, 12 Jan 2018 06:54:20 +1100 (AEDT) Received: from localhost ([::1]:37861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZiva-0005Up-CT for incoming@patchwork.ozlabs.org; Thu, 11 Jan 2018 14:54:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZiuN-00050e-1V for qemu-devel@nongnu.org; Thu, 11 Jan 2018 14:53:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZiuM-0000Av-9W for qemu-devel@nongnu.org; Thu, 11 Jan 2018 14:53:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56038) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZiuK-00008n-3S; Thu, 11 Jan 2018 14:53:00 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1A16576520; Thu, 11 Jan 2018 19:52:59 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.118.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 539EB1715B; Thu, 11 Jan 2018 19:52:51 +0000 (UTC) From: Kevin Wolf To: qemu-block@nongnu.org Date: Thu, 11 Jan 2018 20:52:17 +0100 Message-Id: <20180111195225.4226-3-kwolf@redhat.com> In-Reply-To: <20180111195225.4226-1-kwolf@redhat.com> References: <20180111195225.4226-1-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 11 Jan 2018 19:52:59 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [RFC PATCH 02/10] block/qapi: Add qcow2 create options to schema X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, pkrempa@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Kevin Wolf --- qapi/block-core.json | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index 1749376c61..9341f6708d 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -3320,6 +3320,37 @@ { 'command': 'blockdev-del', 'data': { 'node-name': 'str' } } ## +# @BlockdevQcow2CompatLevel: +# @0_10: The original QCOW2 format as introduced in qemu 0.10 (version 2) +# @1_1: The extended QCOW2 format as introduced in qemu 1.1 (version 3) +# +# Since: 2.10 +## +{ 'enum': 'BlockdevQcow2CompatLevel', + 'data': [ '0_10', '1_1' ] } + + +## +# @BlockdevCreateOptionsQcow2: +# +# Driver specific image creation options for qcow2. +# +# TODO Describe fields +# +# Since: 2.12 +## +{ 'struct': 'BlockdevCreateOptionsQcow2', + 'data': { 'size': 'size', + '*compat': 'BlockdevQcow2CompatLevel', + '*backing-file': 'str', + '*backing-fmt': 'BlockdevDriver', + '*encrypt': 'QCryptoBlockCreateOptions', + '*cluster-size': 'size', + '*preallocation': 'PreallocMode', + '*lazy-refcounts': 'bool', + '*refcount-bits': 'int' } } + +## # @BlockdevCreateDummy: # # FIXME To be removed. Only there to make the QAPI generator happy while we're @@ -3365,7 +3396,7 @@ 'null-aio': 'BlockdevCreateDummy', 'null-co': 'BlockdevCreateDummy', 'parallels': 'BlockdevCreateDummy', - 'qcow2': 'BlockdevCreateDummy', + 'qcow2': 'BlockdevCreateOptionsQcow2', 'qcow': 'BlockdevCreateDummy', 'qed': 'BlockdevCreateDummy', 'quorum': 'BlockdevCreateDummy',