From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D90FC25B08 for ; Wed, 17 Aug 2022 13:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236789AbiHQNmU (ORCPT ); Wed, 17 Aug 2022 09:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236670AbiHQNmP (ORCPT ); Wed, 17 Aug 2022 09:42:15 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24AB7C777 for ; Wed, 17 Aug 2022 06:42:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 55C43B81DBA for ; Wed, 17 Aug 2022 13:42:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAAD9C433D6; Wed, 17 Aug 2022 13:42:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660743732; bh=kY4vSut8mU6qkjE6ztq6a8eHCDWj/0xM92k0oOxlBLg=; h=Date:From:To:Cc:Subject:From; b=uT6cxCKhhpbhOEo+AUr+JwpDFQ6+88F4/213cDluMv7s8DkDoJI8gc9fH+a/OHyhG lBK94vcSkiJ3/4RaVUrL9c5GZulypHflXlHwJ5KPJwDVWmkX/wJdsOFva3cGH9dLWa 1bAcI/ZMvXIZVyQA/X6IeXZhDcq98p55QZu8uWCDh7OKZWHPTmgpf0qBjA6J1jWFhA dwx5BYeytM1dJ2SGMXwyLPGQLRcttoVjnl0LDDMizgBDxjCzHH/lFTgrXwDGIL/3xY tUPibeSBiL1/8HZP666giFKQ8Qrvuqy356L8KGo7qSyKmf0IhUfzScEBJvLdP1d7Z2 BKX+tviBwdX+Q== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id E7BF04035A; Wed, 17 Aug 2022 10:42:09 -0300 (-03) Date: Wed, 17 Aug 2022 10:42:09 -0300 From: Arnaldo Carvalho de Melo To: linux-kernel@vger.kernel.org Cc: Janosch Frank , Pierre Morel Subject: [PATCH FYI 1/1] tools headers kvm s390: Sync headers with the kernel sources Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tldr; Just FYI, I'm carrying this on the perf tools tree. - Arnaldo Full explanation: There used to be no copies, with tools/ code using kernel headers directly. From time to time tools/perf/ broke due to legitimate kernel hacking. At some point Linus complained about such direct usage. Then we adopted the current model. The way these headers are used in perf are not restricted to just including them to compile something. There are sometimes used in scripts that convert defines into string tables, etc, so some change may break one of these scripts, or new MSRs may use some different #define pattern, etc. E.g.: $ ls -1 tools/perf/trace/beauty/*.sh | head -5 tools/perf/trace/beauty/arch_errno_names.sh tools/perf/trace/beauty/drm_ioctl.sh tools/perf/trace/beauty/fadvise.sh tools/perf/trace/beauty/fsconfig.sh tools/perf/trace/beauty/fsmount.sh $ $ tools/perf/trace/beauty/fadvise.sh static const char *fadvise_advices[] = { [0] = "NORMAL", [1] = "RANDOM", [2] = "SEQUENTIAL", [3] = "WILLNEED", [4] = "DONTNEED", [5] = "NOREUSE", }; $ The tools/perf/check-headers.sh script, part of the tools/ build process, points out changes in the original files. So its important not to touch the copies in tools/ when doing changes in the original kernel headers, that will be done later, when check-headers.sh inform about the change to the perf tools hackers. --- To pick the changes in: f5ecfee944934757 ("KVM: s390: resetting the Topology-Change-Report") None of them trigger any changes in tooling, this time this is just to silence these perf build warnings: Warning: Kernel ABI header at 'tools/arch/s390/include/uapi/asm/kvm.h' differs from latest version at 'arch/s390/include/uapi/asm/kvm.h' diff -u tools/arch/s390/include/uapi/asm/kvm.h arch/s390/include/uapi/asm/kvm.h Cc: Janosch Frank Cc: Pierre Morel Link: http://lore.kernel.org/lkml/ Signed-off-by: Arnaldo Carvalho de Melo --- tools/arch/s390/include/uapi/asm/kvm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/arch/s390/include/uapi/asm/kvm.h b/tools/arch/s390/include/uapi/asm/kvm.h index 7a6b14874d65c486..a73cf01a1606671b 100644 --- a/tools/arch/s390/include/uapi/asm/kvm.h +++ b/tools/arch/s390/include/uapi/asm/kvm.h @@ -74,6 +74,7 @@ struct kvm_s390_io_adapter_req { #define KVM_S390_VM_CRYPTO 2 #define KVM_S390_VM_CPU_MODEL 3 #define KVM_S390_VM_MIGRATION 4 +#define KVM_S390_VM_CPU_TOPOLOGY 5 /* kvm attributes for mem_ctrl */ #define KVM_S390_VM_MEM_ENABLE_CMMA 0 -- 2.37.1