Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1264813rwn; Thu, 8 Sep 2022 16:35:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6CluztLo/TkSr1TQsvIdmMRoiZAKZA0cq9jKiRPTAD8jAuuJoODuyPl6bB8OskRa1c2fqo X-Received: by 2002:a05:6512:33d5:b0:48b:17a:6b86 with SMTP id d21-20020a05651233d500b0048b017a6b86mr3788358lfg.671.1662680153920; Thu, 08 Sep 2022 16:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662680153; cv=none; d=google.com; s=arc-20160816; b=BFeZU9vBQSyCfHpU9UUBENbjR5WmPD4wdFRi1qzgQ0BGhlccO2076p9MbUqw1fGNbF K+qFEwqWx/tYVgIvIfeBryCHXbkmEMsQ4zUyaQhOWuAscV/uScIJmKWEqV36HHlp7mJ8 h8HNLnBDTen1e/VMlA7uhKyZU+8UnXYTkL+CPjGIm+UvBHVCm5SmcY3TBMatgySkg+CR jbLsIjWF80bsVA/7g2ljV37WtekxfrMmV8W/nxq3leVnEHNTZosQWYSsf+bTjr8OusUY ulHykYAlK+0I+0rqo9zyqEIRyy42qJfWMeDXzIbh78qbitxMr/E5ON2F7oG1OWzcUrNv bm3A== 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=2oqjisFjGINu5fBS1hjkIdXX0iugsQ4veZr8ldtut7c=; b=wWVhO2o0gpVEJbPkaEw4BKnh3wf/6Bwt+nkFzEkK7+HQM/hCncQcBWq2sOgm1DjKii xbaglT6Fr+6QZ98WslHhb/ud/j74LsQqy+rJFmUUbYt7LEO5+nSngHGmIPyuwRKD7lL1 bRAlyvKTwH3F+EeMiV8UL+/DFYvv2H7V4A9x1cn02KYsMkZNIac3mIRE/k5gXwM3qqyI adI2AoM7DCd86+VPIq4OJa7mG9SwBl/VkJMY9qIIDVYvveGl1K0U/iqqDIppmW9jApME aaZszjSD5NDcxV69G//YNaqQfwElPmoLRosg+rBg0LMXqh6rcVJC8ylFDM26M2BqSvFA mEzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=attQb81U; 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 g15-20020a2ea4af000000b0026adb8f2e91si96068ljm.218.2022.09.08.16.35.23; Thu, 08 Sep 2022 16:35:53 -0700 (PDT) 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=attQb81U; 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 S230491AbiIHXcU (ORCPT + 99 others); Thu, 8 Sep 2022 19:32:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbiIHXb7 (ORCPT ); Thu, 8 Sep 2022 19:31:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE77D1402C; Thu, 8 Sep 2022 16:29:30 -0700 (PDT) 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 D86E661E6B; Thu, 8 Sep 2022 23:28:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEDDFC433D6; Thu, 8 Sep 2022 23:28:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662679705; bh=Eo93VCMrgvKOMrm1ftkl2pC8sCfd6qOMdIaidBm6YlQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=attQb81Uoww89Ha9CLEDtpSNRdfmtwWQWGtN35eNo1MneyQZGUwbuD4CIi7WvoL0B eVhzP3RMDshfKAmslGCe6m9pFRkYAL9YOzeQC2Yl37k8sWpmsaHuFMwX32gB6u4as1 AAOopsHyXyg/A5NmE456sAqQMDJPf4W75+nPOrEJcSZR1o82HYS9BY5oSocbVFnusb IqFQkoXcJ2yfjj7mrJoFJamv/9m+n+Gk7qEdcYXAhDF5lG6lN5A24E42TztURIiUHe nXnEygMWqwBw3qwKURRbS5rqhvPeRTxIun5Hzf5ZY/DE8sa0W2gw8fkEKsD+fFhD3K HVJhoDA8HfGCA== Date: Fri, 9 Sep 2022 02:28:18 +0300 From: Jarkko Sakkinen To: Reinette Chatre Cc: linux-sgx@vger.kernel.org, Haitao Huang , Vijay Dhanraj , Dave Hansen , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , open list Subject: Re: [PATCH v2 5/5] selftests/sgx: Add SGX selftest augment_via_eaccept_long Message-ID: References: <20220905020411.17290-1-jarkko@kernel.org> <20220905020411.17290-6-jarkko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,T_SCC_BODY_TEXT_LINE 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 Thu, Sep 08, 2022 at 03:44:29PM -0700, Reinette Chatre wrote: > Hi Jarkko and Vijay, > > On 9/4/2022 7:04 PM, Jarkko Sakkinen wrote: > > From: Vijay Dhanraj > > > > Add a new test case which is same as augment_via_eaccept but adds a > > larger number of EPC pages to stress test EAUG via EACCEPT. > > > > Signed-off-by: Vijay Dhanraj > > Signed-off-by: Jarkko Sakkinen > > --- > > ... > > > diff --git a/tools/testing/selftests/sgx/main.c b/tools/testing/selftests/sgx/main.c > > index 78c3b913ce10..e596b45bc5f8 100644 > > --- a/tools/testing/selftests/sgx/main.c > > +++ b/tools/testing/selftests/sgx/main.c > > @@ -22,8 +22,10 @@ > > #include "main.h" > > > > static const size_t ENCL_HEAP_SIZE_DEFAULT = PAGE_SIZE; > > +static const unsigned long TIMEOUT_DEFAULT = 900; > > I am not sure about the naming here ... it is _very_ close to > (and thus appears to be in the same namespace as) > TEST_TIMEOUT_DEFAULT from the included kselftest_harness.h. > > This is surely a nitpick but how about SGX_TEST_TIMEOUT_DEFAULT? Agreed, I would use ENCL_TEST_TIMEOUT_DEFAULT (better match with existing names). > > > static const uint64_t MAGIC = 0x1122334455667788ULL; > > static const uint64_t MAGIC2 = 0x8877665544332211ULL; > > + > > There is an extra empty line here ... but it looks like intended code > organization? Yeah, I think it'd make sense to have it there and would not be productive to make it a separate patch. > > > vdso_sgx_enter_enclave_t vdso_sgx_enter_enclave; > > > > /* > > > Apart from the naming comment this addition looks good. > > This is a valuable addition to the SGX tests. > > Reinette Thank you. BR, Jarkko