From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH] Use 'imply' with SEV Kconfig CRYPTO dependencies Date: Tue, 19 Jun 2018 11:46:58 +0200 Message-ID: <20180619094658.GB31750@zn.tnic> References: <1526915573-22917-1-git-send-email-Janakarajan.Natarajan@amd.com> <20180523144621.GB25143@pd.tnic> <4f565a11-9e99-b861-06d2-b42922e44c7a@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Richard Weinberger , Janakarajan Natarajan , Tom Lendacky , x86@kernel.org, kvm , LKML , Paolo Bonzini , Radim Krcmar , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , felix@feldspaten.org To: Brijesh Singh Return-path: Content-Disposition: inline In-Reply-To: <4f565a11-9e99-b861-06d2-b42922e44c7a@amd.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Thu, Jun 14, 2018 at 07:08:26AM -0500, Brijesh Singh wrote: > I think depends should look like this: > > config KVM_AMD_SEV >     def_bool y >     bool "AMD Secure Encrypted Virtualization (SEV) support" >     depends KVM_AMD && X86_64 >     depends CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m) CRYPTO_DEV_CCP_DD - this still doesn't belong here. KVM_AMD_SEV doesn't care about what kind of functionality the PSP needs to function and select it - it should only depend on a single symbol. Now, you can add a separate CRYPTO .config item which collects all required functionality for SEV guests and have KVM_AMD_SEV depend on that. Or a similar solution. But not have KVM_AMD_SEV poke into CRYPTO...PSP dependencies because it doesn't need to know about it. Thx. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --