Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1280165lfc; Wed, 1 Jun 2022 14:03:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQx9MC5cUVuNrU8cNk9OqUgOO4sqWZgiwP3bdKUS6ow5ivf7L8XlLiGb2yX2jfowRCgu+/ X-Received: by 2002:a17:90a:9505:b0:1df:2162:2bb5 with SMTP id t5-20020a17090a950500b001df21622bb5mr36300068pjo.73.1654117423073; Wed, 01 Jun 2022 14:03:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654117423; cv=pass; d=google.com; s=arc-20160816; b=t+dQ/sAfie09h+uskzb0+YRJT9SJW8CMxeCldPeyIHDh6jZPFKjna39zQVnXu9jFQ4 B0Wz0pbz7W4AeIl/ZAgIGW6/7TJGA4MNNXgTZold1j2j2mrIBVxA8G9KnkZV2jeyMiH7 l/v/cfPBjUsejOnBqYadohL2h9nZFs0tt32WB+rsmHJt1+JnktzrUnAr1UgNM0g8/TRO L7DpJCf6E+Pe5+NapNF6ZIlv6+ToYWvPb5Xu1Y/jqvQHl+fmKMSha1irEyd7y58iCHQy gZ3MFS35uI083bGr7sDQKKn3sIM8YgwkEpqlhQ62eWTLe2/Wmt70x6m2WDVweNih3izV 8FBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QJX1uA7oETMcV1ZH3z2h/YGaS3CjDIJPzGTba67rdl0=; b=p2ibfkthgqSdHQ9ITHOP5s+Nxj46OkF18x4/uNmb5jWhMG7XrMfVv3UtCVyNGEywmL OPVXFMXK2As2MTU0NUolkTcATqQyNkMtFoA0u0sp1PqdOTpc4jl+k2Ho0Dha8rBdLdZb Yp2abqilmMp6kYkgXMCb0ffcBqr7gmAhoXp7CQxTAFclIrv5M8sTovPHE8OEqoxFR9cq Mv6v74759OyFcr0rmwvP9br5awPYKILBBLEEBPPrGNaMAaP0W64v1slhtl0h9mhVxfp7 CFZ0U0BvVJlTBdCsODizTEDKyHwSUr++76wY8Pw/66pTHn6B15+ZOdGNh+QogehqZBF1 wR5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sLvwR3Gw; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h4-20020a170902748400b0015838c0eedbsi3023054pll.506.2022.06.01.14.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:03:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sLvwR3Gw; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1F8E32EA406; Wed, 1 Jun 2022 13:09:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245660AbiEaK0b (ORCPT + 99 others); Tue, 31 May 2022 06:26:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235863AbiEaK03 (ORCPT ); Tue, 31 May 2022 06:26:29 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2057.outbound.protection.outlook.com [40.107.92.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15BE1985AA; Tue, 31 May 2022 03:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Invd+Q8CenjwotI7tXIqJBuTQ2Nhd89c/zu5VG2WAgT9Tcsy60eSupHQJDpjWgQslSM/keh/1oH92e/cV7DNp8db888WjhEmwsMIbenVJZbT0GujMkLg1Neucv59pGGhwfhmsSgkEbQlIxgwMjXouiY9eoQhmC6Yl7raF5f2JnOfaWD+KUBqyPie9PYMBhaLMaYA8u6oQZRnOp+mtBp51sIq3AM+cr9BVTn55YGypSVm8WDC7gchkG8q8VJlae67J2ho+bQ4kGXhCMolm/+AJnh0nRiCxMdlQRdm8J7ajBxhzrRwSqDoUjhyXA2NUnYYK6xO8sf5tqAfPTu0ZOf/Aw== 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=QJX1uA7oETMcV1ZH3z2h/YGaS3CjDIJPzGTba67rdl0=; b=eNu78ntq8lzzZWJYS67f8/2VYCOOKEOmqbjFIaZqyhgHSamwJAk4NNK+hRkNFf1F9pQC9ocDX4mLV2ErPMSZvyo02U/ETRzM6l2hIyKpNoQu6PxMZLhUgAr5fQSfXZ0jTawg/mAyUxrYpeYWcMGjQchqtabseMZxKdMBmYwBa7Cn8o/ieuRq30yJstF3r9ipmXi/yz1q2/LABaf/GgT1Fz41a2RMyOkJqvEtc5V33b5f7e0bmV4Zff6gFgfnhHFKTFkmlISjYEbcoe7twj/DGjF2W6Z9xHKZkgbNxMgDcw+8LmRdeVY9UuXIIypaAxKM1V9d+7Pcb2pIxNdeY0xXnw== 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=QJX1uA7oETMcV1ZH3z2h/YGaS3CjDIJPzGTba67rdl0=; b=sLvwR3GwHBOjYGNgMcGXdlrg+tJBsR5YByG1pCEEXgtQxM19fW2dB8kXT2SIsoRJNYM/1/OM/c9WlDMCEyix/y2ANjedeuTMg0yML5KoWHG8xBco/7E43UDukADZjX3z9CoEC7CgePW7CzdqyZYQAcGFPTD+/9ioQ3CmAQP86IQ= Received: from DS7PR03CA0161.namprd03.prod.outlook.com (2603:10b6:5:3b2::16) by MN0PR12MB6079.namprd12.prod.outlook.com (2603:10b6:208:3c9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19; Tue, 31 May 2022 10:26:25 +0000 Received: from DM6NAM11FT064.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b2:cafe::f6) by DS7PR03CA0161.outlook.office365.com (2603:10b6:5:3b2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.13 via Frontend Transport; Tue, 31 May 2022 10:26:25 +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 DM6NAM11FT064.mail.protection.outlook.com (10.13.172.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5293.13 via Frontend Transport; Tue, 31 May 2022 10:26: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; Tue, 31 May 2022 05:26:22 -0500 From: Kalpana Shetty To: , , , , CC: Kalpana Shetty Subject: [PATCH] selftests/vm: Add protection_keys tests to run_vmtests Date: Tue, 31 May 2022 15:55:56 +0530 Message-ID: <20220531102556.388-1-kalpana.shetty@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: ce5024c2-1266-4834-014c-08da42f003cb X-MS-TrafficTypeDiagnostic: MN0PR12MB6079: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: SE3Kru0XvSCk2/N/3i/9bLJXTncGZ/4sUMkbrBVRnrg8JoAK4Ada94nJkcj3Sp4ZuNnlecFfjD1FoPfs35dgkTTKfCb8+zzNV9TlcpyksFCdO8Jpl4bQsbnKeC5Io1MXOb9PHyy+jqbKvtp0F8iUipcAMw2jtyrqgJCWUAQ3vUx0K6qX9K8TVGxy/L50TAOSacXSD+qv1RwKXtEdiiNg83Ow43LP6peBQXpnRH8Vuwar5+/LD2M1gJxivjVpcMG6kSe+AkFcXeb3wc7DISyaKWxVT8LjJmvn67kIxjBi6DcePQGdyqTI4/1DPfckMX2WB8xzPY/2brLeWt1/faskknUb992YJ1cL4crpEZoF4Wo554MfMuY1Q7Z7slwBlrivzTh8tBvwBA/2qlp59hJ48AztW5ioWmRjfy89Ug4zpJg3/MDnI8mF6Xz+CR4BWLLi0vbkmAdX7jdZTzEul7LTXKLVFUhGgp4cpMGorkIIVka23DSbNRcUz1YOPHQohFalKYuRoa0bKRfjZau7z25s+NMmi4IOagOf5nst+SYRk7MzwHCy7l7wLZvKj4aJ2DBkJIQs5V6vvOtRxbssfE7eGmIlbVt5dFD+0Gp6o01g1PRifpM3lQHJBmbAtqiyOH73nFBdTajB4tKToDTWyi99l0mvRK0U288OeNVOlWmh+nI/l+gdGfM689s3jep4CPzLAiuNc1DAwOFC5T5ow6GKzvoQmK8McrqDOQp8XAGJvSg= 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)(70586007)(36756003)(4744005)(86362001)(40460700003)(70206006)(110136005)(316002)(5660300002)(8936002)(1076003)(4326008)(8676002)(186003)(426003)(336012)(16526019)(7696005)(2616005)(2906002)(81166007)(508600001)(36860700001)(6666004)(26005)(356005)(47076005)(82310400005)(44832011)(36900700001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2022 10:26:24.8629 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce5024c2-1266-4834-014c-08da42f003cb 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: DM6NAM11FT064.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6079 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Signed-off-by: Kalpana Shetty --- 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 -- 2.25.1