Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1698647iog; Tue, 14 Jun 2022 11:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGsb/CetI/hlmI+cFAot00w6ygrvCFsIa6xQ+c9RpcAcxZiC+IFb2cpiUyo6S9SeS/nkM9 X-Received: by 2002:a05:6a00:24cc:b0:50d:58bf:5104 with SMTP id d12-20020a056a0024cc00b0050d58bf5104mr5915797pfv.36.1655230219055; Tue, 14 Jun 2022 11:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655230219; cv=none; d=google.com; s=arc-20160816; b=gKHUiJhOCg7j5xpkMGKrUS6JwBmmhMdtfo9qegCo0kWdAj7Pezy1ftDkzRyCM+yyal SwaGFVu0EUlQ693V1Y0EmQZqEfLvQWObrBl0vkmtacxnLqR3PLyfjy+Xc48ImG+Z2heB Vs6N6dju+yQCWe4hgiVO1ja8DLR83pFfmush2YtvsDBnXCoa2QDddjJWeWHioRn5qykL umxk3m+zru/A2rRC+t/VxERiaHjddQ4eUbCvJVSR1Y0jtLUGgfoTP84LhsASJ9jo/XAu nJSOBjyNoY9CVYWyeG1rsfxcPasskLf0/VmsPTCn/HxPq9IIh+vMXuU/bylvLZIYgBtu j+wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=hg6Vqov4iXvBWaAWFrjzE3cJyqu2kSLgOmZIB62TeP4=; b=Zt3zCtJVc3cMtkMlThOUzTwuey3P03fxKQYYi6EXKfOuOX8sbFEp1fmGMIRLEtSlPS VnIfaG1396xjSGMSmASYBNLVOYb1cxVnadzKBYa55T/WqzJoSLKEHEad+tOpVC+CcElo pVbb6Zmi5+88guRiYVd+CGVx2UAB+SP4ZgSHg+/v3v/CkGihj6X0jaJC7pDoNgbBxR1i n1Q6zQdtyvTYmGMYJs6VhtKn6D+pk1rqj4Fx5mAGAuTV/MzMTptrBPDxX/53oM4x3BEy PBX0W1igHxiga7zYZ+Kpnz4lIBxJlTzSjvrEzMh4FKkCO4Lab7M0540FMmGrlRc3GuNg WTKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=ZkUTOL7K; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a635505000000b003fc826f6ac6si14549770pgb.172.2022.06.14.11.10.06; Tue, 14 Jun 2022 11:10:19 -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=@linuxfoundation.org header.s=google header.b=ZkUTOL7K; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344158AbiFNRU3 (ORCPT + 99 others); Tue, 14 Jun 2022 13:20:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237731AbiFNRU1 (ORCPT ); Tue, 14 Jun 2022 13:20:27 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 802352F00D for ; Tue, 14 Jun 2022 10:20:25 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id s124so12477460oia.0 for ; Tue, 14 Jun 2022 10:20:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=hg6Vqov4iXvBWaAWFrjzE3cJyqu2kSLgOmZIB62TeP4=; b=ZkUTOL7K1RF/aEE1Lfl/rHZMd5mzmuyLkpzUflHyzVmXEl0/ykuBz0T6xVQIEM/eVN s/D90OYveIE+nIbTNu4ml9ME5ulVcDOTtFLHdbYk6gxDJhzCQ86LnuIKbK3IMvRYtkht 733KAbrSO+4Eg6Xfa+qhVujYC0UKgFD0zMnGU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=hg6Vqov4iXvBWaAWFrjzE3cJyqu2kSLgOmZIB62TeP4=; b=OBOP4arxCP9UYTjEV8maidv4U+jfF9Z194CfBtoHcAggAU+TZXKzaLKpnpsF3cSeAO g9iBIiPz9K9ADdOf/uSv78BM1FPy4k39qoLdekjptl9imUpoqPc1Lnf0nMdwO4cDDEkm j+F8ywoI3xSyhj/2yH4mAcFk4DP2kEWTfJmykQdVabP9KVM36qRwHIisPoNjAu0Inu0A IkSg8QDyChLT5k8RojxXzVgFuLspB3vbGx2u1+Xxbdc7ED+G9AVRRyPzuAnPIrDzy4TM /u/0NLWHu6VTNDkTLUCyPfCvL+HlXnJXQHYgskPrAGKudKykf2wAIYqdkgxRWlMd4YQb e1JA== X-Gm-Message-State: AOAM531H3nb+JGphkd90HQpMxtFA6pgp9tzLN2sGwDttlKqUKePWmHGb L0sWd7IrFkTe2MRaZwQ49Iu7+Q== X-Received: by 2002:a05:6808:1512:b0:32e:f1bf:b8f8 with SMTP id u18-20020a056808151200b0032ef1bfb8f8mr2555983oiw.81.1655227224787; Tue, 14 Jun 2022 10:20:24 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id h4-20020a056870170400b000f5e33aaa66sm6074177oae.0.2022.06.14.10.20.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jun 2022 10:20:24 -0700 (PDT) Subject: Re: [PATCH V2] selftests/vm: Add protection_keys tests to run_vmtests To: "Shetty, Kalpana" , akpm@linux-foundation.org, shuah@kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20220610090704.296-1-kalpana.shetty@amd.com> <8e7fca3a-096c-7d6c-e43b-9292995ab970@linuxfoundation.org> From: Shuah Khan Message-ID: <2f157493-02ed-4bc8-6624-b7d077c0d5af@linuxfoundation.org> Date: Tue, 14 Jun 2022 11:20:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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/22 6:15 AM, Shetty, Kalpana wrote: > > 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. > > Okay. protection_keys_32 will only be built on 32-bit system and. protection_keys_64 on 64-bit system. Won't it be better to check if binary exists and run either _32 or _64 instead of checking for VADDR64? thanks, -- Shuah