Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1400103iog; Tue, 14 Jun 2022 05:30:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDhdIOcZrpKpmZuAlowu8ljOBNprMBuREm0uhSV7o3eLkMs2MkN/lY+HLKD2OmgbiF23uL X-Received: by 2002:a05:6402:368a:b0:42d:ef42:f727 with SMTP id ej10-20020a056402368a00b0042def42f727mr5763421edb.204.1655209810844; Tue, 14 Jun 2022 05:30:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655209810; cv=pass; d=google.com; s=arc-20160816; b=Y3EH2woSQZltrM2SJ+oUwAw6dqEEUI2supCSLAieSqqDSf0RrdrZf/bH67QfnmjuY6 MmwIZAv9K8KYxxoQhAto5IKZ4pqPbddXSfX/DMbwxvmFE3KLUhrnbwIrV3BHEEcr15a3 jiaD4j4VLMJBSRJTC+3RgZocUXqniEQuh6f6URHLm/MfK1svAL50O79wdQKL+jIKLFDj 5re9FrlL/dT4aGe57XV6Qj23pC9bgwxQ/nzDNi8ZpApixR9L3OC5gv+BDXilkXtTZ54h 14CtKy7hC093VcFZy8dLTUkdtZM/EVKQ40I4Rpovorgh1iTMALMySKmPbNz/w5wC+Ehd lHOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:to:content-language:subject:user-agent :date:message-id:dkim-signature; bh=5Bx1UivNzjf3mg/aro47NJr3P633/rSNCtPjp4HeUXo=; b=yIlVGQHDGNrut0zhpq6IR0m9PFe4Sp8bNiL0851YPDIw80e8oijltnVqj28MGKDHqj qTtZENLhYREeaT05hVz5QMxRU4PZvMJeoyUiniHFNN0zwt3W9Pu+oINO+/vUPl9bHzzU qkkW3ORCCvXdmECCdovfe2vSvVnFdf7vkNwZfR9eH3juHgFA/9z91kFDvDQFxLq7o9xS 0F+yRp/6MiT+slKFKjgUbD/mEy19MtZqBR+D1XDAlyqVQmxZwC7Kx4VA/QPYrLOkrgoA 2Q3mN1vayRcMH6mSdWibdReOozDbFomsVZ0q2TKbCht69iIvNvU8UiSLkLlVdeEvGwil FM9g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=wHAhw9LQ; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m6-20020a17090672c600b006f3a0ad9695si11445122ejl.81.2022.06.14.05.29.43; Tue, 14 Jun 2022 05:30:10 -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=@amd.com header.s=selector1 header.b=wHAhw9LQ; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237722AbiFNMT3 (ORCPT + 99 others); Tue, 14 Jun 2022 08:19:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356752AbiFNMPz (ORCPT ); Tue, 14 Jun 2022 08:15:55 -0400 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2087.outbound.protection.outlook.com [40.107.92.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADB7326D1; Tue, 14 Jun 2022 05:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n8Ar/a3WwzbHpgOytoNaFtoNHMugRY1lORlJjEQ6KIJPB8hfDscFE+BXtWOvN7Ow3dxIe2AqIhuaV8hLoC3HIFK0NVDSFgEY4HQC0QnIZf3c/WjH4XJInNMh7KK/FmwzdoVl6OjSKyzdLMF3VdzRgZN4f6QLjyYfhHL/AqNZYLK+hHxFsyIDhMnHsYMtv2pLv+eq3IYw7IF4D1Fnb/KDhK0+5w+5LH521Uybjc1ZhcpESsl86+XWo3AaysK70EAFtYewNWxkX/Bk3IENVNUsyC3PJ0d4GCEUokm66vy44lYoybvOOfyt1ZqMjOBTKSrwQhVlau7qRYcOIHgsHJeqEA== 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=5Bx1UivNzjf3mg/aro47NJr3P633/rSNCtPjp4HeUXo=; b=CRLiRnivYzmY/CJosDMB851Im9msBq+tQe8ySMNmH78ArSUDMcMTdQIETB0wJDBl1KMkWORlqjaU2bNNC/R1lTuP/HXSN/QAJ5+O3QPQ4vIzLomhRmGP7afQMIZp81MDgSKSW4lyDiCX/LPJT9tvMtgiimywBwWyL4xN35YKxF0GqTVcE+U5BE43vXqQfQw+KzWZ/Pu4ECKOPWFLNoT5qlv+/qU2JHLgKJ1N0Z644NGCcsxGQ4EzsYIp8cnFiIrR11qRmtTRKY/eJAdG+2yGsK3LOAZjiv31GEKdvvjIa2wZDPp4MRII6CYHouuuE5GeBn0F8+CWIRltEQfAGxyB1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=5Bx1UivNzjf3mg/aro47NJr3P633/rSNCtPjp4HeUXo=; b=wHAhw9LQtDICFJgT+G6gdBHfv/9aJNEBX4PnGIpRHXNiU2qaDKhRxxsF31By0mC9RSOWiDi52gQEh8tfG84CX59SI99uFpJMDlPBG1cqKPFf5tWfRuygbWdgWMy8GL0Te1jFwhkg8yjrnlNHMTV3//dnro2LVgKVx8nYG41MDs4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL3PR12MB6449.namprd12.prod.outlook.com (2603:10b6:208:3b8::6) by CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Tue, 14 Jun 2022 12:15:52 +0000 Received: from BL3PR12MB6449.namprd12.prod.outlook.com ([fe80::5552:c915:15f5:cb5b]) by BL3PR12MB6449.namprd12.prod.outlook.com ([fe80::5552:c915:15f5:cb5b%9]) with mapi id 15.20.5332.022; Tue, 14 Jun 2022 12:15:52 +0000 Message-ID: Date: Tue, 14 Jun 2022 17:45:31 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH V2] selftests/vm: Add protection_keys tests to run_vmtests Content-Language: en-US To: Shuah Khan , akpm@linux-foundation.org, shuah@kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220610090704.296-1-kalpana.shetty@amd.com> <8e7fca3a-096c-7d6c-e43b-9292995ab970@linuxfoundation.org> From: "Shetty, Kalpana" In-Reply-To: <8e7fca3a-096c-7d6c-e43b-9292995ab970@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PN2PR01CA0097.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:27::12) To BL3PR12MB6449.namprd12.prod.outlook.com (2603:10b6:208:3b8::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e461d4ce-9ad9-409f-8584-08da4dffa012 X-MS-TrafficTypeDiagnostic: CO6PR12MB5427: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: WkftFjrdvmJeZzOJi0I0dLfVckQRJlQhL0TgA9oUizEd1qf79136Ztmg3EGyfGJLHe+8EcwjI6+DijV6yYi5/wztSBBsa87Yklp4/DUuDbP1Ux74v0eqsqtTOstDA/JnhY5NQ/nBc05DqlGz9axk/ph2XoLFcMKZp9l4fFRewHZtZAX3mrWNp2boP5p5m0BcThv0yzf5bZKtIlimZC7Z16VkS82WoslT6PRvwyoSO9CljU2ZcNj7aQOqerKIEFUUGgbt/j5xcSOtRRLS5eHIliPLk7yFghXd+egHSrI1Dh5dOKNsky1QH7UyTs3ab2mfy0d43xgkwkTj4C2xSjeYP/OQyBytYITxdKKWA2KvV+v9smlECj7VZYZQ3Urh14gvv0+HYrC3kj0gJtGcapOw9eK82QtzWW4Nz32AyBmn34VWg2T8WtPBJzDRqaqffDQHA0KtUPMqORnUEM4Vq1H5ntv3QOUYMKnguUxhha9wNeAJTvJdyNda92/duXMyHEcRJeTeeWOd+slU7QU2tKOTT/Qikb2LqLeaQ1RkPCMtlyqA2i4lTgpf2Ujh85k8ADrZKg7UtPiTNeNMyn+z5MR6Q5JCJkAza1YyhsfW+xySEU6oum5qzVsq/wlaZW3bSirUxSPZUHajGYnSyfvdITPqVtM5YiLUDyQQi2P0EaxwJ7e7o7WJ77vm86w9R9iM58ydAmV0FKn4C2ljERZU+ACP26vmvnYsQCiyXJM4C0yB5fI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR12MB6449.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(366004)(2906002)(26005)(6506007)(36756003)(53546011)(31686004)(38100700002)(6666004)(186003)(316002)(6512007)(4744005)(86362001)(66946007)(8676002)(31696002)(66556008)(66476007)(6486002)(508600001)(5660300002)(2616005)(8936002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MXNYcmpIRUtrdVdRWW1SbUYrS1crQ3RjdENXS1pMUzIxdEU2bDQ4Z1BJa2xk?= =?utf-8?B?Z3hrSWwzQm40UUxhK28rREw1TlE3aXJIcGs0TUtFcmdpaWZLcDN1RFFjbmxR?= =?utf-8?B?Sk1POENtQSt6azJRNXpBbmdvZSs4ZHpXMmJMS3JLcEJrOVk3TCtGN1NHYlh5?= =?utf-8?B?bFY2RVhBRUl5elE1MnlCSENHS0FBNTRSM3hrd0hOM1VFNW9nS2VIOFNvNG4y?= =?utf-8?B?S2poTjJtUWlQaGJ0MzRHRGZ3N3ZEVWhoT0ZCUWoySElMRUpRcTJNUU51UHc5?= =?utf-8?B?Z281QjYyY0djbEVpWEtpQ1EvTmprQUxwUjRiUUFsY3hBZzZUemcxU0F5ekg3?= =?utf-8?B?NzgvNjJ0SVpoODRwV0tUajhwVnhTeHVSM0wxUkcwalpPcFZxaE9qNDBvTGxj?= =?utf-8?B?ckQ3OXVkY3F3ZnRycWhITVlRYnN5aWZEc2xHVmZwQWhIK1dxQzB5TmR2QmVh?= =?utf-8?B?a1NTMXVKL3RpYnRuZ0Z6aC9WbVFBcU9EQ0Uvc1VvL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J3a1paWHVnMDF5QT09?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e461d4ce-9ad9-409f-8584-08da4dffa012 X-MS-Exchange-CrossTenant-AuthSource: BL3PR12MB6449.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2022 12:15:52.7351 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sxTvmYFE3uPhm+aVcBLd80mxHzAhvUxZyDQxc+fpJc9aJ2WPMszsTSpoR4CMNB92rBalslr+78rkx/U2jA3xvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5427 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 6/14/2022 3:14 AM, Shuah Khan wrote: > On 6/10/22 3:07 AM, Kalpana Shetty wrote: >> Adding "protected_keys" tests to "run_vmtests.sh" would help out to >> run all VM related tests >> from a single shell script. >> > > Makes sense - can you explain why you can't just run > protection_keys_32 without checks? Yes; we can run protection_keys_32 without check. > Why are you checking for VADDR64? The check is added to ensure if the system is in 64-bit mode before executing 64-bit binary. > All of this information helps us review the > patch and give you feedback and suggest a different approach. Thanks, Kalpana > >> Signed-off-by: Kalpana Shetty >> --- >>   Changes in V2: >>    * Added patch description. >> > > thanks, > -- Shuah