Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2345117ybh; Mon, 9 Mar 2020 04:08:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsk0V5AfaVO0Sx8eyJMvotLROXPoOf1rVYXHVmnp+S+3bUU1Db/mMAwB6zXmeT4LK1FVO+O X-Received: by 2002:a05:6808:b2d:: with SMTP id t13mr3566067oij.107.1583752112691; Mon, 09 Mar 2020 04:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583752112; cv=none; d=google.com; s=arc-20160816; b=NgY4KQ2cVc4xkNC9BVsc4VGwkBQj4MatmXNyp0pBgeVECBqSjgl3pXHUcpOqK8egp1 rs7W+QFE4rNSo8AYOv2Vk/nrv3cDaMpRs7SpxdB323OWUQ34XqrrEqClVgqU0/GRq+Jy jzvk4K/WQY8tZklXJ1AXPUTLm2YrPjT42qYE7/qu8PeMpDW3u8WgdyO4mwC8AUjXcbOm /McQd0hAkrNzVuew1oOOqpAKvlJ3zdg1q9NmNjnrDBV0+LDuWv8PFu3gCX/O0PZNZgJo OYnnl77f9goBdhEsENQh+S62BfT4mBmqEGuLyeUZTZQG9N6q9hjTeYhCM6JROw0vvgqW i+Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ho0rchaH0s9SaaRYl8iRGMYh2UwN3JaPkWt4uBXQxvI=; b=OCWBaLeEO3RhCylVJ2aZHAMXf16Zlq3+EVbcIt4NMB8xEqArEtY0BSHAMJe4hdre3L FlecHTvR3osVT0+hRAVbLrzQaM+sN3GOl0sAjBKPEtdeKpDu033b2gKsxetDv1l3khhk qTc1D4SXA0/OopgnEO1jigjbZeMllHVW+L2DuqYcZR6l7yf12uJzw+MKFdA5hg+iqczc R2NT3V72/G/piYzfZQA9sBBLaaekNdKyNrHNDrkdNN1miL8/CacQZPel9urAvmGNoDid yfs48udP4c2zpAw75qqjknExTyUMNggMcDLRyngtpSDE5513agJZGb3fwrx5K6Tqa4wP p/yw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si5577498otl.313.2020.03.09.04.08.20; Mon, 09 Mar 2020 04:08:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726756AbgCILGu (ORCPT + 99 others); Mon, 9 Mar 2020 07:06:50 -0400 Received: from foss.arm.com ([217.140.110.172]:50600 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbgCILGu (ORCPT ); Mon, 9 Mar 2020 07:06:50 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 648701FB; Mon, 9 Mar 2020 04:06:49 -0700 (PDT) Received: from [10.37.12.115] (unknown [10.37.12.115]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8BCE13F6CF; Mon, 9 Mar 2020 04:06:44 -0700 (PDT) Subject: Re: [PATCH v2 00/20] Introduce common headers To: Andy Lutomirski Cc: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, clang-built-linux@googlegroups.com, x86@kernel.org, Catalin Marinas , Will Deacon , Arnd Bergmann , Russell King , Paul Burton , Thomas Gleixner , Andy Lutomirski , Ingo Molnar , Borislav Petkov , Stephen Boyd , Mark Salyzyn , Kees Cook , Peter Collingbourne , Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , Nick Desaulniers References: <20200306133242.26279-1-vincenzo.frascino@arm.com> <3278D604-28F1-47A1-BAB8-D8EB439995E8@amacapital.net> From: Vincenzo Frascino Message-ID: Date: Mon, 9 Mar 2020 11:07:08 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <3278D604-28F1-47A1-BAB8-D8EB439995E8@amacapital.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On 3/6/20 4:04 PM, Andy Lutomirski wrote: [...] >> >> To solve the problem, I decided to use the approach below: >> * Extract from include/linux/ the vDSO required kernel interface >> and place it in include/common/ > > I really like the approach, but I’m wondering if “common” is the right name. This directory is headers that aren’t stable ABI like uapi but are shared between the kernel and the vDSO. Regular user code should *not* include these, right? > > Would “vdso” or perhaps “private-abi” be clearer? > Thanks! These headers are definitely not "uapi" like and they are meant to evolve in future like any other kernel header. We have just to make sure that the evolution does not break what we are trying to achieve with this series. I have to admit that I spent quite some time in choosing the name and I am not completely satisfied with "common" either. The reason why I ended up with this is that the headers are common in between the kernel and the vdso (userspace) but I agree that it does not make completely self explanatory. Using "vdso" would mean according to me that those are vdso only headers, probably "private-abi" is the best choice here. If there is enough consensus, I am happy to rework my patches accordingly. What do you think? >> * Make sure that where meaningful the kernel includes "common" >> * Limit the vDSO library to include headers coming only from UAPI >> and "common" (with 2 exceptions compiler.h for barriers and >> param.h for HZ). >> * Adapt all the architectures that support the unified vDSO library >> to use "common" headers. > [...] -- Regards, Vincenzo