Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3892320rdg; Wed, 18 Oct 2023 08:52:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHJ3eX8AWOQ2rC5/c1RdUekuAFIBMkq36lxqZQRzHNAXtJgSY/tkgEUFtntehsArIby1zt X-Received: by 2002:a05:6a00:22d3:b0:6bc:c242:792e with SMTP id f19-20020a056a0022d300b006bcc242792emr6181413pfj.27.1697644355040; Wed, 18 Oct 2023 08:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697644355; cv=none; d=google.com; s=arc-20160816; b=y729NdKXfd2AnAbqgv3JQ6sa6nSZ+fKV9ku70RORXYIyVsr2A7Et7/peT1YnfPpv6A o/KAUwtM6moeFr18xrnmprOK45DTjOj2jRbNKT3otg7mWbjW09ItmmketIBuUBbOEhfo SAY4ennpZD0Y00CKuWIBUuBWixYKIIl2Bm4erryQUMMHEwZgbMcWOuUW8y9AHG+aHCKq 9YzDVSfGmKswNr+qIpYY/PfB1V38VyhB8IDREWq4s5dne9CbGzTEXOjHUEfNdvaeEHwe rEzryalO4oeP1QmlHEAjob6/I3w3/n9fBWZ8tCDh6nE1hqsIitnlQ8p+9TL6ZcGn0YW4 GfkQ== 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=m3Va38a8sZL3iVjAWsTHHzZGt8WWZ+pcUoedGjqgQR0=; fh=ek0Eg8T4dgSHBDQ1y6d3zBc8Dpy4Kc2dWBc1MccRs30=; b=BOxKx/urOGJI8L8PQb18uvMt2euu0G1M9OLkeGOM5VHNRsvhiPnZDZSu5/u8outCd/ qoWL6k1bSfmOohomVEJrH1h9bQGzZy6DIoN3XW93N5n9Y/mQ8ox8wAIU5gcTvmZzfDxL sC1RirUxu1VMoRj/Lodaa20/Wu3Q2626BURiSVmOUpG0vZx6CBVGXQll2kvBqaVhWoL4 nHyLW4r67sdAdJZ2/Zgj9tQraNaeAhCXyz4H2sonNi78UVLYEUix017mc5/vVSN2DyZm h+rMG/+VNDMqBeRU8ufztvvjp9uGqb8VT9UFbDeRuWk7nIXliZCS5KE81AvAhb2/r9bj 5xlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=g9UH8xyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l16-20020a056a0016d000b006933caa6f03si4305769pfc.165.2023.10.18.08.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=g9UH8xyt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0C04181B75CA; Wed, 18 Oct 2023 08:52:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232289AbjJRPwa (ORCPT + 99 others); Wed, 18 Oct 2023 11:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231733AbjJRPw3 (ORCPT ); Wed, 18 Oct 2023 11:52:29 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B0F89F; Wed, 18 Oct 2023 08:52:27 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7106821855; Wed, 18 Oct 2023 15:52:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1697644345; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=m3Va38a8sZL3iVjAWsTHHzZGt8WWZ+pcUoedGjqgQR0=; b=g9UH8xytD9YucQsxopJFs9GuKq5iUz2a8QIb7sS/H33jKkzP3mmDW2TKVBZrgGO6yfOudr sKHARkYPO34cJIoI6JqjFrRFRM0YTg5yQTMJOZ1vyW4tqcR2BJ+4biBpXzPQlUEzbtihgu 9AJEbM9oDqICRMHlLXdW26ErRDoS4fY= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1CC6213915; Wed, 18 Oct 2023 15:52:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id dSRSBjn/L2X7BgAAMHmgww (envelope-from ); Wed, 18 Oct 2023 15:52:25 +0000 Date: Wed, 18 Oct 2023 17:52:23 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Dave Hansen Cc: Haitao Huang , "Christopherson,, Sean" , "Huang, Kai" , "Zhang, Bo" , "linux-sgx@vger.kernel.org" , "cgroups@vger.kernel.org" , "yangjie@microsoft.com" , "dave.hansen@linux.intel.com" , "Li, Zhiquan1" , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , "tglx@linutronix.de" , "tj@kernel.org" , "anakrish@microsoft.com" , "jarkko@kernel.org" , "hpa@zytor.com" , "mikko.ylinen@linux.intel.com" , "Mehta, Sohil" , "bp@alien8.de" , "x86@kernel.org" , "kristen@linux.intel.com" Subject: Re: [PATCH v5 12/18] x86/sgx: Add EPC OOM path to forcefully reclaim EPC Message-ID: References: <35a7fde056037a40b3b4b170e2ecd45bf8c4ba9f.camel@intel.com> <915907d56861ef4aa7f9f68e0eb8d136a60bee39.camel@intel.com> <6lrq4xmk42zteq6thpyah7jy25rmvkp7mqxtll6sl7z62m7n4m@vrbbedtgxeq4> <11413ca0-a8a9-4f73-8006-2e1231dbb390@intel.com> <7a1a5125-9da2-47b6-ba0f-cf24d84df16b@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sfycubn7gx2ldoil" Content-Disposition: inline In-Reply-To: <7a1a5125-9da2-47b6-ba0f-cf24d84df16b@intel.com> Authentication-Results: smtp-out1.suse.de; none X-Spam-Level: X-Spam-Score: -12.53 X-Spamd-Result: default: False [-12.53 / 50.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-3.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; REPLY(-4.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWELVE(0.00)[22]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-2.83)[99.27%] X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 08:52:34 -0700 (PDT) --sfycubn7gx2ldoil Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 18, 2023 at 08:37:25AM -0700, Dave Hansen wrote: > 1. Admin sets a limit > 2. Enclave is created > 3. Enclave hits limit, allocation fails I was actually about to suggest reorganizing the series to a part implementing this simple limiting and a subsequent part with the reclaim stuff for easier digestability.=20 > Nothing else matters. If the latter part is an unncessary overkill, it's even better. Thanks, Michal --sfycubn7gx2ldoil Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZS//NQAKCRAGvrMr/1gc jjuFAQD2xyk+E8YDQEiLZRkzZgLNNa9uj65olyt01GBofYgW0wD/WHDRxDomdgb3 KyYKGF1P6hM7GDWbgwRHcCg5PSgE/gE= =+mep -----END PGP SIGNATURE----- --sfycubn7gx2ldoil--