Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp173073pxa; Tue, 4 Aug 2020 02:37:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+2VGQ5dbSUZEnnePS4u956SaOYXE1VeiY0PIDePL0RWfbl6QChoG+KYyzWhpOTFTWLeEq X-Received: by 2002:aa7:cd6c:: with SMTP id ca12mr4125703edb.365.1596533833465; Tue, 04 Aug 2020 02:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596533833; cv=none; d=google.com; s=arc-20160816; b=iBbX1dSsqU9K8z7/TacL/bsyHqNR5oBGuuOCNGS9xi28UYbD5x39h5SWfSvFFvscYP DtsB6aDk/tk6gsaAuoIx4xY2P5BqKXMoVFofKTJ3ymU29qPCBH1E8Wi2Usqdf+LvQDbw egTn9ZB2Viojy3cvupmZq9C4yRBiZn+CAQoUahIhNUfoEsj0qfBwAUU6g3Scv5B37kQV rP3ObdaVBsvlvuR9EJfWNTyXE7Xieu+sWmETV/4g2Klg2KDyqKQVKm+RoeaP6dE8hbjN zVpglvpHTqtq+16dszVTdfSmRFVndNAdCslv1keC6wKZBdYdmihgLtsNnXg7XLIZtE1u BHvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=wEB5a4njQ58dHMB6vrsAAFHIpF0VGTRC2TFBNuobWc8=; b=jbVUVyOX17v5i+zA1idbmf1o0hsvCgVgGwiHIsz6t1YVmEQotCQIuToxBL6OG5ZHFc tzZ0VkHPMBEygVb0Ha54izdW8ria725LFfh2I9ogdl4vu3ymSEAwtruCp4ZFvubrFD3Q PhPmtpBCg5JO5JgCVfxOYHBfhs2ldtLOtA7Syi+fz+iYfAizc2AM7KYLCj1tiriFpV6f bN/CrR4Dst0xs9Z8kZZvmLpAE0tUjmXyAlZke/B87XZZEBbwjjPzCZ2Y+6aRVAmQU3qX 7hHkmvOXSP7HG/OERmhcxRsUBFx0sjo+Afou86p4BQeqZWqpqkmVtKOTJVSNlBsmGxGg 7zNQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si2033335ejw.738.2020.08.04.02.36.51; Tue, 04 Aug 2020 02:37:13 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728121AbgHDJgh (ORCPT + 99 others); Tue, 4 Aug 2020 05:36:37 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56258 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727919AbgHDJgg (ORCPT ); Tue, 4 Aug 2020 05:36:36 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0749W6VL013385; Tue, 4 Aug 2020 05:36:31 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 32q10k712p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Aug 2020 05:36:31 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0749aTsM032137; Tue, 4 Aug 2020 09:36:29 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma05fra.de.ibm.com with ESMTP id 32n017swnv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Aug 2020 09:36:29 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0749aQDj24510800 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Aug 2020 09:36:26 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 39ABAA4055; Tue, 4 Aug 2020 09:36:26 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 24696A4051; Tue, 4 Aug 2020 09:36:26 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 4 Aug 2020 09:36:26 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 55390) id DC506E1347; Tue, 4 Aug 2020 11:36:25 +0200 (CEST) From: Sven Schnelle To: Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, hca@linux.ibm.com, Sven Schnelle Subject: [PATCH 1/3] vdso: allow to add architecture-specific vdso data Date: Tue, 4 Aug 2020 11:36:05 +0200 Message-Id: <20200804093607.69841-2-svens@linux.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200804093607.69841-1-svens@linux.ibm.com> References: <20200804093607.69841-1-svens@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-04_03:2020-08-03,2020-08-04 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 spamscore=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008040068 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the possibility to add architecture specific vDSO data to struct vdso_data. This is useful if the arch specific user space VDSO code needs additional data during execution. If CONFIG_ARCH_HAS_VDSO_DATA is defined, the generic code will include asm/vdso/data.h which should contain 'struct arch_vdso_data'. This structure will be embedded in the generic vDSO data. Signed-off-by: Sven Schnelle --- arch/Kconfig | 3 +++ include/vdso/datapage.h | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 8cc35dc556c7..e1017ce979e2 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -979,6 +979,9 @@ config HAVE_SPARSE_SYSCALL_NR entries at 4000, 5000 and 6000 locations. This option turns on syscall related optimizations for a given architecture. +config ARCH_HAS_VDSO_DATA + bool + source "kernel/gcov/Kconfig" source "scripts/gcc-plugins/Kconfig" diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index 7955c56d6b3c..74e730238ce6 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -19,6 +19,10 @@ #include #include +#ifdef CONFIG_ARCH_HAS_VDSO_DATA +#include +#endif + #define VDSO_BASES (CLOCK_TAI + 1) #define VDSO_HRES (BIT(CLOCK_REALTIME) | \ BIT(CLOCK_MONOTONIC) | \ @@ -97,6 +101,9 @@ struct vdso_data { s32 tz_dsttime; u32 hrtimer_res; u32 __unused; +#ifdef CONFIG_ARCH_HAS_VDSO_DATA + struct arch_vdso_data arch; +#endif }; /* -- 2.17.1