Received: by 10.192.165.156 with SMTP id m28csp2162632imm; Sat, 14 Apr 2018 15:45:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+oSWcP58x/f7fd0VcdHt8rKl3pmLrV+uV0mfe18Neaso5yff6kkytwqw4n31zUecXbFCCI X-Received: by 10.98.156.152 with SMTP id u24mr16497148pfk.74.1523745952924; Sat, 14 Apr 2018 15:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523745952; cv=none; d=google.com; s=arc-20160816; b=hZIO/DIkuNEVOUZEAybBjTJ650tla6+WfQ6ZkQYFGJh472lFk48RTwkwLZVKNrcMoX WKVkNonzYqVmMnzVHaboj3WPxkYY+L6ntLKoo8acBnMSq5DXVkhfHPJXEO+hxvsdgX1v 6lxyT/ur22KfKo1ZbRLL5/UXc0Z9NpnM0jehUQ1daGmIcThW8wcJOZqN9l3Q7CJbsRQY WG4UnTZ/fqcvEmsNsbJOjLi5h2SIq1ERpIGS6mvTHDg15yCHJ5cxN5gCVewDcuxPygpw kSQQX7Xg8A6zXBsgSRMJ2YcPgb+ZVD4PJ7SdncicGxRGRgTm/OC7QrL1lK7ycfDUhmTS YIAA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Xrdp9XC/dvTOeRAw+iPgVWt1m7k8NQqjYGlz0IWwrKk=; b=uPGvS5wXmnzK/995BwLaJahpFjHTAGMF+uJk65hLC5DTWeAZjsxOS0oN/AYV3ASogF PhaWaDn9NFA1Eq9pLcNZMZAOLYJVXNWiwj85sZ0RNYyq/SAcLFs//UIlVxTWj7QZSOTw alFDihwoFHfL2nkF+L+dnVsfPNa9FObNy3yBVu4tvw7uOIYZFr8BzItDt4jKljb+VW0V 5FyfdQdfTeTIrRwzid+/m3emphYlj2+SXmFkGUDC5KTMKA4gmhQAW6lZ+ngO7BvVlvL4 xEAN63qqKvN8XBNSoPG9jQOoGoNzGNhGUueNxFW6ULsjm6ucmpnGv+LVISuKX9VHrUZH xFIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=u0HtCV3n; 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 p13si5674108pgn.267.2018.04.14.15.45.39; Sat, 14 Apr 2018 15:45:52 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=u0HtCV3n; 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 S1752302AbeDNWoc (ORCPT + 99 others); Sat, 14 Apr 2018 18:44:32 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:33181 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752213AbeDNWo2 (ORCPT ); Sat, 14 Apr 2018 18:44:28 -0400 Received: by mail-wr0-f195.google.com with SMTP id z73so16445395wrb.0 for ; Sat, 14 Apr 2018 15:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Xrdp9XC/dvTOeRAw+iPgVWt1m7k8NQqjYGlz0IWwrKk=; b=u0HtCV3n5IS14FGWh2wY1lNhYMayna5Ni0Hd2FUXcYM8BQahhBO9W38xvuMVU91eFt so0DBKQ4v4r8N5PCZpRG0BBPUljfWLT4P+TCpS1e2uGsholUGpZpIIxDK+vuxjXaCH0Y yWZxQ4TLM2Uu5B6qIcTwfw3LfemOVY5ezRqD5wAUGLOu+d+5uF5DD6OqkjmsFcWsClEl BjXMTcXCUn3BpUDNm8NIPREeAiZjwxpgwPVXofT1Xy91GHrNEpp9qWwrNBIh0J/Urlud /tpZh/IQDOSodiAZhS+0aolTQ4ol3DlNeTmFv3I/6SoZMd2HiaqI1EowZokKK93kBq2R Ucqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Xrdp9XC/dvTOeRAw+iPgVWt1m7k8NQqjYGlz0IWwrKk=; b=nOfmvuGepMiu1O+9iuqgZSFB2l8DWmEgHBxFUO8BaWMKChc1p8W2TJ28y1kQSfaUlg H35OYsKJEmLWjtj9HF1VOTgPKXqAQWuC6Jhfoxn0XK+D433dJa8x1MlgHI1dyFmmGry6 s8aPRMV9cqI5KJ6PYFR0fiTUpOJzILIobhREhsDtMGcQYgSheK/haJAMirMEURBtFLwM GvsTmrk2Kcc3D77/jp/YdcQM3xBAF4Z2CZ8siiL+Wi1bIaLDc3xyZKMB/eHCeFlUPZKM B6LfcaSLYt3efClnJdAa23MUyPbZ/Nn2oDE1lUNbrqLhYkywGFWtSkKJdesADHPUJhaq iMjw== X-Gm-Message-State: ALQs6tCC7rufDGowC5H9gxoxbnTornWSbDgVwGFAi8+O3yPIgFcgDIhQ w2ypPUdWFkzIVHk0tFMNt580RZz40xYkyhuGoL/7tg== X-Received: by 10.223.128.236 with SMTP id 99mr6973204wrl.120.1523745866903; Sat, 14 Apr 2018 15:44:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.247.15 with HTTP; Sat, 14 Apr 2018 15:44:06 -0700 (PDT) In-Reply-To: References: <20180412192800.15708-1-mathieu.desnoyers@efficios.com> <20180412192800.15708-13-mathieu.desnoyers@efficios.com> From: Andy Lutomirski Date: Sat, 14 Apr 2018 15:44:06 -0700 Message-ID: Subject: Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7) To: Linus Torvalds Cc: Mathieu Desnoyers , Peter Zijlstra , "Paul E . McKenney" , Boqun Feng , Dave Watson , Linux Kernel Mailing List , Linux API , Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Catalin Marinas , Will Deacon , Michael Kerrisk 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, Apr 12, 2018 at 12:43 PM, Linus Torvalds wrote: > On Thu, Apr 12, 2018 at 12:27 PM, Mathieu Desnoyers > wrote: >> The cpu_opv system call executes a vector of operations on behalf of >> user-space on a specific CPU with preemption disabled. It is inspired >> by readv() and writev() system calls which take a "struct iovec" >> array as argument. > > Do we really want the page pinning? > > This whole cpu_opv thing is the most questionable part of the series, > and the page pinning is the most questionable part of cpu_opv for me. > > Can we plan on merging just the plain rseq parts *without* this all > first, and then see the cpu_opv thing as a "maybe future expansion" > part. > > I think that would make Andy happier too. > It only makes me happier if the userspace code involved is actually going to work when single-stepped, which might actually be the case (fingers crossed). That being said, I'm not really convinced that cpu_opv() makes much difference here, since I'm not entirely convinced that user code will actually use it or that user code will actually be that well tested. C'est la vie.