Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp581322ybt; Fri, 26 Jun 2020 06:44:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkFYQM7eUWY5YKpZI3GAq2lgUqUM2Psdm+dWa07rDu0Ujj0E37A/3MJQP7f3CPA8Aai2Nu X-Received: by 2002:a17:906:6897:: with SMTP id n23mr2470363ejr.473.1593179046969; Fri, 26 Jun 2020 06:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593179046; cv=none; d=google.com; s=arc-20160816; b=R0USNl+iwJa57ySDyNHePGNXOGQJ7a+6JifBh+cs3MOBRAlXNFotC7+PjcMkf42IJu 0gMMKDfMmzc25kza2+rlZo2gZHnqo9/5hHHNOyvmRqMKkUcdTYWD0twCoE1H2HeRYshj SYyrifrPlcOyAAQMlq16KUhRsrGoWQH2qGYrssdVoQFRGNvWvxsplbQhkDPofVJCVXVq Pwbc5ANI91TOo7vVoguU04G4ObhVXXCpel38+NEe++slFtGGwOgtzbIwf/PVLmqi+GL5 nA28LBYD76EJXLDytLgzx0M93lsONJ6uE0gliv6FWsL/4PCa4Dh2zujM42DnfNFlDUfk Xaug== 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=1CbNrToytrRSFnWaLG8suuIDbP/9MLOVW+2fg0qcJA4=; b=Iy+oSpXpghx2DW63jh5K+Bs7QVFLYIEMCO8u1HDHa9XNSTGq1hGbFmk0g8sO9j4gzY S6c8yC8hvbf2NAEeDz7geqe8JzpIFmNyTxvWO5CNWe37ixF7HfFHqCpEjMDZeG28cxPY /T4todujeIzPbrKxN07jjHAx/O9ilro9g4G9h4o5Y3yBzAJ7X62eFOAlOIxNZJuZ59wA JfM011fCEnJediAIv5wgaNT/2vebxAwdG3LtzeSpZmteZXrMHY1uZWE32VjiKiHnf9re 2yeRbiHGb9JdaEXAvm0p2A45H3mvPwx79XhMQA3Q3Z+7PIfV98gayKxrsR1ecmIMFwkK Cckg== 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 cw14si260422edb.419.2020.06.26.06.43.44; Fri, 26 Jun 2020 06:44:06 -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 S1728708AbgFZNk2 (ORCPT + 99 others); Fri, 26 Jun 2020 09:40:28 -0400 Received: from mga04.intel.com ([192.55.52.120]:12509 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgFZNk2 (ORCPT ); Fri, 26 Jun 2020 09:40:28 -0400 IronPort-SDR: 7L5zhCV7TIxwWJp6K/utLTqbcwV0DIarwO/TvlLqCHeEbUPlID4X0+ZONks1id+dZ9jir9c69a EBGpSWTEb97w== X-IronPort-AV: E=McAfee;i="6000,8403,9663"; a="142829052" X-IronPort-AV: E=Sophos;i="5.75,283,1589266800"; d="scan'208";a="142829052" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2020 06:40:27 -0700 IronPort-SDR: 5aTYDJxytPvzzUBUDivWwJJcsPilqbm4B5+OPCXJvz1IrKvdCTC7bffLq59rKoQVbmk1UyXJjx ylq2M3rRMEEQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,283,1589266800"; d="scan'208";a="264216341" Received: from cgheban-mobl.ger.corp.intel.com (HELO localhost) ([10.249.40.199]) by fmsmga007.fm.intel.com with ESMTP; 26 Jun 2020 06:40:13 -0700 Date: Fri, 26 Jun 2020 16:40:11 +0300 From: Jarkko Sakkinen To: Borislav Petkov Cc: x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, Jethro Beekman , Haitao Huang , Chunyang Hui , Jordan Hand , Nathaniel McCallum , Seth Moore , Sean Christopherson , Suresh Siddha , akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, asapek@google.com, cedric.xing@intel.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, haitao.huang@intel.com, josh@joshtriplett.org, kai.huang@intel.com, kai.svahn@intel.com, kmoy@google.com, ludloff@google.com, luto@kernel.org, nhorman@redhat.com, puiterwijk@redhat.com, rientjes@google.com, tglx@linutronix.de, yaozhangx@google.com Subject: Re: [PATCH v33 11/21] x86/sgx: Linux Enclave Driver Message-ID: <20200626134011.GA390691@linux.intel.com> References: <20200617220844.57423-1-jarkko.sakkinen@linux.intel.com> <20200617220844.57423-12-jarkko.sakkinen@linux.intel.com> <20200625172319.GJ20319@zn.tnic> <20200625202148.GB15394@linux.intel.com> <20200625202520.GQ20319@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200625202520.GQ20319@zn.tnic> 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 Thu, Jun 25, 2020 at 10:25:39PM +0200, Borislav Petkov wrote: > On Thu, Jun 25, 2020 at 11:21:48PM +0300, Jarkko Sakkinen wrote: > > Would be probably easier to review also this way because the commit kind > > of rationalizes why things exist. > > > > What do you think? > > Sounds like a plan but you can do this for the next version - no need to > do it now. I'll try to review this way, per ioctl as I said in my mail > to Sean. OK, sure I won't rush with a new version :-) The code has been reworked so many times that it is somewhat easy to make such split and I think it is one measure that an implementation is somewhat sound when parts of functionality build up cleanly on top of each other. /Jarkko