Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1752856iog; Thu, 16 Jun 2022 13:06:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t+DRBHRnWsvmW4Pxm+RYhP55HozbIcxVIbFYaFWasl7OcS4XxI+OVUMD7VGCjRjzpbiEXi X-Received: by 2002:a05:6402:400a:b0:42d:f76a:78a2 with SMTP id d10-20020a056402400a00b0042df76a78a2mr8544745eda.247.1655409978797; Thu, 16 Jun 2022 13:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655409978; cv=none; d=google.com; s=arc-20160816; b=EtioqZ7qRUPcd20fhA5nKx7jdGhinphxJzkwurTHUz3tEPgeSRZncGpwHGsuQmZs1h WAZ5Lsf1XgEf0G9kLt/UwyLp8HLbeUMUdLHFwMgLM3/7F6b+evFNBGCE3gHURYagmciy +aUp4lwHc0O5Oh758hz11Na5pSAsZOOf9T0RcUEamX6bF5zw51ywe36P7fDWF0Gxc9Vg GdrCR0vPGiCdSzcJ5abEz4MdWpZi+GXintub2PtF3PD1CxjPw46kYKQ1NbcfE6qZqnem CuPolg61uQgPcQO56YjNq+PvPQbr7/anKdk7iLZfrMVFSCAZW27ukzcb1YH9FcY8Hvoe k3CA== 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=EfwlzFckWlUMOMsTP0CL3PI+ky24pigsEudIsOwrRdI=; b=i/jw9nK4+45JV0sXrXwvB3TY4UEYCSu3rwPTGU5eLZG4T+MRbi0H6AP8MIp4M09mPb p0o93YX/5HT2L9motPwdW5+fekeO6k3yj1s/Dzpk8pKrQi3LdbGefRXhqbbL0U6yNgsC X/ThNOTPskRl4vU9EelraAjgI51af+QUg/5q4jNLoUn1PEic31GwjTYBnXRqviwYR+9d 2fHCIQbPDd2RuVC1Noc9DATZcX1Rh7GRFcmsdqpLjbAJHYTYPpNQiLG2YoowMLKitJVq duxq6Ahf5AvGjzO0rlk46oCt9GH7l3y/rd/hLMA7Jf7ZpYKCUdaLUg45+Crp5WDCf8Hg Ps0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=XoPuikzI; 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 l19-20020a170906795300b006fef110c5a4si2922545ejo.968.2022.06.16.13.05.52; Thu, 16 Jun 2022 13:06:18 -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=XoPuikzI; 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 S1378441AbiFPTxd (ORCPT + 99 others); Thu, 16 Jun 2022 15:53:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378437AbiFPTx2 (ORCPT ); Thu, 16 Jun 2022 15:53:28 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C046046C83 for ; Thu, 16 Jun 2022 12:53:27 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id v143so3039917oie.13 for ; Thu, 16 Jun 2022 12:53:27 -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=EfwlzFckWlUMOMsTP0CL3PI+ky24pigsEudIsOwrRdI=; b=XoPuikzI8T2Enhg9yfnoUEsHSfpocokh8nllyr1EvKnLHKHH4KdJvmE92GdcBXQTqL SIqH+LyXNQuPeYMKv2+GgRBjzAY/Wo2nXdujrfOBqa18SykwVVb8o7J2SD1N1Zyulv6U U7cG9kZdpphOzt4EmU15Cpd2aKe9vUoP7oJTw= 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=EfwlzFckWlUMOMsTP0CL3PI+ky24pigsEudIsOwrRdI=; b=KjLmmV3gCkcCuBfCrB8r0CBtSxG/DFQevRI3WCT6HCcdpdYzePhrpOoffmMrcFbyrF NQFcx4OV2Pixz1i151vLngTboaNG/sHXaLaIjQ89vTyGbk7J61mEmDopvNT1gC2y/gtR HNqvkRxaIHkC5GibnM2lBzsEa/1WWM2iN1tRd+xNckgnSSZt0VqzpYdrGgjBn0s1ta37 9hqVgalDMmJIba4sTk1ZdKJgovlItY+NDa1kxGwYtTuy+Mwp1fx14p382+l0yLJdiQZH 9qbrxeaNdGx4ie8M10+keramGxsI379KRD0MM0atCORJ/ewBfYCSNG7pv/iDJzdc8J9G ff1g== X-Gm-Message-State: AOAM5322uIgf9TVa/7furMs8vIGgQqnkgmzN0lfLJoLmmhm1CZNmH1hw OHts0rM9YI2SmoeswjxFNoEKaQ== X-Received: by 2002:a05:6808:2003:b0:32e:f319:456f with SMTP id q3-20020a056808200300b0032ef319456fmr8647466oiw.226.1655409207075; Thu, 16 Jun 2022 12:53:27 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id z4-20020a056870738400b000f317901b29sm1374116oam.4.2022.06.16.12.53.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jun 2022 12:53:26 -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> <2f157493-02ed-4bc8-6624-b7d077c0d5af@linuxfoundation.org> <442c7cb4-7ec5-bf34-b9d6-ce9480b4b491@amd.com> From: Shuah Khan Message-ID: Date: Thu, 16 Jun 2022 13:53:24 -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: <442c7cb4-7ec5-bf34-b9d6-ce9480b4b491@amd.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 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=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/15/22 6:04 AM, Shetty, Kalpana wrote: > > On 6/14/2022 10:50 PM, Shuah Khan wrote: >> 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. > > On 64-bit system, we get both 32-bit and 64-bit binary. > > >> >> Won't it be better to check if binary exists and run either _32 or >> _64 instead of checking for VADDR64? > > makes sense; > > In this case on 64-bit platform we would run both _32 and _64 and this should be fine. > > Okay - send v3 with the change. thanks, -- Shuah