From nobody Wed Nov 27 04:41:26 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1701706248; cv=none; d=zohomail.com; s=zohoarc; b=dattNB7Pqh+WxdBv5oEiEvvQtoVQraiPlOhAr5yFsCNtwSL+hR0pyjotLbc4jqWhtVowKuJ2zcMkZ4w2wqmPVhKGiaOAFH6uHQQ+f1gd/78/YWiOormK/Ym7LGWiIOWmhNF2rWG0KmWiY5u6HPDqV9XHQz1K0p9J/ojAybl/BA4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1701706248; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dBpAjTXt7ctAaHcqbiNioxefPHK0eHAWmtGb+772ldc=; b=OYChnzVleHVjDYC5kqLxUAHN+8EEgKs2cObTT7O53ctaBsEkDDGH3BIHam8lFFn+bH1CJNvh9F7xdDyB+B3tNh5kgxZ3r2qipxoHS646c80c1rgw5k2U8mXGaWKvQCNTc4sLAhlGCivMdqhoScdOtNMk5LBNU5vO42GcG0PlQIg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1701706248564241.95564625391023; Mon, 4 Dec 2023 08:10:48 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rABVL-0006sq-HQ; Mon, 04 Dec 2023 11:09:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rABVK-0006sX-F6 for qemu-devel@nongnu.org; Mon, 04 Dec 2023 11:09:06 -0500 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rABVH-0005Ij-S6 for qemu-devel@nongnu.org; Mon, 04 Dec 2023 11:09:06 -0500 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6cb74a527ceso3263592b3a.2 for ; Mon, 04 Dec 2023 08:07:03 -0800 (PST) Received: from localhost.localdomain ([125.71.95.66]) by smtp.gmail.com with ESMTPSA id m17-20020aa78a11000000b006be4bb0d2dcsm7993064pfa.149.2023.12.04.08.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 08:07:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartx-com.20230601.gappssmtp.com; s=20230601; t=1701706022; x=1702310822; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dBpAjTXt7ctAaHcqbiNioxefPHK0eHAWmtGb+772ldc=; b=cwDshzxW/ZakmLRNGti5JYkx5n/VKc92H1PT6wmX77iLynEIgyxmIT5Pb+Cxw86jDW a89+hqbB2qYPJ+lZgsCDluXqW4goe+Q1HBbGaeICEDEXmEQgqzsx1p0i6Lf4r8BBZ+xz gzOSQGuqG8XcPwHa4g+uxUa/BYga4mnhIsFBt28wW01CjS5CQBGiGBwOe1uBgTQ3JNsf XI+n+FeqCLbK+Bqtp+BXd9SCQan9HQaBtww85F34SK3CV3vfwIXJ3yeZeCQA8qXfebGy SpOTPY6mxdeSfIHWtqtJWBE65av42PHqJq3fDDuQuD21tGrhhvFu4O9REsrOgxgSCpVK vHrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701706022; x=1702310822; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dBpAjTXt7ctAaHcqbiNioxefPHK0eHAWmtGb+772ldc=; b=lYimtJAv90sZou0jtY18qcyA76q59pWD2rAWWVjYbBNARKkAGbo2hRnybEOeSJsaZr B0PACK44bBg8J2RFRQT21wyoHPyeLXnF3zagucneVO1H35/enTx9uXFst1YXJVq6bty6 1eYS62zeqfKA/v7ABlu3DD8bB9vqLL3Wi6tnTZ5xfPB/EUBiXjNdW3jShZohh8Gsas66 JMZkBdQA3cfMSG/Xex1Iy4iFYAS+wpW7l2Uy7ePOeUvaF2ZvELYQolBGC+ZTweEJdkZV J/kcbiirvhyGDwon9YG6JUAmZO1nJiT76sSA0xIYaNZBSj6M/KnSupcupZIhqPiYvMql NMBg== X-Gm-Message-State: AOJu0YxCaHxSPeXGZiMbW6B7vSMogyRqsC8Cyy64VjZZxQQgGQi2z4QX 6MIzOh2rHAZ0FSAZiIcF6onXORn+hCD7UjeL7FulLuCq X-Google-Smtp-Source: AGHT+IF/iF39mUbJyVW230AwrwMvDurk5qEhqfiEn6sYlLr8Gfn5PjzFt90U7IRxokhohLAZTq1koQ== X-Received: by 2002:aa7:8893:0:b0:6ce:7d6:c317 with SMTP id z19-20020aa78893000000b006ce07d6c317mr4757527pfe.15.1701706021959; Mon, 04 Dec 2023 08:07:01 -0800 (PST) From: Hyman Huang To: qemu-devel@nongnu.org Cc: Kevin Wolf , Hanna Reitz , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Eric Blake , Markus Armbruster , yong.huang@smartx.com Subject: [RFC 6/8] crypto: Provide the Luks crypto driver to Gluks Date: Tue, 5 Dec 2023 00:06:23 +0800 Message-Id: <4ff114944abe5e1d90933e715ee245cea5d619fd.1701705003.git.yong.huang@smartx.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::42d; envelope-from=yong.huang@smartx.com; helo=mail-pf1-x42d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @smartx-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1701706250238100003 Content-Type: text/plain; charset="utf-8" Hooks up the Luks crypto driver for Gluks. Signed-off-by: Hyman Huang --- crypto/block.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/block.c b/crypto/block.c index 3dcf22a69f..7e695c0a04 100644 --- a/crypto/block.c +++ b/crypto/block.c @@ -27,6 +27,7 @@ static const QCryptoBlockDriver *qcrypto_block_drivers[] =3D { [Q_CRYPTO_BLOCK_FORMAT_QCOW] =3D &qcrypto_block_driver_qcow, [Q_CRYPTO_BLOCK_FORMAT_LUKS] =3D &qcrypto_block_driver_luks, + [Q_CRYPTO_BLOCK_FORMAT_GLUKS] =3D &qcrypto_block_driver_luks, }; =20 =20 --=20 2.39.1