Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1815374pxu; Thu, 8 Oct 2020 23:47:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7V+TMcBq82fDMHWF1Cuf2U5bse5Z86o1mIQOTv6egZ/NzUoazzsNkw/B8+n9Qq7+Xoxbp X-Received: by 2002:a17:907:20d9:: with SMTP id qq25mr12432465ejb.149.1602226027191; Thu, 08 Oct 2020 23:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602226027; cv=none; d=google.com; s=arc-20160816; b=fBw76TYBi1/DI6oDq5xi9wzUneoCdc2VTrxVt+Nn+d669vgm8pibtP/I3FDEFhth2S WLej9iTy6YtyYfE3LXSBvfU26QiFmB39YIWGTkT6I6QaohanuUIhjQcA79Ox8cOmxnaX l8BgTJdPs1t7g28t0lXv8ZF+iwrsFBY8bfgOvjquPbjJ1sbxknjYGd+OUGAj3/9urLAW 4eA9djiv1zuDaA08+YNxFLJjQYZV9wECjjzMiqqGg4lPhw2ez40d1AAkY9csOj4u8QB4 vyjETANn/ARSBUXgt/Zb97LMm8MNQPZQ1m03YGBLbpQId7Iysk0VaafQFuT/LmywgpjX zgjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=YeDBYLJnU3wUJcyfQcxb6hpFQFCt7DrbBISok1YE2BU=; b=vQ/PSRJ1XLv5eCjGAK9GgUaIpgVw/izujMXCjx93p8tgT1IEgN06NpRhdBya40a7yF kRD/HJ31z4G/zb02hnQvw4+tCazXgQ9Aio0PNDvOrcnZ2sgnp02sdkpVOzW+S8qIcLUn qCFjigkaeMzVKR16y1v85CQdDoP7XR1KtThuWx1WpB++P4+pkmSp237pAOWzMQCAwLQR NIz2PD0T3NEwxCSu5NB9Q8/rjhZZgrudT3oCKIpaW9QPlCW/wRD2AztyqGZvEWIYpsib UWDfdxIYc3XQIdFfVJixsIMntDit/QXy9/O52l/c6V5i0XqmCi+GP+BnysYJ4kl99+pn eUdw== 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 bh20si5256498ejb.294.2020.10.08.23.46.43; Thu, 08 Oct 2020 23:47:07 -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 S1731315AbgJIGoe (ORCPT + 99 others); Fri, 9 Oct 2020 02:44:34 -0400 Received: from mga11.intel.com ([192.55.52.93]:42448 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbgJIGoe (ORCPT ); Fri, 9 Oct 2020 02:44:34 -0400 IronPort-SDR: LE39SZeEM9U2OF07+jBN2Wq50RkfaouRxNbVBjBHxR511NrWaI3H2dRmojc9BB3ZmJIkuiAYMM NZgDc9+OMkbw== X-IronPort-AV: E=McAfee;i="6000,8403,9768"; a="161987900" X-IronPort-AV: E=Sophos;i="5.77,354,1596524400"; d="scan'208";a="161987900" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2020 23:44:33 -0700 IronPort-SDR: nWBjKdL7QJVZTuBJO2CmcW40pcRcMkvlGVs5Nlm1P5gbFESmwMNOsL4oeVSGlwMwz5dwRHeEns ARpK4H9O1A7A== X-IronPort-AV: E=Sophos;i="5.77,354,1596524400"; d="scan'208";a="298346639" Received: from rgordani-mobl.ger.corp.intel.com (HELO localhost) ([10.249.34.105]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2020 23:44:17 -0700 Date: Fri, 9 Oct 2020 09:44:14 +0300 From: Jarkko Sakkinen To: Greg KH Cc: Haitao Huang , x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Matthew Wilcox , Jethro Beekman , Chunyang Hui , Jordan Hand , Nathaniel McCallum , Seth Moore , Darren Kenny , Sean Christopherson , Suresh Siddha , andriy.shevchenko@linux.intel.com, asapek@google.com, bp@alien8.de, cedric.xing@intel.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, haitao.huang@intel.com, 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, mikko.ylinen@intel.com Subject: Re: [PATCH v39 11/24] x86/sgx: Add SGX enclave driver Message-ID: <20201009064414.GA2744@linux.intel.com> References: <20201003045059.665934-1-jarkko.sakkinen@linux.intel.com> <20201003045059.665934-12-jarkko.sakkinen@linux.intel.com> <20201003143925.GB800720@kroah.com> <20201004143246.GA3561@linux.intel.com> <20201005094246.GB151835@kroah.com> <20201005124221.GA191854@linux.intel.com> <20201007192655.GA104072@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201007192655.GA104072@kroah.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 07, 2020 at 09:26:55PM +0200, Greg KH wrote: > On Wed, Oct 07, 2020 at 01:09:01PM -0500, Haitao Huang wrote: > > > > > There is a patch that adds "sgx/provision". > > > > > > > > What number in this series? > > > > > > It's 15/24. > > > > > > > Don't know if this is critical. I'd prefer to keep them as is. Directory > > seems natural to me and makes sense to add more under the same dir in case > > there are more to come. > > Why is this so special that you need a subdirectory for a single driver > with a mere 2 device nodes? Do any other misc drivers have a new > subdirectory in /dev/ for them? Absolutely nothing as far as I'm concerned. Should have done that already at the time when I switched to misc based on your feedback. I was acting too reactive I guess. For sure I'll rename. I also looked at encl->refcount with time. Instead of just "moving the garbage up to the correct waste pit", I'll address that one by refactoring it out and making the reclaimer thread to do the reaper's job. > thanks, > > greg k-h /Jarkko