Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1713759ybt; Thu, 25 Jun 2020 12:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx8zDEebl4VXKTAGYbkVjgNYyrsY41C37vkiCmvXWkpwCs/r+gVcB0b1pr6SIcGP51NKBX X-Received: by 2002:aa7:d6c1:: with SMTP id x1mr32649696edr.154.1593112628599; Thu, 25 Jun 2020 12:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593112628; cv=none; d=google.com; s=arc-20160816; b=LBNTckn9Hv1yd8ra0CTHkCTnADkczuiHLbGQskxIX9fTJeQmNrJx+EVPqvOw4D3FSQ VFjLwPQhiguLngRT5+QOPYoIGxO8U8Ovsv6OCLuSQG85TTx8YnxQn5MDzthfeBB1qE03 gX++UXFQE6jrLdQi+onulxLBVObFzTI06CP+ZFfCo0AEyCB62Dez+7icSBLJvDC1WllY xFDefK6urZKJUpq2/3lytKMouDyLyRM6kVQh5M0+Ztrnq2okYzJbpFSyiqEWoy/GtHFt P8OfrNulpU9tLtsTtb85DyH2dwANGH/RpCExBbixr+IJgvKbuSBWYr9GziF0t3MjhQKH wuJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=X64spH/ShbFrkkGbyJgQmg0OWwZHGce0YFejQLciW4Q=; b=H3SybVPjhKymZHyTJdnMJfe/fOooLbGePyS6bbO1flb9EpAO1E8uwgSwTvIK/tcPXr kiIzEDGgUwJFCZdW8HPx8iVYjfUL40iVNSjwfzMgEGoGLg+wpt6w436c3rUT/SgurSd/ Q+nGGvOgHQUidGbI0i33iTwoJtqjMK18aCrJ37hxMYE3enc+9/amXjQBsuDP/qN/h6ja yf9Vhx7D5UDOn4R9yVelEF348npu2vfvgIa8SjNnXNMkOCpZm07DANKVjHCPxc7t6754 xchzZiJB6RhlFx4/XR4X1M3T/kWHNmpCT0NM1MYmw6Ye/+pywBnH8WN1NwrKFkL8kEB1 9tqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=rfyusMuS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m27si6871116eja.699.2020.06.25.12.16.45; Thu, 25 Jun 2020 12:17:08 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=rfyusMuS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406175AbgFYSpq (ORCPT + 99 others); Thu, 25 Jun 2020 14:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390007AbgFYSpp (ORCPT ); Thu, 25 Jun 2020 14:45:45 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 931FAC08C5C1; Thu, 25 Jun 2020 11:45:45 -0700 (PDT) Received: from zn.tnic (p200300ec2f0ed100359123de3d1ebdc6.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:d100:3591:23de:3d1e:bdc6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 0ED621EC03FA; Thu, 25 Jun 2020 20:45:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1593110744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=X64spH/ShbFrkkGbyJgQmg0OWwZHGce0YFejQLciW4Q=; b=rfyusMuSzuELSa3fTW3ghwVBn2TnqfvE74XKu5pvX7y37a1x8VEAWewMt8VKbDE3Fhn20j kpzTxg5BOPFI3xzj74IJRWKzMcKPrMS3Lc3nro9uJPiQ4ZqkL0YNI7wYLF+G1Hx/PizM0J bMK62aK2D2Mp/w/R+J4al5ZgQVQcZsA= Date: Thu, 25 Jun 2020 20:45:38 +0200 From: Borislav Petkov To: Sean Christopherson Cc: Jarkko Sakkinen , 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 , 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: <20200625184538.GM20319@zn.tnic> References: <20200617220844.57423-1-jarkko.sakkinen@linux.intel.com> <20200617220844.57423-12-jarkko.sakkinen@linux.intel.com> <20200625172319.GJ20319@zn.tnic> <20200625183448.GG3437@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200625183448.GG3437@linux.intel.com> 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 11:34:48AM -0700, Sean Christopherson wrote: > Hmm, I think the most reasonable way to break up this beast would be to > incrementally introduce functionality. E.g. four or so patches, one for > each ioctl() of ENCLAVE_CREATE, ENCLAVE_ADD_PAGES, ENCLAVE_INIT and > ENCLAVE_SET_ATTRIBUTE, in that order. Yeah, I guess I can try reviewing it this way too and address each ioctl separately. You can try splitting later so that we don't waste time now. It would be good to have it split eventually, though, so that it is more palatable for other rewiewers too... > Splitting up by file probably wouldn't work very well. The split is > pretty arbitrary, e.g. encl.[ch] isn't simply a pure representation of an > enclave, there is a lot of the driver details/dependencies in there, i.e. > the functionality between encl/ioctl/driver is all pretty intertwined. ... provided the functionality is not too intertwined to make a split actually worse than a single big patch. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette