Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3362869rdg; Tue, 17 Oct 2023 12:13:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmw5v9ugxkCTn+wakxMV0MP/Qm+rXFOKU2gnohnVBhvq4VSZDeB4h6TYHf6NEJRGgVgSXy X-Received: by 2002:a05:6a00:1a04:b0:690:2ad9:1436 with SMTP id g4-20020a056a001a0400b006902ad91436mr3245401pfv.7.1697570012762; Tue, 17 Oct 2023 12:13:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697570012; cv=none; d=google.com; s=arc-20160816; b=J+OYgdUKjth6a/Q5fUYr76vUr9PijTRU2ceUpxeQvUDso6hTeVst31NdKnjOQ1AtKc V13moEDDbDMu1408+yek/PRHwbZ/iK7Ghk4+7zNZSVL5MDhyIEgW9vxvRc5Hve5FvkdR f9uLwiV3dXhazpu6YGmGUq5zu+jnDu6CM4TnAGbBJUuVG68s5WfU6+t2HMlPcfwZC9ah cTBmQpMgDJCXBTEn1boB7PCnKGiPsDfzjBgx15C96a26Sk2Tfwft4MaHPZjmj08/pQgO 8qx9IuMSfC5yeVHn622pqvcBEQfRWRCOkld64m99ivoeXLwDD/ts8s2/DLfVP0GUZo+h 59LQ== 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=r7zEYN2Hcr7SG4kPhqwX3XoiHVJBqY6qlMSV1SWIHls=; fh=Be9KPvkMAM+A9usWJ9TVgQQp4CpAtPE3YGl+6SBn1nE=; b=dGscNjTiQq9cEgHxYo0VaBzz+xtZXC/4S/qcsBqibdVdLm6I3GAwNbyI9p/PmTvYC0 7yIPQJoQqpyVTl7GHlE5ykdcm+uVJgBFga7n/dK1LJ5u7IWBVRYVirm7WFkcydJh+FeZ VFw8txKQmtY7GMd2AjOtawJV/4Phbyd8xZHMZ+6hFb9dAsNcZc9uGn9ge7tZq+hDYcJZ i07C2RtXab1ESavPRKfBvXhppJ7Fss4IZs6xNVT4J9IPagLgmAOx0X484mvvhgQzR2d/ KUZWwGexGoI830JBt+ob+pyQUzy0a3FfdFvBFzz5iyVCgTaAoMcHX/CwYyASqQeBRKFe BfYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=jGBu1k7i; 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 u66-20020a627945000000b006be053633ecsi2147841pfc.388.2023.10.17.12.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:13:32 -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=jGBu1k7i; 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 CB8A0804F627; Tue, 17 Oct 2023 12:13:31 -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 S1344148AbjJQTN2 (ORCPT + 99 others); Tue, 17 Oct 2023 15:13:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343642AbjJQTN1 (ORCPT ); Tue, 17 Oct 2023 15:13:27 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AEA090; Tue, 17 Oct 2023 12:13:25 -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-out2.suse.de (Postfix) with ESMTPS id C2D411F8B0; Tue, 17 Oct 2023 19:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1697570003; 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=r7zEYN2Hcr7SG4kPhqwX3XoiHVJBqY6qlMSV1SWIHls=; b=jGBu1k7ioCrfE6xeo1EIgawt0RdWTXPaBvaCouqrve4rdBqwCM2kMdjL8yKvY6+iIqQupo DW0vE/QQQfrnkLIJJa6hKuSlwp1aokdqg4nldK8TuVBS8BBfeh7509SG3MpSKThnY2OsDj 19tlNOEBdJgD290jZqSmyrP7td+YsWU= 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 78A2313597; Tue, 17 Oct 2023 19:13:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /nnNHNPcLmXkKgAAMHmgww (envelope-from ); Tue, 17 Oct 2023 19:13:23 +0000 Date: Tue, 17 Oct 2023 21:13:22 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Haitao Huang Cc: "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: <631f34613bcc8b5aa41cf519fa9d76bcd57a7650.camel@intel.com> <35a7fde056037a40b3b4b170e2ecd45bf8c4ba9f.camel@intel.com> <915907d56861ef4aa7f9f68e0eb8d136a60bee39.camel@intel.com> <6lrq4xmk42zteq6thpyah7jy25rmvkp7mqxtll6sl7z62m7n4m@vrbbedtgxeq4> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qp3liqglk3vq3ozh" Content-Disposition: inline In-Reply-To: <6lrq4xmk42zteq6thpyah7jy25rmvkp7mqxtll6sl7z62m7n4m@vrbbedtgxeq4> Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -7.99 X-Spamd-Result: default: False [-7.99 / 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]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWELVE(0.00)[21]; 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.29)[96.70%] 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]); Tue, 17 Oct 2023 12:13:31 -0700 (PDT) --qp3liqglk3vq3ozh Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 17, 2023 at 08:54:48PM +0200, Michal Koutn=FD wrote: > Is this distinction between preemptability of EPC pages mandated by the > HW implementation? (host/"process" enclaves vs VM enclaves) Or do have > users an option to lock certain pages in memory that yields this > difference? (After skimming Documentation/arch/x86/sgx.rst, Section "Virtual EPC") Or would these two types warrant also two types of miscresource? (To deal with each in own way.) Thanks, Michal --qp3liqglk3vq3ozh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZS7c0AAKCRAGvrMr/1gc jicWAP4y/F7VHIBi/yw8i+9iOMQ8LN7oWzCvcPjXUVhnHOc59QEAwK8gt9htMm8p jAdfORkc8EJGhNR/s06psBXBbPApCAs= =m7qv -----END PGP SIGNATURE----- --qp3liqglk3vq3ozh--