From patchwork Fri Jun 17 20:29:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shetty, Kalpana" X-Patchwork-Id: 12885963 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3AF15C43334 for ; Fri, 17 Jun 2022 20:29:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 253FD6B0071; Fri, 17 Jun 2022 16:29:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1DC696B0073; Fri, 17 Jun 2022 16:29:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 07CF86B0074; Fri, 17 Jun 2022 16:29:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E68D36B0071 for ; Fri, 17 Jun 2022 16:29:54 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B2E40409 for ; Fri, 17 Jun 2022 20:29:54 +0000 (UTC) X-FDA: 79588869108.20.E53FD9D Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2077.outbound.protection.outlook.com [40.107.243.77]) by imf21.hostedemail.com (Postfix) with ESMTP id 267A91C00AF for ; Fri, 17 Jun 2022 20:29:53 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GSP+4iogq+TFLoNY5uQODqxcaOwKchkxJvKyMcPW7ChkKOKLlI0S3m9PoUEDKbpRsRSSLrxzgRuAqHvsZtFuz7sv9AyXzsek7lOVwQQnJ/HLHzm1ORI7pd9ApPTa08Yu0EVQDyqe3MLw1vsH8NF80GE++z3jhB8lOz471u7WWVXKFmQkGnoViY6byntF4rVtAwQVIkNupkyVYVH//JqciXsqU6Rht7UUZ8bgMcm/jC/ob7gQE3F+jo8QAigJUtcVtjv19W9s40MAphLYSCWtqaVymDqdU2DlQBpTNfS5IBbrQulENwCmjetKiHe9uGhaKv03rfreKpDUPNgk7gHWFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=h71o3MzoDzF3LLHXKe1qKHVG9WVQKO/eyAIcHygqIMo=; b=J/R0I59PG/NNb7DVhjCtdmfAr1QZqVoEkCwAxZHV4kkUueJnuewkgMP7UKdKeXWRMnraV4pwpcafbMOdB0s9yLdRyicLbqtj2ZMRT4WjRL7ykrR0PWoPhTtYEhB6JiQlT4tXAItvaHuAzCDpQ7V7JpICbHl9qKLs50zyDj3L6aKCbKpLXwfBhN6hYxIF0FJGUINyB8J9hnCvrApQJLmHl08X02u0dhXBEtvnmBcw348VK5hHEhZqaoGlZN7Irm2NG6Q2vWbmoj6HM6SgTLPxbVo9mk6mXG5zBadEVxRAfvclpZwvjUkgWrP+pNtDt+2lBJrPSZ31w7DgSHEz9DHFxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linux-foundation.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h71o3MzoDzF3LLHXKe1qKHVG9WVQKO/eyAIcHygqIMo=; b=hs7Hxx06Cl9SF3NVQdxIoYXjyKgfKy/9w06xnNt0oaguAyeSl0p93r6BY3JfGb3/7YuDcGvYIiRlOwaaNE/VPnk3T/DhIaKI57i8gawZgWTkGj9Wo8tAAJJP5D0FOZ4KCL7TnBSk3F9SGQO79UnWVn88Y+BfjS7Oyr0I4SBuS2M= Received: from BN8PR04CA0063.namprd04.prod.outlook.com (2603:10b6:408:d4::37) by DM5PR12MB1210.namprd12.prod.outlook.com (2603:10b6:3:75::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.19; Fri, 17 Jun 2022 20:29:51 +0000 Received: from BN8NAM11FT028.eop-nam11.prod.protection.outlook.com (2603:10b6:408:d4:cafe::b6) by BN8PR04CA0063.outlook.office365.com (2603:10b6:408:d4::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15 via Frontend Transport; Fri, 17 Jun 2022 20:29:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN8NAM11FT028.mail.protection.outlook.com (10.13.176.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5353.14 via Frontend Transport; Fri, 17 Jun 2022 20:29:51 +0000 Received: from BLR-5CG1345Z9Y.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 17 Jun 2022 15:29:48 -0500 From: Kalpana Shetty To: , , , , CC: Kalpana Shetty Subject: [PATCH V4] selftests/vm: Add protection_keys tests to run_vmtests Date: Sat, 18 Jun 2022 01:59:31 +0530 Message-ID: <20220617202931.357-1-kalpana.shetty@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fec8738d-2d02-467c-895b-08da50a0219c X-MS-TrafficTypeDiagnostic: DM5PR12MB1210:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KhykEKRTA6hShTR3G8CNwJaJCyku4SFFhP4KN4L6NxsGtIpPqIJXqHmrbAJFjTZ4R8uDOTEagzJufdrthR9WrZJQyEQtAg2zijsvMJeCUsg0VousraNrYZBO0AyP8PZkrlEYjLyqQDVXlzMZCgj0fdwz9hqbIVO+9gxSFoNoc9jmx4zDHSxmHkKoR0h/LoEI791poilABV1T4YcCnI2U3/8CXvWXFoH+zbOQFVg8dvoofxUd1lXmb2R6eKo/jMUkfgsBOjFj+CPGw5NPOHL5nVwit3Iw5JecbT0fkmTL505qSv6mx4fwARClVhGQMvFtr31g1SNcO0IJxHB75NPWRwapHxHo8QGPhARmfSfvPtJgHpdtZY9Mqi/baZfosS3XE76QHx1rlmaLAmjlPPf8dIejIas8JKW5x8zf76zdybjgDmg7gFfgnyjS6qD+A/9nuoCTG4K43F5SpLY5HpBwhK/vMuaIFs0DKB55iwOBj7kMvgd8+lmTKVVrK6TJQRoO7fNR22lS4KPpJJ5JpUzfnbxtfB7eGc3ZOyoROFjOXx7/3+zNElOOvI6JgXVnJjSa+qWPot755THSgyal8lyJ2YoStfbHHtSZDpItNQkRWsAThCjyv7YTeCaZ3tjtGNczrFkkGfsjHLikmOFZhuZDiuNnAT+4QlPIeSRvapVuhxQJukqhDdiwRSBpUv00hVRh67pKXE2irmZo0BRQ32jcv8K6uMNROKthnTZg68kzwRw= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(46966006)(36840700001)(40470700004)(26005)(70586007)(8676002)(70206006)(110136005)(186003)(426003)(1076003)(4326008)(336012)(8936002)(356005)(16526019)(47076005)(2616005)(7696005)(86362001)(82310400005)(316002)(2906002)(5660300002)(6666004)(40460700003)(36756003)(4744005)(498600001)(36860700001)(81166007)(44832011)(36900700001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 20:29:51.4461 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fec8738d-2d02-467c-895b-08da50a0219c X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT028.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1210 ARC-Authentication-Results: i=2; imf21.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=hs7Hxx06; dmarc=pass (policy=quarantine) header.from=amd.com; spf=pass (imf21.hostedemail.com: domain of Kalpana.Shetty@amd.com designates 40.107.243.77 as permitted sender) smtp.mailfrom=Kalpana.Shetty@amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655497794; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=h71o3MzoDzF3LLHXKe1qKHVG9WVQKO/eyAIcHygqIMo=; b=MIlM8rvhNP16VSlq+QJI35VJBmcqKLHwlI4/pC/LuFdowA4TLKWZqT9zh3UggXG1OHHK6x QK4v9caRQyLRZ9GLANZXKvUW5LBaSJ87/MF1fL/wY1P32KxICwRApVI66pHRVftt2CzOh7 hBQvWjXLsbnmams3lLw9jxP4fsss7RU= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1655497794; a=rsa-sha256; cv=pass; b=QTsZXxPLyRQyMow0oky0MUiZoddBoZrT9Id3YuFQNEmMYVIv+9l4FTMqpzRSWKzy1e0fIU OKgFXfGbQC7Ln7KOnMdT9/qp/CQ6bbnzHph/si6zIjyVATQpPbN6mX1Zl00xT6Gt9k5ds1 MNRUPsX4LM3O0ZPLxglZjnAuSRbi8SE= X-Rspam-User: X-Stat-Signature: wdpb3qpmkxcp8cb6fgp8wwk45sfi5udh X-Rspamd-Queue-Id: 267A91C00AF Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=hs7Hxx06; dmarc=pass (policy=quarantine) header.from=amd.com; spf=pass (imf21.hostedemail.com: domain of Kalpana.Shetty@amd.com designates 40.107.243.77 as permitted sender) smtp.mailfrom=Kalpana.Shetty@amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") X-Rspamd-Server: rspam05 X-HE-Tag: 1655497793-746873 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000331, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Adding "protected_keys" tests to "run_vmtests.sh" would help out to run all VM related tests from a single shell script. Signed-off-by: Kalpana Shetty --- Changes in V4: Shuah Khan's review comments incorporated, added -x executable check. tools/testing/selftests/vm/run_vmtests.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/testing/selftests/vm/run_vmtests.sh b/tools/testing/selftests/vm/run_vmtests.sh index 41fce8bea929..61b1ca129a30 100755 --- a/tools/testing/selftests/vm/run_vmtests.sh +++ b/tools/testing/selftests/vm/run_vmtests.sh @@ -179,4 +179,15 @@ run_test ./ksm_tests -N -m 1 # KSM test with 2 NUMA nodes and merge_across_nodes = 0 run_test ./ksm_tests -N -m 0 +# protection_keys tests +if [ -x ./protection_keys_32 ] +then + run_test ./protection_keys_32 +fi + +if [ -x ./protection_keys_64 ] +then + run_test ./protection_keys_64 +fi + exit $exitcode