Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp916095pxy; Thu, 22 Apr 2021 17:12:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZzqZ/kUq+LGEoTE4yfcLYQq1hc/G4sONqtehAyTAFG6Ky8Hem7lFkYDG69giWZqGqA/Fe X-Received: by 2002:a05:6402:368:: with SMTP id s8mr1216911edw.183.1619136762633; Thu, 22 Apr 2021 17:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619136762; cv=none; d=google.com; s=arc-20160816; b=sgy9rEhMohtOLmiTVqlE28ouV5LmIWDFQiEiXzBHiRwbB8mZV9Yis+WeKE16rFHiCW mjyoUatWOXA5BnR36DbGWlNqPyIjFiNOM3PsHA/tiZvKHcUTRyf+OORwZW89qR/rKGv+ +b0TW2FTcnGwsEYno3a4vU3B/YYzE2Tyq9uR5DOx0vHnfmYWC+m+G+JKDkUh7J7ztxP3 6GL0UekclOUL05m3qtSzyN+1iEMjbfHGO8RKTHeK2ReGJPjZyE46CyIVyngwEPQ9CCFv Gk0kZiV0pH2JjXkrQwZzIX/5fWhCFTdBAPcb3yRgdzxJkT/1W6AgpambrwuQDIz3hEUM MsXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nMfzkQEov6kIVHNuaAn8iFcBDyLGbYrJQC6NcLJ8Y0k=; b=oYfqP3gLV4IkmVoy7FsRbbeFI6hMlnHUGjzaA+es8xp28AxndfkKvFxfkzOu6bgES3 wLsEqBPUzMlDcCfSbTWpo6Cf5XHSDRffdxATTwSpWUV0Lkh/Bjzj896EbjUmPtTMdCzf v3kp3JVfDkIF1gtgq3IAp3dRDhsyAWKjBrLYjugJvK3pgWVmsRGOsx40HOhGQ3fqibwS U5wly9EjGSBZrfi6k9RfcggUJHBQuGNoJXRq6AVCfKUXiXaM2BqlkCy2oWG32Thz44bb fj/8NhmBc+EslT4AtFFuQUQOaQfYdiN4ZGXpupFjdhJ/RB5Dde7hoBPG1wxQIeMMY643 rqrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MOieLRc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si3663035ejl.31.2021.04.22.17.12.17; Thu, 22 Apr 2021 17:12:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MOieLRc2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239954AbhDWAJk (ORCPT + 99 others); Thu, 22 Apr 2021 20:09:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235977AbhDWAJj (ORCPT ); Thu, 22 Apr 2021 20:09:39 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A34B7C06174A for ; Thu, 22 Apr 2021 17:09:03 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id g1-20020a17090adac1b0290150d07f9402so233942pjx.5 for ; Thu, 22 Apr 2021 17:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=nMfzkQEov6kIVHNuaAn8iFcBDyLGbYrJQC6NcLJ8Y0k=; b=MOieLRc2dtfBssKc/drPE5jrnqhvaOSHoX1ikwjvgMyDtGflicbL5w6KTO5ZxViai7 kbByOq81BuV6XajiwS2fhVpdRigaLp8UnuwZjexAwNKeblgLrirAMrEs11+DjBVnj5cG ygYwgdov1P3rUjQ4D6Nx7diFlsnBhOB6L0b8ZTvbyjqFKw0WpxQnhf2+T6Q1q/QIq90d mpdOgZ8Jnpk9RKFnAMLfHdFw8JTdjTISf6yQcL4wxr4GwC/Fj2HJQ+pf3ICh7xPT6YnR oryyzeAOW1bMSYxI4Px1yvJ5zcPtzyY+5AOk49SBpNN426ZjX7VgqrksC1X52ltOHhYQ VelA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nMfzkQEov6kIVHNuaAn8iFcBDyLGbYrJQC6NcLJ8Y0k=; b=DBuqsyW+VcrDPS9oQce4cEuBG9RkEpZUifYmKUAitNjbyuORg5Dhkol0vrSXjhaRor 7GOWeT3k9ZNPlRNSD9Gm6WhzmTyVtza7VZ7CHhzel8GHj5LF32xdkpn2OY3Cx3pAEnLj bcaf+87LsAMeb/EKfKp1NOQGbp68Gd+CX7gdg2tRThNJ0pgTk8BC3wRDaKFphVkYAQUJ QNtIVwjZ12gQXUerV6Dfv0VBjnIUuDpgMgii5qYKz8sJyfeuEc/t4T+jk9TiW7IOgGVH /+x61mRgfYaJEvn49X9SMnR+Bvjpff1OjksGea++CTlBxbA/bZIZAiSqUljhvvfjSkER 0isw== X-Gm-Message-State: AOAM531zPIV9b0xQcDNbI3nyBQNb+RtiCy0pLEJCCFdnrqId0/4QY9vb WwmtTWRReOzqZcF3GO39rrOzgw== X-Received: by 2002:a17:902:e904:b029:eb:73f6:ac99 with SMTP id k4-20020a170902e904b02900eb73f6ac99mr1069354pld.12.1619136543044; Thu, 22 Apr 2021 17:09:03 -0700 (PDT) Received: from google.com (150.12.83.34.bc.googleusercontent.com. [34.83.12.150]) by smtp.gmail.com with ESMTPSA id w123sm2906742pfb.109.2021.04.22.17.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 17:09:02 -0700 (PDT) Date: Thu, 22 Apr 2021 17:08:58 -0700 From: Ricardo Koller To: Paolo Bonzini Cc: kvm@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , "H. Peter Anvin" , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH 3/5] tools headers x86: Copy cpuid helpers from the kernel Message-ID: References: <20210422005626.564163-1-ricarkol@google.com> <20210422005626.564163-4-ricarkol@google.com> <404e903a-5752-6ab2-9b46-aa40f7fb0fba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <404e903a-5752-6ab2-9b46-aa40f7fb0fba@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 22, 2021 at 08:59:50AM +0200, Paolo Bonzini wrote: > On 22/04/21 02:56, Ricardo Koller wrote: > > Copy arch/x86/include/asm/acpufeature.h and arch/x86/kvm/reverse_cpuid.h > > from the kernel so that KVM selftests can use them in the next commits. > > Also update the tools copy of arch/x86/include/asm/acpufeatures.h. > > Typo. > > > These should be kept in sync, ideally with the help of some script like > > check-headers.sh used by tools/perf/. > > Please provide such a script. > > Also, without an automated way to keep them in sync I think it's better to > copy all of them to tools/testing/selftests/kvm Will move them to the kvm subdir. The only issue is cpufeatures.h as that would create a third copy of it: there is one already at tools/arch/x86/include/asm/cpufeatures.h. Note that we can't move cpufeatures.h from tools/arch/x86/include/asm to tools/testing/selftests/kvm as it's already included by others like tools/perf. > so that we can be sure that > a maintainer (me) runs the script and keeps them up to date. I am fairly > sure that the x86 maintainers don't want to have anything to do with all of > this business! > > Paolo > Thanks for the review! I'll try this approach for the next version: copy the new headers to tools/testing/selftests/kvm (except cpufeatures.h), and add the script.