From patchwork Fri Jun 10 09:07:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Shetty, Kalpana" X-Patchwork-Id: 12877035 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 7FD2DC433EF for ; Fri, 10 Jun 2022 09:07:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 04D358D0064; Fri, 10 Jun 2022 05:07:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F3F8D6B011B; Fri, 10 Jun 2022 05:07:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DDF7C8D0064; Fri, 10 Jun 2022 05:07:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id CE0666B011A for ; Fri, 10 Jun 2022 05:07:26 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id A541234595 for ; Fri, 10 Jun 2022 09:07:26 +0000 (UTC) X-FDA: 79561747692.22.115E5A7 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2074.outbound.protection.outlook.com [40.107.243.74]) by imf02.hostedemail.com (Postfix) with ESMTP id 212E68003E for ; Fri, 10 Jun 2022 09:07:25 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bXxz99A/1bROjeBADKcboeYWcTMomw1+irrsnCiiwtFmZ0bvfOh8eUXvRdnQRg8Yf523L2atzHxKPuBk09DtqJ81v50oiIm46PMXQ/5bLnZSs5sUVBtKIIa+8HDd+Rp37xJjNp8lOvnKL80QP9iJhWc5/hqGZND0qQMtzUWT51ROSmJO78H/6ZvP34bZaogIO9XT2zVQfH6s5mjLin5B7UzJN6e+1cC9lXOnV6aa3Ei4FUi+aphAlcXLDKiikp97gAQsaVzQlV7RKTmhFetR8L1ju7vVPwkt79rI8703EyKHU3ScuCi7zh/9FCbCINj3Nh1N2iAblVhEBBt128D5bw== 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=HygiLJT23LuhSK8uQsZiowr7RwLPGl/xF0b9GGJSCLE=; b=T8LtKx35w7faIwg9/1i1VifufdXZwPtC1d0386MfbJfBKM+akn0Oj7XyU4YAGLjH3R7opYLrxgbbnDxq82GeVS9ufnYKL7Wrtyrj5trUjcIddPmMO0JqGuKUKqDOFaaHslVBMmoizT6KEACpddi7xvOw5m2Rr6Fx6F/8tAPFmuYW3RCDkK67o+OsIcrOoQUsG3EKNsuGbh7EJLzIrATGKoT4rxs94mVprc9JEQ4SzzlktVbgfTO5we6oQS6Y+BMDBIjtDuQAH1We7nSU7ybBhaBMgMbsFqINudlXty0sYZf4p9UAJVd+nrgtpt0ZKTaJsgy/lRlWFp4PiC21iJFV2Q== 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=HygiLJT23LuhSK8uQsZiowr7RwLPGl/xF0b9GGJSCLE=; b=VQTbqhcC0frxzPxK65NJMHNLfJw2kFk0MDKCWtyJLGIh9/qzaL0g51pxFdBJ2VqjSdp/tUB1yewxoiRxz6654GLltsTjDrDGSgRglo141+fSRS3izxf2WVjxpvad/bk6/rtkZo3pRMeE+zq4qJKMlkasVEWAdNJ/gBtbAM4HfWQ= Received: from DM6PR13CA0022.namprd13.prod.outlook.com (2603:10b6:5:bc::35) by MN2PR12MB4285.namprd12.prod.outlook.com (2603:10b6:208:1d7::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Fri, 10 Jun 2022 09:07:24 +0000 Received: from DM6NAM11FT003.eop-nam11.prod.protection.outlook.com (2603:10b6:5:bc:cafe::bf) by DM6PR13CA0022.outlook.office365.com (2603:10b6:5:bc::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.7 via Frontend Transport; Fri, 10 Jun 2022 09:07:24 +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 DM6NAM11FT003.mail.protection.outlook.com (10.13.173.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5332.12 via Frontend Transport; Fri, 10 Jun 2022 09:07:24 +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, 10 Jun 2022 04:07:21 -0500 From: Kalpana Shetty To: , , , , CC: Kalpana Shetty Subject: [PATCH V2] selftests/vm: Add protection_keys tests to run_vmtests Date: Fri, 10 Jun 2022 14:37:04 +0530 Message-ID: <20220610090704.296-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: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 57214a24-82fd-4e00-4747-08da4ac0a23e X-MS-TrafficTypeDiagnostic: MN2PR12MB4285: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: WsLkSzFVLhZPFyGQ8rZ6evxZ8jBGToTpNxqTDF5+VJ3WLt3DvWH3GsbBfdeVTyEd543Y/2LqOen8vkDSGlWHM4YEcMGk3bbDp42+8UMoQOJQHWSImC5XsEgWKOJw7fTrCaZLq//1OnjIZ/RgjHAlRK5O+4puBbbU1ob1MqEJDWJ9Lo+oeH9SbKoxeAgf8rEL97E/hjCi0eKL5jURs6JOvcv51Ufg5ZrLhR8xlhAGM6KhdkXcKQ8CqsFoXl4EZ1hY7IrURdHSux+eHgm2aq+p+NsQjyJ57UsIUPrNtWy8AHGIaM6EAEngK4caAFGeMd6nr7WFM54id3+8/+3XAt/lbKkmLQEP+0Y88ijlszgnFYOipnMKs+pPhuhjBQwAolHEjMK8+KhilEwk4dLoJ7KclM41t+9kOJpKCIatigXT2v1J1rR3otarVcmHVfxJWOREC9HxGxAHwhbJtKqH3pAeqwdRFSv/Q0P/qkSodWAu5NVg0EETJ2Sou1oDinKYXGPFPoYXW/nPnWRf+FvEYqq4W4ip0bQVAfD8XV1C2Z/8ad+6FkzsT2xaSX7MCZLQq+wRN5DA7MCiP6fp9diKhD70KcKJtpeWxd6+4ODyYUTOUI4qt4qmIuI70Lb6pAzrhrFp0VLyIwnqLRpBNV2qDG3YzqOar4CBCJvGnzrRkfTLslDe8kssBSslmsWwIfZ7wFYUe4jhJtec0Wax2V2X6JOlM3Ik3vxKckPOeqQHT2KT6DA= 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:(13230001)(4636009)(36840700001)(40470700004)(46966006)(26005)(7696005)(86362001)(6666004)(1076003)(2906002)(8676002)(36756003)(110136005)(82310400005)(4326008)(316002)(70586007)(70206006)(36860700001)(508600001)(4744005)(81166007)(44832011)(40460700003)(186003)(336012)(47076005)(426003)(16526019)(8936002)(5660300002)(2616005)(356005)(36900700001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2022 09:07:24.1575 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 57214a24-82fd-4e00-4747-08da4ac0a23e 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: DM6NAM11FT003.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4285 ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1654852046; 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=HygiLJT23LuhSK8uQsZiowr7RwLPGl/xF0b9GGJSCLE=; b=sxVe/YCgc35uKYul1K2TO6wrt25+k1e49+NE1c74VrTGrRRuWMsz2n+WqGofk7BQATA+dN juNRPg86hz/Fn2UvueyhajntXEKjzPSvi3DtkZQgvddAWzMV4bc63Jr/7To6l3xNGHoZAA fO97SCLceA+rJK1ghmwnaCm3B1lxDTk= ARC-Authentication-Results: i=2; imf02.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=VQTbqhcC; dmarc=pass (policy=quarantine) header.from=amd.com; spf=pass (imf02.hostedemail.com: domain of Kalpana.Shetty@amd.com designates 40.107.243.74 as permitted sender) smtp.mailfrom=Kalpana.Shetty@amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1654852046; a=rsa-sha256; cv=pass; b=quRCi+So77AUUt1aFIn1/jcN8DY1XehEa1LG6arCPwF6tygafYRQ55evFH5gqNW4iyqv5z GV94PNxBZUNQUPTJfLuAJg11MBE4bhCzrUfqjhmoMW4w9C5zbmJhgZ+/1qzFLp4Hmv8MYC dQcvdg5efDStUoc2Nu6VfTYZB5Z6CwE= X-Stat-Signature: drc6y8w13h1nruke5j5cx98ztgh5euxe X-Rspamd-Queue-Id: 212E68003E Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=VQTbqhcC; dmarc=pass (policy=quarantine) header.from=amd.com; spf=pass (imf02.hostedemail.com: domain of Kalpana.Shetty@amd.com designates 40.107.243.74 as permitted sender) smtp.mailfrom=Kalpana.Shetty@amd.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") X-Rspam-User: X-Rspamd-Server: rspam05 X-HE-Tag: 1654852045-667608 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000033, 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 V2: * Added patch description. tools/testing/selftests/vm/run_vmtests.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/selftests/vm/run_vmtests.sh b/tools/testing/selftests/vm/run_vmtests.sh index 41fce8bea929..54a0c28f810c 100755 --- a/tools/testing/selftests/vm/run_vmtests.sh +++ b/tools/testing/selftests/vm/run_vmtests.sh @@ -179,4 +179,11 @@ 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 [ $VADDR64 -eq 0 ]; then + run_test ./protection_keys_32 +else + run_test ./protection_keys_64 +fi + exit $exitcode