Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp840608ybk; Wed, 13 May 2020 14:43:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySMy4GGpWcnAClt3Hi3a102+5e1de5MJoaciyYnR5KvaUL79XVc0ePQVWgPqb+mJVWn6un X-Received: by 2002:a50:ee15:: with SMTP id g21mr1492281eds.170.1589406182552; Wed, 13 May 2020 14:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589406182; cv=none; d=google.com; s=arc-20160816; b=JyMMVi+EDxLgWGAXTIFgOdo3rZc3yP3MCtP7AUWKIqvkmaWX+4s1Lx6sBaP659PO6q 3wXevN6GNMenz+uPvlAkHvlU5TQd4aXOl8KqKa/dh1knr33M3Qp0JAWA1MdSFqmjaTxF O2MJ2doUEdBA4XFRC5opyt64tM4hcUrR6Oxk56cu+E9LutwRlkGZymBFHvAnh4tomXpJ 7Jxr0ImCj3/a8tiX+7+A9CzjPjLPsP0T+8U64dG0sDpZBoMlLfUONYO3mYtqOBL/8V2/ OkCXNalW3na8vyiN/lrg8IPVHt916zNiSDS6IR8TYd5LSsehk2gqokiLx5bw8TXF75jc 4qxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=7WDeQfL6OSh4PJtIcMj3EERVOxSiP4l3z14SvSCVbGQ=; b=l70n44d5n4VbCcPoyAi4fmXk8TFojKzUAWnoDNpUrIoGsesS0s+oDRuKsVo4CUSAc9 /jXnKrv8y2Qe5yTMCcps+fWRpLFVWBccTQnlYcjv8zIvu/1ikhUf7dTaZ7ol1B7VkP4G k2AH8Nrz7JhCpNgS04N+qSfCNGP7MAAyoQnf/pSzFMrj5Knf6QxzkFB55TrDcM5c94q9 NpQmz1xShYGmQV+sQxqEl43NgGm+KrLnHVeCAq23LON/ekuKK3X3k4vl/Wap6Ogfv5Az 3nz0bnuiAMpy4ImI+gCnv8FdGypPd/x3pAY7Mxk/7Hp6hNrnIjrNjshHj25m/Q+ZWdgN bcLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n5si594669ejd.88.2020.05.13.14.42.39; Wed, 13 May 2020 14:43:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729487AbgEMVlJ (ORCPT + 99 others); Wed, 13 May 2020 17:41:09 -0400 Received: from mga14.intel.com ([192.55.52.115]:26954 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729196AbgEMVlJ (ORCPT ); Wed, 13 May 2020 17:41:09 -0400 IronPort-SDR: C5qoFjMAOBoJlznbhAyz9uCQly+/8s2aTYXkcFHstfEWUCzUpxRMrOp/awP4JYc2HmCR0Xx/g1 KTRMm6XNSX8g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2020 14:41:08 -0700 IronPort-SDR: QDfsqhQI1vfkk52vEz67aeItZEtMsGebv+9WKFWpon6YL437ddc2q7JwZVC//VgPX6bh6DXwe5 DwWUGDG7bR0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,389,1583222400"; d="scan'208";a="251892299" Received: from rthurerx-mobl.ger.corp.intel.com (HELO localhost) ([10.249.36.107]) by fmsmga007.fm.intel.com with ESMTP; 13 May 2020 14:41:01 -0700 Date: Thu, 14 May 2020 00:40:59 +0300 From: Jarkko Sakkinen To: Sean Christopherson Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-sgx@vger.kernel.org, akpm@linux-foundation.org, dave.hansen@intel.com, nhorman@redhat.com, npmccallum@redhat.com, haitao.huang@intel.com, andriy.shevchenko@linux.intel.com, tglx@linutronix.de, kai.svahn@intel.com, bp@alien8.de, josh@joshtriplett.org, luto@kernel.org, kai.huang@intel.com, rientjes@google.com, cedric.xing@intel.com, puiterwijk@redhat.com Subject: Re: [PATCH v29 14/20] x86/sgx: ptrace() support for the SGX driver Message-ID: <20200513214059.GC31974@linux.intel.com> References: <20200421215316.56503-1-jarkko.sakkinen@linux.intel.com> <20200421215316.56503-15-jarkko.sakkinen@linux.intel.com> <20200506215048.GJ3329@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200506215048.GJ3329@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 06, 2020 at 02:50:48PM -0700, Sean Christopherson wrote: > On Wed, Apr 22, 2020 at 12:53:10AM +0300, Jarkko Sakkinen wrote: > > Add VMA callbacks for ptrace() that can be used with debug enclaves. > > With debug enclaves data can be read and write the memory word at a time > > by using ENCLS(EDBGRD) and ENCLS(EDBGWR) leaf instructions. > > > > Signed-off-by: Jarkko Sakkinen > > --- > > arch/x86/kernel/cpu/sgx/encl.c | 88 ++++++++++++++++++++++++++++++++++ > > 1 file changed, 88 insertions(+) > > > > diff --git a/arch/x86/kernel/cpu/sgx/encl.c b/arch/x86/kernel/cpu/sgx/encl.c > > index fe7dbca40bb4..0c5ea2968868 100644 > > --- a/arch/x86/kernel/cpu/sgx/encl.c > > +++ b/arch/x86/kernel/cpu/sgx/encl.c > > @@ -326,6 +326,7 @@ int sgx_encl_may_map(struct sgx_encl *encl, unsigned long start, > > return 0; > > } > > > > + > > Unnecessary whitespace change. Would not update series just for this. If something else, will fix this one. /Jarkko