Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp161369lqt; Wed, 5 Jun 2024 22:33:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUkn3RBtJHcUHhqIzdS1haf437GyTyWH2/zuGoeD+v5NeIvqgRFCrSsmH+Om8JWlOjpTvl+LRMAS8cB+z2o5K9SoCo2SSf6nLCPjQ5hw== X-Google-Smtp-Source: AGHT+IEnWO57060ff12qoRF3GMIXng3EnQ2mUMuHKVn23M6JfBt+/i6pNkVUEWwuq4foYO6tkfqB X-Received: by 2002:a17:906:c314:b0:a68:bf52:eff3 with SMTP id a640c23a62f3a-a699fac164emr277745166b.38.1717651990395; Wed, 05 Jun 2024 22:33:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717651990; cv=pass; d=google.com; s=arc-20160816; b=vVlO4nQAqrMG4g7e12vGE09XqmAkoaxxU40wCc2D2bpc9qMTT7cq++sSB01TwTh5U9 mHw9Q/V+SQj6zwtr3Lp2uRYM4OgB0ZWbz8hYeCgRNV3O4TJa/6nIAbiBWjexJ9N8mkXw RReomDcYMSWOnIQTgNKzGGn8WgPW9cWEcgnW+q4dzu4LrAgI/fnhA2hnkm/mqtDXbZ5t 65tE7iXb6ntkyRcjpuo09C37VLFpCEQmcl1wyvcLqPUTgOL6fqw6oLUTFhsTwbfj28El KUGdjIBex/a72Px0KL0HSPKEfAhz1UliM3ozct695U5fXBSd7Y2lIcKpNewCpLJr2ReP jZ9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:cc:to:from:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=VhaWy/kC+vMWP1W4/KH7Oo112izP5TlXCjDpnd1rXE8=; fh=a40Thz0Wz9t+6/7iWZJHnzYnVSfdaLbkR8/dGHMFzss=; b=KV1PUinfqomI6hsZiAE5shamx5Ic/cp+bm/6vJ1/t7sdiB4MpkDYblNvyjFwruONop OcwV4pDqhm70buwNYFdaZaNZQUbIdM4dMAzfPY272A3i01krBE1I4ueJlzlkjkLQpDi6 JEFg4fmj8iUTXiSUtSvijZs6U9+gl6Hcp2IC+z1ujLa4PMK0EsNYhJOxF+leo0/tXE8z Ga4Y3xLL7Upu6MK/pzMC3NAV49/HUFPPYIPXCLQlzaR3abweOgvbVL3fWcojgxMYAh/Z 7R5DDJ8xP8Y5mI9NwtcdBXc1YBxj9W57n9XAlVLQ+Nj03bZ1V6NFGmEf4Mrclj9Z04HA H9bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BclufSjw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c807082ecsi30685266b.619.2024.06.05.22.33.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 22:33:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BclufSjw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1E9B71F258E3 for ; Thu, 6 Jun 2024 05:33:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A31C43AC0F; Thu, 6 Jun 2024 05:33:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BclufSjw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C30DE19D890; Thu, 6 Jun 2024 05:33:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717651981; cv=none; b=cS0ALPiIhA7SGoMV1BD/QXaClI3YYzcrtiMCQqoPnJazBFMMmrmId3pgDjj19ol7CAtE37Eq6g3NASUzFMtYaDOI/CaYwdGhGAPNvfSFNNdh8rzfRynn9B54QkcKwCV5R3jPsAxRq6NuFC2w8FgafPQoc75YUvWy+sKbFMBgDEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717651981; c=relaxed/simple; bh=TSW6rR7WfjTlrhH3HGcK56Ppf9/LdR0HR8fCehDZ0T8=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc: References:In-Reply-To; b=SsA0DJpYuaK/6PCi8NFliOn8xvglARx1HkDd4i8qpd+d7JECevHRyk9Q/pWmacc5cJ8BOsalwlHZCT/eJRUXHLRxFzsa5pK7DRaRDhtiQmOzTyKy/mJV7gLJD6w6WBHTmD6po/G6+1yT5cEsWC2G8r4W/eXULYw/UbECrqZQFKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BclufSjw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3CF1C2BD10; Thu, 6 Jun 2024 05:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717651981; bh=TSW6rR7WfjTlrhH3HGcK56Ppf9/LdR0HR8fCehDZ0T8=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=BclufSjwogBUg/aL6zgolQI/4j5p/iVtXcepfZowDpVf0aDy6FY8I3U4ONKNabF/2 ac5GE0LgIMfHgufF+l7v0uWx37MxiNr4NUw1FdxPJQMDRnsaDX5ra3St2GIfR0zhZq LLSLdQLDPmErvHyaNBsC2UmT9L9unLS/6RZXfMrGFVgScbroe1zyCmc0g8YRuZICnV 7hrN5V2OrbiZdWWv7UPbRyChDhL80gI9RB2WFaHRSzgx21Os+oCWnu7dnr50KqY5oc S6jKUDmn16mIBRBFi98DJEKYABAzFjvzucAkRFRRmvL3Nj9RU7j7ffZwBRnqoTKMWE Jd0yFj/YTUrOg== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 06 Jun 2024 08:32:55 +0300 Message-Id: Subject: Re: [PATCH v14 14/14] selftests/sgx: Add scripts for EPC cgroup testing From: "Jarkko Sakkinen" To: "Haitao Huang" , , , , , , , , , , , , , , Cc: , , , , , , , X-Mailer: aerc 0.17.0 References: <20240531222630.4634-1-haitao.huang@linux.intel.com> <20240531222630.4634-15-haitao.huang@linux.intel.com> In-Reply-To: On Wed Jun 5, 2024 at 6:33 PM EEST, Haitao Huang wrote: > sgx_cgroup_try_charge() expects sgx_cg_wq, so it would break unless we = =20 > check and return 0 which was the initially implemented in v12. But then = =20 > Kai had some concern on that we expose all the interface files to allow = =20 > user to set limits but we don't enforce. To keep it simple we settled dow= n =20 ~~~~~~~~~~~~~~ Sure: "Keep it simple and corpse" > back to BUG_ON(). This would only happen rarely and user can add =20 > command-line to disable SGX if s/he really wants to start kernel in this = =20 > case, just can't do SGX. Even disabling all of SGX would be a less catastrophical measure. > Yes I had a comment but Kai thought it was too obvious and I can't think = =20 > of a better one that's not obvious so I removed: Not great advice given. Please just document it. In patch, which BUG_ON() I don't want to see my R-by in it, until I've reviewed an updated version. BR, Jarkko