Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp313913ybi; Fri, 31 May 2019 01:48:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwveKnenu8/yqS2isr+Hd1uojzTcVSdd1Ri74+YZ1MvLCtPUAk09STM1Rc3FM9BDyGa428Y X-Received: by 2002:a17:902:a70a:: with SMTP id w10mr7556307plq.250.1559292507725; Fri, 31 May 2019 01:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559292507; cv=none; d=google.com; s=arc-20160816; b=trrPlPkDOn8QXMowqf9obkQC/X4uEVoyMtgbw3p402+wnlT4CDlIbtS5WXUueXFEE5 L9fvkgOrgJRpIkG0Xdw2zjw064uInC+9FnqZA2ZygXu9WslugGpYEF4VHB1j5KCI+j5m V7WlmR0UBbT5fo6FYeGYWXm55byvkgpgldxC494ZmC4fViMZ+Ln0CO9O8uYvQK24fqV6 IBhXJdmQ9ifHNVVZhn7o0wFPsW1Md2rZzEOgo30ryKmBinz3Gou+7sXpxV6kSPkwQMuB La2zlH/B18X1En2wS55D6hCS24p3JkjvfQ3VQ00bFRx5aJ8tdxQZsFw5JWEh9+4gX+q6 6a1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=musdmvMfmuFle9U6pm5zoVH2cKv9Sr+Vl2GKNkM9WAw=; b=Xbkn4AiXNNqNC0jAisvrTDZnGVIpq9fLUyuXPETK/xGLBRnj+7JMoX0R1fi8WFKNW6 rGHCAImK0YR+b0cth2ohuxWayri3hTHSgDXxtVom6q8rBMqKoYvqynYqpgeRWmoFBmUQ bmdQeHwt7VOfHr9cXT3U1/uyfTzzdmNxHdTRVrhNCKwS7nbthow36I1E8U00I01kQ1b3 dpm0nGarMEiAqk5k9AcRvaTgLsjffKu4F0EIuGURYUye8EiEQ5YaauJ3utufHZPNZY9G IFPHqR/RnYZemg+jJ0KYrjFtyja6zacpht7NPHv2xeWNo/ZQ5pfDO7f9i7sm/HZ+c7Sn Jbiw== 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 36si5268347pgx.477.2019.05.31.01.48.07; Fri, 31 May 2019 01:48:27 -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 S1726799AbfEaIrB (ORCPT + 99 others); Fri, 31 May 2019 04:47:01 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:35926 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfEaIrB (ORCPT ); Fri, 31 May 2019 04:47:01 -0400 Received: by mail-qt1-f196.google.com with SMTP id u12so10426447qth.3; Fri, 31 May 2019 01:47:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=musdmvMfmuFle9U6pm5zoVH2cKv9Sr+Vl2GKNkM9WAw=; b=gYqtS2HG6ZQRVl7/7pdr+r5ZBPMQxniM2Cbc069KZAktOKdkXWhS6/sU8bMDvk/Z7s 4IUuWYQVt3ci0/8uONbSCA6yxzttN9mvGKZgc3HjQ0gMahbLPQwQuAKjOpm4hG7c+362 dn+440liUtymlQHhT8iaPCOTXUEMV4Afad9YBArh4ru+1fbmEls4X4RMbl8BdeB/W90I jZB+Fl0IuZGkoNtgwVD+KFWp28umuCO/VC/pm0y73o4cAfWUDYGU/Yn20QG4qWoPm3TQ 0qtUrzbz4LSubxqzhW4AR31b+7vvT0NiBq/Q6nQa/8ao29xJbdQA1FAUCVrMnyXvMSBi m0Rg== X-Gm-Message-State: APjAAAVaszc0EsFeQs67waBEife+V4tcRYFzhBHEq0ZKyhK69UBJbR9u aUPHvGXjVa3vWz4BwbB9h2KJykuHhOfCt13b0gE= X-Received: by 2002:aed:3e7c:: with SMTP id m57mr2866079qtf.204.1559292419933; Fri, 31 May 2019 01:46:59 -0700 (PDT) MIME-Version: 1.0 References: <20190530141531.43462-1-vincenzo.frascino@arm.com> In-Reply-To: <20190530141531.43462-1-vincenzo.frascino@arm.com> From: Arnd Bergmann Date: Fri, 31 May 2019 10:46:43 +0200 Message-ID: Subject: Re: [PATCH v6 00/19] Unify vDSOs across more architectures To: Vincenzo Frascino Cc: linux-arch , Linux ARM , Linux Kernel Mailing List , linux-mips@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , Catalin Marinas , Will Deacon , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Huw Davies Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 30, 2019 at 4:15 PM Vincenzo Frascino wrote: > > vDSO (virtual dynamic shared object) is a mechanism that the Linux > kernel provides as an alternative to system calls to reduce where > possible the costs in terms of cycles. > This is possible because certain syscalls like gettimeofday() do > not write any data and return one or more values that are stored > in the kernel, which makes relatively safe calling them directly > as a library function. Hi Vincento, I've very happy with how this turned out overall, and as far as I can tell you have addressed all my previous comments. I had another look through the series and only noticed a few very minor issues. I hope Thomas can have another look soon, he probably also finds a few things, and then it should be ready for inclusion in linux-next and the coming merge window. One open question I touched in my review is whether we want to have a vdso version of clock_getres() in all architectures or not. I'd prefer to leave it out because there is very little advantage to it over the system call (the results don't change at runtime and can easily be cached by libc if performance ever matters), and it takes up a small amount of memory for the implementation. We shouldn't just need it for consistency because all callers would require implementing a fallback to the system call anyway, to deal with old kernels. If anyone comes up with a good reason why it should be added after all, let me know and I'll stop mentioning it. Arnd