Message ID | 20230117171416.2715125-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1880233wrn; Tue, 17 Jan 2023 09:19:33 -0800 (PST) X-Google-Smtp-Source: AMrXdXvrH6VsDXPn1ZD0Nr+H7kZDBJbu4wN0mS1agfYdufc9+66NRwIwAN5vSWcCZqj37eAeI+Rp X-Received: by 2002:a05:6a20:b71c:b0:b4:f66a:99a9 with SMTP id fg28-20020a056a20b71c00b000b4f66a99a9mr3054356pzb.60.1673975973163; Tue, 17 Jan 2023 09:19:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673975973; cv=none; d=google.com; s=arc-20160816; b=vXp57H5akDsrjPtUxIEHJ0S2LkRAqmlz5iRU+ehmQBmFReCBfMrBOhAyX1SjZY023D RNsAHxO2OTCeHn2wiwOhg9bLxZbEy3T2ux9nCC4yW1AXnZg8yMVy3GBz/x4FxkNvgGWM RPIYcamcB10y7cE6ia8R4FVBU8tJ6A8fmZhORc4Hfy2e03HyuRXI6z9JEZQfVX/K9smO KpQdReiP0tCf36GSrVq1X5M52xPyPJzaAuHG5Gp6AYQjWxnAfd3j6ocSYwm2SZhqDaQh 0PxFx37WPK/stpyQAqz+vQPp2Jtzx0ANi/K2xnRcHqnVkADTWjnyIfCg/kLx7SXbiktE bqOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IB5ezUyqM67L8ga18FlnpjueYKqDIVGN0gPiNPsh4II=; b=dlKStnMk+tpL2pFK+prcMOu8NXlzT0j/vU5Lys7EK1Cm4CDb2Nl9cai6lupyzaASzL FyRbSIu0HaOQugytUC+IZ+zCTJY2SnLHqw+PFPo2641hgJhm6+EHOmpCuL3JOTAytyvI KrDdFJ9Z29PqrsSJbew7JBJdV8OT43EheKqpVBGLYYKIRPqA2FVPrsY/x50Hp7b0uUe2 qaq5uvCiMzv9EzPQXolLikYAH+QxY2jubHRCHRU7YNK7N/aXEUfXDj98cKT431wJVgD9 luTHnfb3KmLA0x07nbJX1RVvV6ZekgwqaciVM24BBRfXgBY2bHY6QLHDomoIHaQxtRgD tDHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kE8CMM3y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi8-20020a17090b4b4800b00229c1a4a338si40489pjb.106.2023.01.17.09.19.20; Tue, 17 Jan 2023 09:19:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kE8CMM3y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233968AbjAQRPw (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Tue, 17 Jan 2023 12:15:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234256AbjAQRPQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 17 Jan 2023 12:15:16 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEF2E4995E for <linux-kernel@vger.kernel.org>; Tue, 17 Jan 2023 09:14:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 834CFB812A2 for <linux-kernel@vger.kernel.org>; Tue, 17 Jan 2023 17:14:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E857CC433D2; Tue, 17 Jan 2023 17:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673975659; bh=0RA5VQ07f/HrBMWCFsrbNWImIYN8yY1W6+rD/bVFEv0=; h=From:To:Cc:Subject:Date:From; b=kE8CMM3yw6tB/dFlycLo5y1IEGrN1ZcuNNP6hupsCPE8UKaOkfnMwVt9nt+PxOypi 9Rsbcsd4Fe2OzsZyBU1ijgqEBI8P8ISC9TKLWmmnp61rza/PFRHDmE6mem4KUlVZX4 mG+Jzga7khG/MzhNs4o3UyMDSKpTkJW2OsCiCq7LTnq5YJICrfIm5mCZLbfx2FpYJF nNabNAtN0L+edaQKjCyZL6GYu6XB0S1/9wOr5iTcFNTP4zOzXNAUlOSO4q7nbMk703 zVFTfuYTm+aMxH/1uA4nu7zn41Ltk4pMBojaxR871iQ8hg+0lzcMfnKm+5F9tYv8B6 ownfd8RjQrBTw== From: Arnd Bergmann <arnd@kernel.org> To: Tom Lendacky <thomas.lendacky@amd.com>, Borislav Petkov <bp@suse.de> Cc: Arnd Bergmann <arnd@arndb.de>, Brijesh Singh <brijesh.singh@amd.com>, linux-kernel@vger.kernel.org Subject: [PATCH] virt: sevguest: add CONFIG_CRYPTO dependency Date: Tue, 17 Jan 2023 18:13:56 +0100 Message-Id: <20230117171416.2715125-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755291029975344023?= X-GMAIL-MSGID: =?utf-8?q?1755291029975344023?= |
Series |
virt: sevguest: add CONFIG_CRYPTO dependency
|
|
Commit Message
Arnd Bergmann
Jan. 17, 2023, 5:13 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> This driver fails to link when CRYPTO is disabled, or in a loadable module: WARNING: unmet direct dependencies detected for CRYPTO_GCM WARNING: unmet direct dependencies detected for CRYPTO_AEAD2 Depends on [m]: CRYPTO [=m] Selected by [y]: - SEV_GUEST [=y] && VIRT_DRIVERS [=y] && AMD_MEM_ENCRYPT [=y] x86_64-linux-ld: crypto/aead.o: in function `crypto_register_aeads': Fixes: d63670d23e60 ("virt: sevguest: Rename the sevguest dir and files to sev-guest") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/virt/coco/sev-guest/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On 1/17/23 11:13, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > This driver fails to link when CRYPTO is disabled, or in a loadable module: > > WARNING: unmet direct dependencies detected for CRYPTO_GCM > WARNING: unmet direct dependencies detected for CRYPTO_AEAD2 > Depends on [m]: CRYPTO [=m] > Selected by [y]: > - SEV_GUEST [=y] && VIRT_DRIVERS [=y] && AMD_MEM_ENCRYPT [=y] > > x86_64-linux-ld: crypto/aead.o: in function `crypto_register_aeads': > > Fixes: d63670d23e60 ("virt: sevguest: Rename the sevguest dir and files to sev-guest") This has been present from when the driver was first added, so I think the correct Fixes: tag should be: Fixes: fce96cf04430 ("virt: Add SEV-SNP guest driver") Correct? Thanks, Tom > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > drivers/virt/coco/sev-guest/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/virt/coco/sev-guest/Kconfig b/drivers/virt/coco/sev-guest/Kconfig > index f9db0799ae67..da2d7ca531f0 100644 > --- a/drivers/virt/coco/sev-guest/Kconfig > +++ b/drivers/virt/coco/sev-guest/Kconfig > @@ -2,6 +2,7 @@ config SEV_GUEST > tristate "AMD SEV Guest driver" > default m > depends on AMD_MEM_ENCRYPT > + select CRYPTO > select CRYPTO_AEAD2 > select CRYPTO_GCM > help
Updating email for Boris. On 1/17/23 11:26, Tom Lendacky wrote: > On 1/17/23 11:13, Arnd Bergmann wrote: >> From: Arnd Bergmann <arnd@arndb.de> >> >> This driver fails to link when CRYPTO is disabled, or in a loadable module: >> >> WARNING: unmet direct dependencies detected for CRYPTO_GCM >> WARNING: unmet direct dependencies detected for CRYPTO_AEAD2 >> Depends on [m]: CRYPTO [=m] >> Selected by [y]: >> - SEV_GUEST [=y] && VIRT_DRIVERS [=y] && AMD_MEM_ENCRYPT [=y] >> >> x86_64-linux-ld: crypto/aead.o: in function `crypto_register_aeads': >> >> Fixes: d63670d23e60 ("virt: sevguest: Rename the sevguest dir and files >> to sev-guest") > > This has been present from when the driver was first added, so I think the > correct Fixes: tag should be: > > Fixes: fce96cf04430 ("virt: Add SEV-SNP guest driver") > > Correct? > > Thanks, > Tom > >> Signed-off-by: Arnd Bergmann <arnd@arndb.de> >> --- >> drivers/virt/coco/sev-guest/Kconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/virt/coco/sev-guest/Kconfig >> b/drivers/virt/coco/sev-guest/Kconfig >> index f9db0799ae67..da2d7ca531f0 100644 >> --- a/drivers/virt/coco/sev-guest/Kconfig >> +++ b/drivers/virt/coco/sev-guest/Kconfig >> @@ -2,6 +2,7 @@ config SEV_GUEST >> tristate "AMD SEV Guest driver" >> default m >> depends on AMD_MEM_ENCRYPT >> + select CRYPTO >> select CRYPTO_AEAD2 >> select CRYPTO_GCM >> help
diff --git a/drivers/virt/coco/sev-guest/Kconfig b/drivers/virt/coco/sev-guest/Kconfig index f9db0799ae67..da2d7ca531f0 100644 --- a/drivers/virt/coco/sev-guest/Kconfig +++ b/drivers/virt/coco/sev-guest/Kconfig @@ -2,6 +2,7 @@ config SEV_GUEST tristate "AMD SEV Guest driver" default m depends on AMD_MEM_ENCRYPT + select CRYPTO select CRYPTO_AEAD2 select CRYPTO_GCM help