Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp747747ybg; Fri, 18 Oct 2019 06:51:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqycueH5LAOTVqsSZk/HekEJiwbahxj0UcbInBcWKbDe5XcjOtImfJC+LoqqujYCkawxUTjd X-Received: by 2002:a17:906:948d:: with SMTP id t13mr8882029ejx.112.1571406671931; Fri, 18 Oct 2019 06:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571406671; cv=none; d=google.com; s=arc-20160816; b=LLL/nD/vqZKa0/ayyrG5W1nVVxuZM/rbMR6zoxYhur2zmXkcJD533G5REQ4w+RMiBV ZU5z3UNCtij8ML/QDrjlj9nfH9PLQB1FKY2AcaK+dtZGQoLJo4x4SbOVRy82FZxOm+cO zEkRHUBWWu/Oo6ISQ+DQKc8EZaAFJDqKYIpggAjESKWxe+R6tu9yjZjdLxv0K1VOD/df Km0XEG7C7hZLy0PxAYTborMSEtfrHpQqj2XMeDDAFiHbTA32y1+2rHQyYkzG/fjWr4dv HmPoOzAxf24Aw8IdfnpwDV+YjJqYyZ19pGRsaoJZGHfB+CoHwnELftBqrujXI14h+yUS McFg== 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=0DKmTD1TW84giZsnAVdXtK4woiJz6XzRztO4PEoYxX0=; b=K4JiiceePCn/qM/euHzfZy71hlveLGJK5hxRxuOjqhGNvYf8HKuF3Mhh4AF0TAEy/B hY71WPlp17LMlFurjmH0hfniNlRVj/H9Xp/h4e4Fa7PyhiG83hnRZikNO06ci7TY3nDI bBh7hC/13UH1g/i24igi/aMYcW5NY3D9/GoSD3j2LqQkeDTy817V9Odzw4R1Een6B8D7 EcPHuDsUacedSnYmRIme1F8BIuh+T5o1k1YJAKrs4McYdG03UISAitom31boMHcMmqtX ts31VfKLItVG6++ySwN+SVqn+JNlqF1qoWtD8Io1gcWZQ2mq11nlxKZefxfvpJQzTTKj uO8Q== 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 c4si3934977edb.387.2019.10.18.06.50.49; Fri, 18 Oct 2019 06:51:11 -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 S2393719AbfJQJqE (ORCPT + 99 others); Thu, 17 Oct 2019 05:46:04 -0400 Received: from [217.140.110.172] ([217.140.110.172]:37262 "EHLO foss.arm.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1727349AbfJQJqE (ORCPT ); Thu, 17 Oct 2019 05:46:04 -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 539C519BF; Thu, 17 Oct 2019 02:45:48 -0700 (PDT) Received: from [192.168.1.103] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 271BD3F718; Thu, 17 Oct 2019 02:45:43 -0700 (PDT) Subject: Re: [PATCHv7 01/33] ns: Introduce Time Namespace To: Thomas Gleixner , Andrei Vagin Cc: Dmitry Safonov , linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , Adrian Reber , Andy Lutomirski , Arnd Bergmann , Christian Brauner , Cyrill Gorcunov , "Eric W. Biederman" , "H. Peter Anvin" , Ingo Molnar , Jann Horn , Jeff Dike , Oleg Nesterov , Pavel Emelyanov , Shuah Khan , containers@lists.linux-foundation.org, criu@openvz.org, linux-api@vger.kernel.org, x86@kernel.org References: <20191011012341.846266-1-dima@arista.com> <20191011012341.846266-2-dima@arista.com> <80af93da-d497-81de-2a2a-179bb3bc852d@arm.com> <20191016233342.GA3075@gmail.com> From: Vincenzo Frascino Message-ID: <406b77c3-46c5-e0ff-c658-04cdb99200b4@arm.com> Date: Thu, 17 Oct 2019 10:47:36 +0100 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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/19 10:20 AM, Thomas Gleixner wrote: [...] > The architectures which implement VDSO are: > > arm, arm64, mips, nds32, powerpc, riscv, s390, sparc, x86, um > > arm64, mips, x86 use the generic VDSO. Patches for arm are floating > around. UM is special as it just traps into the syscalls. No idea about the > rest. Vincenzo might know. > There a couple of cases: hexagon and csky that have vDSOs for signal trampolines if I recall correctly, but they do not fall into the category we are exploring at the moment. > The bad news is that we have no information (except on arm which has a > config switch for VDSO) whether an architecture provides VDSO support or > not. > > So unless you add something like > > config HAS_VDSO > bool > > which is selected by all architectures which provide VDSO support, the only > sane solution is to depend on GENERIC_VDSO_TIME_NS. > > TBH, I would not even bother. The architectures which matter and are going > to use time namespaces already support VDSO and they need to move to the > generic implementation anyway as we discussed and agreed on in Vancouver. > > Providing time name spaces for the non VDSO archs is a purely academic > exercise. I totally agree with this. -- Regards, Vincenzo