From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C08EC433DB for ; Tue, 16 Feb 2021 02:20:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 20B7664DE8 for ; Tue, 16 Feb 2021 02:20:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230134AbhBPCUP (ORCPT ); Mon, 15 Feb 2021 21:20:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:34332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbhBPCSX (ORCPT ); Mon, 15 Feb 2021 21:18:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7907364D9D; Tue, 16 Feb 2021 02:17:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613441859; bh=t2/RyPcw+8nihxel+p4teFq31WYwqiof5MQBpXMg0qg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YSGECTNlNpGhpBqq4dPuGaf5L13+59XbBp8/zHKWreHjjFFepypyS16pjxrPX6xOA AXEoo+2QHfohPzFEByXm73KFIwDNANoFZn2j0snzX0IWPowIlXEB+/+YcsboKHCBPk SLclgug/pPr+ZZ8kf4ZYCe5dr95lOKHBZs907gIaXW8A3w7bVDcXEQ6nAaExkLKe9h XBtorFiCIaLaVVuD/DLoaY4CZG/mQIpzqu2mG1mcDJZSZuG5VyDH8F38iFcOMTbZJy Dm9qtjmBROwb+TULuwrJK9UpShhxcScficZc93YY/m9lM7MjGycpkf3kc4GhLIuFfp Zz88UqrBWwILg== Date: Tue, 16 Feb 2021 04:17:26 +0200 From: Jarkko Sakkinen To: Kai Huang Cc: linux-sgx@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, seanjc@google.com, luto@kernel.org, dave.hansen@intel.com, rick.p.edgecombe@intel.com, haitao.huang@intel.com, pbonzini@redhat.com, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com Subject: Re: [RFC PATCH v5 08/26] x86/sgx: Expose SGX architectural definitions to the kernel Message-ID: References: <1d6fe6bd392b604091b57842c15cc5460aa92593.1613221549.git.kai.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d6fe6bd392b604091b57842c15cc5460aa92593.1613221549.git.kai.huang@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org On Sun, Feb 14, 2021 at 02:29:10AM +1300, Kai Huang wrote: > From: Sean Christopherson > > Expose SGX architectural structures, as KVM will use many of the > architectural constants and structs to virtualize SGX. > > Signed-off-by: Sean Christopherson > Acked-by: Dave Hansen > Acked-by: Jarkko Sakkinen > Signed-off-by: Kai Huang > --- > arch/x86/{kernel/cpu/sgx/arch.h => include/asm/sgx_arch.h} | 0 > arch/x86/kernel/cpu/sgx/encl.c | 2 +- > arch/x86/kernel/cpu/sgx/sgx.h | 2 +- > tools/testing/selftests/sgx/defines.h | 2 +- > 4 files changed, 3 insertions(+), 3 deletions(-) > rename arch/x86/{kernel/cpu/sgx/arch.h => include/asm/sgx_arch.h} (100%) > > diff --git a/arch/x86/kernel/cpu/sgx/arch.h b/arch/x86/include/asm/sgx_arch.h > similarity index 100% > rename from arch/x86/kernel/cpu/sgx/arch.h > rename to arch/x86/include/asm/sgx_arch.h Why not just sgx.h? The postfix is useless. /Jarkko