From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764327AbcINOlp (ORCPT ); Wed, 14 Sep 2016 10:41:45 -0400 Received: from mail.skyhub.de ([78.46.96.112]:44036 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751764AbcINOlk (ORCPT ); Wed, 14 Sep 2016 10:41:40 -0400 Date: Wed, 14 Sep 2016 16:41:39 +0200 From: Borislav Petkov To: Tom Lendacky Cc: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , Arnd Bergmann , Jonathan Corbet , Matt Fleming , Joerg Roedel , Konrad Rzeszutek Wilk , Andrey Ryabinin , Ingo Molnar , Andy Lutomirski , "H. Peter Anvin" , Paolo Bonzini , Alexander Potapenko , Thomas Gleixner , Dmitry Vyukov Subject: Re: [RFC PATCH v2 15/20] iommu/amd: AMD IOMMU support for memory encryption Message-ID: <20160914144139.GA9295@nazgul.tnic> References: <20160822223529.29880.50884.stgit@tlendack-t1.amdoffice.net> <20160822223820.29880.17752.stgit@tlendack-t1.amdoffice.net> <20160912114550.nwhtpmncwp22l7vy@pd.tnic> <27bc5c87-3a74-a1ee-55b1-7f19ec9cd6cc@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <27bc5c87-3a74-a1ee-55b1-7f19ec9cd6cc@amd.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 14, 2016 at 08:45:44AM -0500, Tom Lendacky wrote: > Currently, mem_encrypt.h only lives in the arch/x86 directory so it > wouldn't be able to be included here without breaking other archs. I'm wondering if it would be simpler to move only sme_me_mask to an arch-agnostic header just so that we save us all the code duplication. Hmmm. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [RFC PATCH v2 15/20] iommu/amd: AMD IOMMU support for memory encryption Date: Wed, 14 Sep 2016 16:41:39 +0200 Message-ID: <20160914144139.GA9295@nazgul.tnic> References: <20160822223529.29880.50884.stgit@tlendack-t1.amdoffice.net> <20160822223820.29880.17752.stgit@tlendack-t1.amdoffice.net> <20160912114550.nwhtpmncwp22l7vy@pd.tnic> <27bc5c87-3a74-a1ee-55b1-7f19ec9cd6cc@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <27bc5c87-3a74-a1ee-55b1-7f19ec9cd6cc@amd.com> Sender: linux-arch-owner@vger.kernel.org To: Tom Lendacky Cc: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , Arnd Bergmann , Jonathan Corbet , Matt Fleming , Joerg Roedel , Konrad Rzeszutek Wilk , Andrey Ryabinin , Ingo Molnar , Andy Lutomirski , "H. Peter Anvin" , Paolo Bonzini , Alexander Potapenko , Thomas Gleixner , Dmitry Vyukov List-Id: linux-efi@vger.kernel.org On Wed, Sep 14, 2016 at 08:45:44AM -0500, Tom Lendacky wrote: > Currently, mem_encrypt.h only lives in the arch/x86 directory so it > wouldn't be able to be included here without breaking other archs. I'm wondering if it would be simpler to move only sme_me_mask to an arch-agnostic header just so that we save us all the code duplication. Hmmm. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --