From patchwork Thu Jan 30 17:29:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 11358485 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E7A3112B for ; Thu, 30 Jan 2020 17:37:36 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 52F1120707 for ; Thu, 30 Jan 2020 17:37:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cK8+CFaR" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 52F1120707 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:36954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixDl0-00032I-AK for patchwork-qemu-devel@patchwork.kernel.org; Thu, 30 Jan 2020 12:37:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47136) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixDdg-0007tu-Ce for qemu-devel@nongnu.org; Thu, 30 Jan 2020 12:30:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixDdb-0008Ln-QR for qemu-devel@nongnu.org; Thu, 30 Jan 2020 12:30:00 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:58721 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixDdb-0008Je-KL for qemu-devel@nongnu.org; Thu, 30 Jan 2020 12:29:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580405395; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rkB9ZEa0m8XBFo3M3uPzZ3ujCfkv9rb9bOzu/2URZaI=; b=cK8+CFaR+4rGKDlq5iemZm6T9bTxrcFyrvhmed2okhdHJZBxhpJ1XSGZ2oHjQWlH4rag+x +foMQYa5GH2Duy7x1I2OyzYlEhOYDntQvyc07ISWql51ECDdQQlJLpunQOwvUfy29HCQsm XQJejqEnlPXv8d2FOE4uoxmOCOBuRHU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-378-tgb7e4wpMlGjuhNo8SR8jA-1; Thu, 30 Jan 2020 12:29:52 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D84BF800D41; Thu, 30 Jan 2020 17:29:51 +0000 (UTC) Received: from maximlenovopc.usersys.redhat.com (unknown [10.35.206.78]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9F2D75D9E5; Thu, 30 Jan 2020 17:29:49 +0000 (UTC) From: Maxim Levitsky To: qemu-devel@nongnu.org Subject: [PATCH v2 08/14] block/qcow2: extend qemu-img amend interface with crypto options Date: Thu, 30 Jan 2020 19:29:13 +0200 Message-Id: <20200130172919.13424-9-mlevitsk@redhat.com> In-Reply-To: <20200130172919.13424-1-mlevitsk@redhat.com> References: <20200130172919.13424-1-mlevitsk@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: tgb7e4wpMlGjuhNo8SR8jA-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , qemu-block@nongnu.org, John Snow , Markus Armbruster , Max Reitz , Maxim Levitsky Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" Now that we have all the infrastructure in place, wire it in the qcow2 driver and expose this to the user. Signed-off-by: Maxim Levitsky --- block/qcow2.c | 83 +++++++++-- tests/qemu-iotests/082.out | 288 +++++++++++++++++++++++++++++++++++++ 2 files changed, 360 insertions(+), 11 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index b1a03a56a5..59c8a772cc 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -173,6 +173,19 @@ static ssize_t qcow2_crypto_hdr_write_func(QCryptoBlock *block, size_t offset, return ret; } +static QDict* +qcow2_extract_crypto_opts(QemuOpts *opts, const char *fmt, Error **errp) +{ + QDict *cryptoopts_qdict; + QDict *opts_qdict; + + /* Extract "encrypt." options into a qdict */ + opts_qdict = qemu_opts_to_qdict(opts, NULL); + qdict_extract_subqdict(opts_qdict, &cryptoopts_qdict, "encrypt."); + qobject_unref(opts_qdict); + qdict_put_str(cryptoopts_qdict, "format", "luks"); + return cryptoopts_qdict; +} /* * read qcow2 extension and fill bs @@ -4620,20 +4633,18 @@ static ssize_t qcow2_measure_crypto_hdr_write_func(QCryptoBlock *block, static bool qcow2_measure_luks_headerlen(QemuOpts *opts, size_t *len, Error **errp) { - QDict *opts_qdict; - QDict *cryptoopts_qdict; QCryptoBlockCreateOptions *cryptoopts; + QDict *crypto_opts_dict; QCryptoBlock *crypto; - /* Extract "encrypt." options into a qdict */ - opts_qdict = qemu_opts_to_qdict(opts, NULL); - qdict_extract_subqdict(opts_qdict, &cryptoopts_qdict, "encrypt."); - qobject_unref(opts_qdict); + crypto_opts_dict = qcow2_extract_crypto_opts(opts, "luks", errp); + if (!crypto_opts_dict) { + return false; + } + + cryptoopts = block_crypto_create_opts_init(crypto_opts_dict, errp); + qobject_unref(crypto_opts_dict); - /* Build QCryptoBlockCreateOptions object from qdict */ - qdict_put_str(cryptoopts_qdict, "format", "luks"); - cryptoopts = block_crypto_create_opts_init(cryptoopts_qdict, errp); - qobject_unref(cryptoopts_qdict); if (!cryptoopts) { return false; } @@ -5072,6 +5083,7 @@ typedef enum Qcow2AmendOperation { QCOW2_NO_OPERATION = 0, QCOW2_UPGRADING, + QCOW2_UPDATING_ENCRYPTION, QCOW2_CHANGING_REFCOUNT_ORDER, QCOW2_DOWNGRADING, } Qcow2AmendOperation; @@ -5153,6 +5165,7 @@ static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts, int ret; QemuOptDesc *desc = opts->list->desc; Qcow2AmendHelperCBInfo helper_cb_info; + bool encryption_update = false; while (desc && desc->name) { if (!qemu_opt_find(opts, desc->name)) { @@ -5179,6 +5192,18 @@ static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts, backing_file = qemu_opt_get(opts, BLOCK_OPT_BACKING_FILE); } else if (!strcmp(desc->name, BLOCK_OPT_BACKING_FMT)) { backing_format = qemu_opt_get(opts, BLOCK_OPT_BACKING_FMT); + } else if (g_str_has_prefix(desc->name, "encrypt.")) { + if (!s->crypto) { + error_setg(errp, + "Can't amend encryption options - encryption not present"); + return -EINVAL; + } + if (s->crypt_method_header != QCOW_CRYPT_LUKS) { + error_setg(errp, + "Only LUKS encryption options can be amended"); + return -ENOTSUP; + } + encryption_update = true; } else if (!strcmp(desc->name, BLOCK_OPT_LAZY_REFCOUNTS)) { lazy_refcounts = qemu_opt_get_bool(opts, BLOCK_OPT_LAZY_REFCOUNTS, lazy_refcounts); @@ -5221,7 +5246,8 @@ static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts, .original_status_cb = status_cb, .original_cb_opaque = cb_opaque, .total_operations = (new_version != old_version) - + (s->refcount_bits != refcount_bits) + + (s->refcount_bits != refcount_bits) + + (encryption_update == true) }; /* Upgrade first (some features may require compat=1.1) */ @@ -5234,6 +5260,33 @@ static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts, } } + if (encryption_update) { + QDict *amend_opts_dict; + QCryptoBlockAmendOptions *amend_opts; + + helper_cb_info.current_operation = QCOW2_UPDATING_ENCRYPTION; + amend_opts_dict = qcow2_extract_crypto_opts(opts, "luks", errp); + if (!amend_opts_dict) { + return -EINVAL; + } + amend_opts = block_crypto_amend_opts_init(amend_opts_dict, errp); + qobject_unref(amend_opts_dict); + if (!amend_opts) { + return -EINVAL; + } + ret = qcrypto_block_amend_options(s->crypto, + qcow2_crypto_hdr_read_func, + qcow2_crypto_hdr_write_func, + bs, + amend_opts, + force, + errp); + qapi_free_QCryptoBlockAmendOptions(amend_opts); + if (ret < 0) { + return ret; + } + } + if (s->refcount_bits != refcount_bits) { int refcount_order = ctz32(refcount_bits); @@ -5488,6 +5541,14 @@ static QemuOptsList qcow2_amend_opts = { .name = "qcow2-amend-opts", .head = QTAILQ_HEAD_INITIALIZER(qcow2_amend_opts.head), .desc = { + BLOCK_CRYPTO_OPT_DEF_LUKS_KEYSLOT_UPDATE("encrypt.keys.0."), + BLOCK_CRYPTO_OPT_DEF_LUKS_KEYSLOT_UPDATE("encrypt.keys.1."), + BLOCK_CRYPTO_OPT_DEF_LUKS_KEYSLOT_UPDATE("encrypt.keys.2."), + BLOCK_CRYPTO_OPT_DEF_LUKS_KEYSLOT_UPDATE("encrypt.keys.3."), + BLOCK_CRYPTO_OPT_DEF_LUKS_KEYSLOT_UPDATE("encrypt.keys.4."), + BLOCK_CRYPTO_OPT_DEF_LUKS_KEYSLOT_UPDATE("encrypt.keys.5."), + BLOCK_CRYPTO_OPT_DEF_LUKS_KEYSLOT_UPDATE("encrypt.keys.6."), + BLOCK_CRYPTO_OPT_DEF_LUKS_KEYSLOT_UPDATE("encrypt.keys.7."), QCOW_COMMON_OPTIONS, { /* end of list */ } } diff --git a/tests/qemu-iotests/082.out b/tests/qemu-iotests/082.out index c68458da8c..56461267e3 100644 --- a/tests/qemu-iotests/082.out +++ b/tests/qemu-iotests/082.out @@ -620,6 +620,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size @@ -631,6 +663,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size @@ -642,6 +706,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size @@ -653,6 +749,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size @@ -664,6 +792,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size @@ -675,6 +835,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size @@ -686,6 +878,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size @@ -697,6 +921,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size @@ -725,6 +981,38 @@ Amend options for 'qcow2': compat= - Compatibility level (v2 [0.10] or v3 [1.1]) data_file= - File name of an external data file data_file_raw= - The external data file must stay valid as a raw image + encrypt.keys.0.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.0.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.0.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.0.old-secret= - Select all keyslots that match this password + encrypt.keys.1.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.1.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.1.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.1.old-secret= - Select all keyslots that match this password + encrypt.keys.2.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.2.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.2.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.2.old-secret= - Select all keyslots that match this password + encrypt.keys.3.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.3.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.3.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.3.old-secret= - Select all keyslots that match this password + encrypt.keys.4.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.4.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.4.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.4.old-secret= - Select all keyslots that match this password + encrypt.keys.5.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.5.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.5.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.5.old-secret= - Select all keyslots that match this password + encrypt.keys.6.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.6.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.6.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.6.old-secret= - Select all keyslots that match this password + encrypt.keys.7.iter-time= - Time to spend in PBKDF in milliseconds + encrypt.keys.7.keyslot= - Select a single keyslot to modify explicitly + encrypt.keys.7.new-secret= - New secret to set in the matching keyslots. Empty string to erase + encrypt.keys.7.old-secret= - Select all keyslots that match this password lazy_refcounts= - Postpone refcount updates refcount_bits= - Width of a reference count entry in bits size= - Virtual disk size