Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1013056imu; Fri, 7 Dec 2018 12:36:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/W4U2haSgDWzpdtt8nE71ANSqonqSVG9Z+eYqjNz+nLSx7v7jbzsvENMO/8olAw7l/mp2mO X-Received: by 2002:a17:902:bf44:: with SMTP id u4mr3516808pls.5.1544215010388; Fri, 07 Dec 2018 12:36:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544215010; cv=none; d=google.com; s=arc-20160816; b=gHjSs95C2gzZO23rqseKSPpxo3caRsDeT3v3vx70v5XLnTj3rEdjOWdtPxiJsA2Kzv fYYeC2zZ4mBTuBZVh8i0YJDgjISvac2/w/W2eX5kJtt3YYhB2PuFmAD72Oin/oOk3y97 fmC1dmF15FEL0ZfZy4yMrBcBQHIVxW++DNxWyDUszYQW2605CrpQYIn3403XZkA6qIo7 DlgvDdn7YqupNODlktnNO8vq4u7YEDKIuZzT8yhSAYRHxWkHoCcS2/g1VJmZSg52OVmG 1IQl2aG9eepdU7h0PhBVeIGfw0cAiHrDw48Zv+25TUF5Bc9lfIGwCYt91shdyf8127Vv S9AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=z/4YSYiK+tmfxZ+kw/eW/xBwbLESNHGVYVvC/KjFYz8=; b=LoxrynlBbstDbN4I9hN1eAvRUdiSMEZoKltyNrvwgiMtK5XCMmwmy31qCxLbRIVU1k 1/vdMR8ZuvgBH4s3MbemOuHUpJwJnsNmsfKCJB2M3sfMSDPE86f37zgZrSL+dq8Zdwsq n35AM5rEvz3tSBRdicpWetH6wjAO5M+jJrE5zgjPNuiCXrtEDKR8ZHpK0WNXn2exW8vc ZdhFLUrKZNAjbicjBf6LIhLnOkeSXksk7EDpR+z2eaU7A6p8yEldwDcBt0NrkVHJJmG4 y+0V5lEKPUJN9X1j8cFiO3Nc1leTwOpjqcY5kZhrKkgqO7hsvbvXD4hbIPuZrUnyviHB CSLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si3655007pgl.25.2018.12.07.12.36.34; Fri, 07 Dec 2018 12:36:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726104AbeLGUf7 (ORCPT + 99 others); Fri, 7 Dec 2018 15:35:59 -0500 Received: from mga11.intel.com ([192.55.52.93]:44606 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbeLGUf6 (ORCPT ); Fri, 7 Dec 2018 15:35:58 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Dec 2018 12:35:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,327,1539673200"; d="scan'208";a="97045321" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.154]) by orsmga007.jf.intel.com with ESMTP; 07 Dec 2018 12:35:57 -0800 Date: Fri, 7 Dec 2018 12:35:57 -0800 From: Sean Christopherson To: Andy Lutomirski Cc: Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , X86 ML , Dave Hansen , Peter Zijlstra , "H. Peter Anvin" , LKML , Jarkko Sakkinen , Josh Triplett , linux-sgx@vger.kernel.org, haitao.huang@linux.intel.com, Jethro Beekman , "Dr. Greg Wettstein" Subject: Re: [RFC PATCH v2 4/4] x86/vdso: Add __vdso_sgx_enter_enclave() to wrap SGX enclave transitions Message-ID: <20181207203557.GF10404@linux.intel.com> References: <20181206221922.31012-1-sean.j.christopherson@intel.com> <20181206221922.31012-5-sean.j.christopherson@intel.com> <20181207165145.GB10404@linux.intel.com> <20181207190257.GC10404@linux.intel.com> <20181207200935.GE10404@linux.intel.com> <4CEB5945-9562-40FA-8CCA-A1675D55B001@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CEB5945-9562-40FA-8CCA-A1675D55B001@amacapital.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 07, 2018 at 12:16:59PM -0800, Andy Lutomirski wrote: > > > On Dec 7, 2018, at 12:09 PM, Sean Christopherson wrote: > > > > Speaking of preserving registers, the asm blob needs to mark RBX as > > clobbered since it's modified for EEXIT. > > Have fun with that. The x86_32 compiler seems to really like having its > PIC register preserved, and you may get some lovely compiler errors. Tagentinally related, as-is the SGX vDSO is only compiled for x86_64 since CONFIG_SGX depends on CONFIG_X86_64. Mapping the EPC in 32-bit mode complicates things and no one is asking for SGX support on 32-bit builds, so...