Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp248265pxa; Tue, 4 Aug 2020 04:47:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnkcCPgDJbZ3SAiY4F7OVpcygrxA1fdUyZJNjp8ygahnAikHyZIVGkeEBTc0EndPny5+RY X-Received: by 2002:a17:906:60d5:: with SMTP id f21mr518791ejk.94.1596541660781; Tue, 04 Aug 2020 04:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596541660; cv=none; d=google.com; s=arc-20160816; b=W4lCArSWqSHe+/JBQWO4eTyqmVCuRhIkbLjY7eWmls/9hwBxuW18IBYwaPhHP2AM76 gl2ZU6oGcfy2zgdtbNorWyY4ch+8P7lFItCbppCOIGGtGohioBCJewKXASMhVo5xVyIE DjaSYRRFFj8RgsW6yVaAMyZ7p/C6k7/g8Vx74x33JI8ZR/aj+lM/DnMZJWhqYkfLcN1y 8XlENBQ/28GDp+KSTPwUO2LS2a9TmENJuzU8xPXOzlQ/P5puMNyk13Jg8qzzla9UT8Qd ZjjdhKVQ0rVFqWf0dub1Dzby1UdKjSop86tuZ4BK8cRgXg2F8KPAi6omJ7Tmc4xV2Cy2 bwMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=G6guuNmDqUxSuV6pkupbn76iksu+GSmNNN3i5AbGKP8=; b=DZdqwu/6s8dK4Rm//u6fYyhcRAMsoPISZezS1noJBRjh1Py9g+6nfPwzkwh3Smpujg U5p3dVgWGVxsY+hscWUZus1grCRDSkjpSGza7ZLKbCElAN2Rq0Z62FjJqJY/aTuSrdic F8V5cUU2ptxzUfWDBlLEJpKZXGU8cgVaLo7qPtJDkv2YMW4bV7/ckeFeuu6Es8bnpOwX PxkQZrTORDOXtu+TwJx0J/u4wpKeJXt7a5xVV/EQnl9x+uCtqEeQSfp6PqfK4N9przPt VzdPOXFvdLZ2mcubYTwK7Uiw/scQ5ze7rJxgBdiYGIslnFIwsnT29MeYPAN+C7Og5/29 jf6g== 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 d12si1190873edy.226.2020.08.04.04.47.16; Tue, 04 Aug 2020 04:47:40 -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 S1729390AbgHDLrD (ORCPT + 99 others); Tue, 4 Aug 2020 07:47:03 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:60586 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728028AbgHDLrB (ORCPT ); Tue, 4 Aug 2020 07:47:01 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 074BX2UW089118; Tue, 4 Aug 2020 07:46:56 -0400 Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 32q4wsm246-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Aug 2020 07:46:55 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 074BfGB1029221; Tue, 4 Aug 2020 11:46:53 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03fra.de.ibm.com with ESMTP id 32nyyd16sb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Aug 2020 11:46:53 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 074BkpnQ23331110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Aug 2020 11:46:51 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F0A8742042; Tue, 4 Aug 2020 11:46:50 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B86D34204D; Tue, 4 Aug 2020 11:46:50 +0000 (GMT) Received: from tuxmaker.linux.ibm.com (unknown [9.152.85.9]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 4 Aug 2020 11:46:50 +0000 (GMT) From: Sven Schnelle To: Thomas Gleixner Cc: Vincenzo Frascino , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, hca@linux.ibm.com Subject: Re: [PATCH 1/3] vdso: allow to add architecture-specific vdso data References: <20200804093607.69841-1-svens@linux.ibm.com> <20200804093607.69841-2-svens@linux.ibm.com> Date: Tue, 04 Aug 2020 13:46:50 +0200 In-Reply-To: <20200804093607.69841-2-svens@linux.ibm.com> (Sven Schnelle's message of "Tue, 4 Aug 2020 11:36:05 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 malwarescore=0 bulkscore=0 clxscore=1015 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 phishscore=0 priorityscore=1501 adultscore=0 spamscore=0 mlxscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008040086 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Sven Schnelle writes: > 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 > }; > > /* I've sent the wrong version of this patch. I'll send a revised version with the requested changes later.