Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp736409rwb; Thu, 8 Dec 2022 02:12:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ybQf1kz1qgXXo+LSTLXTfYbOoGRdMjEiaR4he3LN4X1eWL3bTFkLTWfaeUNF2BNpCQ+92 X-Received: by 2002:aa7:9629:0:b0:576:8cdd:3f26 with SMTP id r9-20020aa79629000000b005768cdd3f26mr24728464pfg.59.1670494353677; Thu, 08 Dec 2022 02:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670494353; cv=none; d=google.com; s=arc-20160816; b=BliMujI56VWc7+zwPPHKOkyR83dMLasxHNu1NW6v1al2ygxUND+08gAXuPGDhM6Jnc yWxDR8mAysWI0hyyh4JB771F8mV36toduibqhToat/2PKYiM7xgNPTNs1Wynjdk9MWJB QyPntxfs8O4QixZ9RZBZtVnE40810cC55y0lQddYOhplc8a0uw5tjYLKvzNU93H9PJiU a65hUiOi0YTvfQuRCnJexGOfUYBGGHjlPGjgp2LPY83mGTjBXCqpETnY7UZNQGuTjhC8 /clnQAR5lNhLMDp8ov516l/WQ44elwE8VjAnYC/QVyC5geWBqmo6UF6Uclnvq7FBsg/X 33OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kI86omN3CVSaHaRAjQTZnGxkfjchceesnwf++3AGbcA=; b=C7uKNExInUGl6yzO8OgU4pqxt1m6yvkhkn5C6tNpTX8WWof1zv3gc7Lv/h2DvKpH5y DZDPSJpkUP+FllvSkqm35eOhCjY9gi6r0FtMdFPCpG4vGLHJtEQOUtQc0LKz977uhnXw L1Be6toiHsAwjMDJbwnmpBEA+0yYy6hFMMxbCEMSfxCkY/YehBe59jNXSHnt7OMDx+Fz 4nkQ/4DCCooJXYJOatajYifB83Qeqnp4vqqTVnSWs20062GkIY11D3BQNQeVnmgq/0Ku S8rm/0nLi6YOsNHi0dpgqgKl6JF4CZHl1Uu/ZSMlL7d7d7/kIDrgPMDCISaGX8vdLhO/ XXMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oebvmlOr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 13-20020a170902c24d00b00189ad7570edsi20918606plg.491.2022.12.08.02.12.23; Thu, 08 Dec 2022 02:12:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oebvmlOr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230101AbiLHJmx (ORCPT + 72 others); Thu, 8 Dec 2022 04:42:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbiLHJmu (ORCPT ); Thu, 8 Dec 2022 04:42:50 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F20645A26; Thu, 8 Dec 2022 01:42:49 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 14C2861E38; Thu, 8 Dec 2022 09:42:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1D33C433D6; Thu, 8 Dec 2022 09:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670492568; bh=ILluYFk8ruA2A/bk1cxa/lIB2gKjWFI9cFl4oDrdxrI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oebvmlOr+e8UZbD4fsAMJ+eaZsraR4ciDGHpSy7JExefAdCV+POEWLIEKVMSdLfkG 886wTMRPp2KywfgGwFTS/T2cDT8iD23b3nmJ+aZ//9OnYcxuJd3K3E+oFvdBdtSALO tOpLq1OeKSqVey2U94ENeeielKU7B6SLfHycwu06uKRJEXFj84O8nnsgd0laEFImJ2 ZRRFQz6EDUBAliCjYW2Rz8U1w8gjCFBgWGMFvuCy0iwS4GYJ+bV3ahwnYVVcw3ERdy UlK6BfFwQkSXjmZHvr8aWsVZa16Eoi1WZ6mC4AUdEDF4VUcSPI3vaRIPRFX3UkhmTA jaIF16GyY5FOQ== Date: Thu, 8 Dec 2022 09:42:44 +0000 From: Jarkko Sakkinen To: Kristen Carlson Accardi Cc: dave.hansen@linux.intel.com, tj@kernel.org, linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, cgroups@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , zhiquan1.li@intel.com, Sean Christopherson Subject: Re: [PATCH v2 11/18] x86/sgx: Prepare for multiple LRUs Message-ID: References: <20221202183655.3767674-1-kristen@linux.intel.com> <20221202183655.3767674-12-kristen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221202183655.3767674-12-kristen@linux.intel.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 02, 2022 at 10:36:47AM -0800, Kristen Carlson Accardi wrote: > From: Sean Christopherson > > Add sgx_can_reclaim() wrapper so that in a subsequent patch, multiple LRUs > can be used cleanly. Nit: Patch is the transient form of a change. Once a change has been committed, it is a commit. Further, you should instead explain why subsequent changes require sgx_can_reclaim() wrapper, than just claim it without argument. Alternatively, you can consider squashing this to the subsequent patch, which makes use of the wrapper. BR, Jarkko