From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-by2nam03on0076.outbound.protection.outlook.com ([104.47.42.76] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNffG-0003hw-6e for kexec@lists.infradead.org; Wed, 21 Jun 2017 13:27:23 +0000 Subject: Re: [PATCH v7 06/36] x86/mm: Add Secure Memory Encryption (SME) support References: <20170616184947.18967.84890.stgit@tlendack-t1.amdoffice.net> <20170616185054.18967.52228.stgit@tlendack-t1.amdoffice.net> From: Tom Lendacky Message-ID: Date: Wed, 21 Jun 2017 08:26:44 -0500 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Thomas Gleixner Cc: linux-efi@vger.kernel.org, Brijesh Singh , Toshimitsu Kani , linux-doc@vger.kernel.org, Matt Fleming , x86@kernel.org, linux-mm@kvack.org, =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Alexander Potapenko , "H. Peter Anvin" , Larry Woodman , linux-arch@vger.kernel.org, kvm@vger.kernel.org, Jonathan Corbet , Joerg Roedel , "Michael S. Tsirkin" , kasan-dev@googlegroups.com, Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Konrad Rzeszutek Wilk , Borislav Petkov , Andy Lutomirski , Boris Ostrovsky , Dmitry Vyukov , Juergen Gross , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, xen-devel@lists.xen.org, iommu@lists.linux-foundation.org, Paolo Bonzini On 6/20/2017 3:49 PM, Thomas Gleixner wrote: > On Fri, 16 Jun 2017, Tom Lendacky wrote: >> >> +config ARCH_HAS_MEM_ENCRYPT >> + def_bool y >> + depends on X86 > > That one is silly. The config switch is in the x86 KConfig file, so X86 is > on. If you intended to move this to some generic place outside of > x86/Kconfig then this should be > > config ARCH_HAS_MEM_ENCRYPT > bool > > and x86/Kconfig should have > > select ARCH_HAS_MEM_ENCRYPT > > and that should be selected by AMD_MEM_ENCRYPT This is used for deciding whether to include the asm/mem_encrypt.h file so it needs to be on whether AMD_MEM_ENCRYPT is configured or not. I'll leave it in the x86/Kconfig file and remove the depends on line. Thanks, Tom > >> +config AMD_MEM_ENCRYPT >> + bool "AMD Secure Memory Encryption (SME) support" >> + depends on X86_64 && CPU_SUP_AMD >> + ---help--- >> + Say yes to enable support for the encryption of system memory. >> + This requires an AMD processor that supports Secure Memory >> + Encryption (SME). > > Thanks, > > tglx > _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec