Received: by 10.192.165.156 with SMTP id m28csp876479imm; Mon, 16 Apr 2018 10:05:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx49H2VpSQE0HjqDQBZlUuhKl2qrazvC+YeWIbM/9v2+F46YRu2HvE2vuTmCa7BOjUMlhmSHI X-Received: by 10.98.190.2 with SMTP id l2mr16896130pff.224.1523898352877; Mon, 16 Apr 2018 10:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523898352; cv=none; d=google.com; s=arc-20160816; b=SsCFCtRnjbuNtBnhCnPdMP3yOIyYmf5BuZ6x1ff8Q51tWxaafM7uiiO5gsJH/SgJHt mzEucop4j4P7pew5Q1FqY5lWnbrtoMtQgjOITGVBsK+8+AQ1aLCNyoUt7tMLMXkBNoFR UwYHvMCLn8FCX9saekkkOc5mAp2DOWXFqCD8jz3mFvOkl+V+8N27CqY51dfmGE2AX5Ty XChiewJkJeFPCmX57OcFLjm45XbHcUvtrEw+5ULE1pIOJ+53+uBTWbAl/Gnm7i+y21WV Btcz8PyH6WEDDhX4kIPW8GWKqm70jclP83BFIgRkM+aWXzcQ2R0YqytaDIAdWl9UOm9U nb4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=qpBcSLoRnaqLUvFcq//IiVK1/y3000H2EcpHOmDBJxQ=; b=IF3AYhxuarZRnIprKmYNZ0Fy07rJ6PIj+Y871Ar8qSeNR70rCO/E9Po70Ze2vA4utH rRl2DbgNHItF7SzCf9NPlZibtcOzx4RWRHlATdN22fLP83nxYsr5HpbSB/D/Uqky+JY5 b1WEnZtMrt6/O4UisdYL2ZXOz3doP/1ZufS4taqla5oiPHRBJxEtwa/b6Jz1HPjZCSXt EKhzxBeJPwqS0uUpHWqnzPC4uIn7o9FZYiE7Ez8SxfVZuG8Ei9JnUkuyN34BxCnFt+MR ojIQAJdZGt9+ao2Lsal1/nRzMQ1DqV7b6VtTqz3rcPhNnuxkmj6hA1I8n1KMgPsps3F8 a26w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=esvxTEIz; 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 y190si3453425pfy.75.2018.04.16.10.05.37; Mon, 16 Apr 2018 10:05: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=@firstfloor.org header.s=mail header.b=esvxTEIz; 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 S1752980AbeDPRCp (ORCPT + 99 others); Mon, 16 Apr 2018 13:02:45 -0400 Received: from one.firstfloor.org ([193.170.194.197]:47028 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbeDPRCn (ORCPT ); Mon, 16 Apr 2018 13:02:43 -0400 Received: by one.firstfloor.org (Postfix, from userid 503) id 2F88686850; Mon, 16 Apr 2018 19:02:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1523898161; bh=tNJdLZN5WT9EubirUjcnQDRZvDYaZWRpTKVfj4/EnDM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=esvxTEIzSTljYu0LU4wsPnA3b2OW/Fvp4BDQ58dcVwqcj8dYuPDww9CJx/4Dind40 q9U42ngUUOI48nwUTdLcfbA5eZshkjtQy/w5PXmlZW1OAnBusQQ9/jf9W0P+InPgvV 47P8qGyYWuo7ZBtkF6untVBhHPYZLEAC0U+V+hGI= Date: Mon, 16 Apr 2018 10:02:41 -0700 From: Andi Kleen To: Mathieu Desnoyers Cc: Andi Kleen , Linus Torvalds , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , linux-kernel , linux-api , Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrew Hunter , Chris Lameter , Ben Maurer , rostedt , Josh Triplett , Catalin Marinas , Will Deacon , Michael Kerrisk Subject: Re: [RFC PATCH for 4.18 12/23] cpu_opv: Provide cpu_opv system call (v7) Message-ID: <20180416170240.mymd2kqfimydkhos@two.firstfloor.org> References: <20180412192800.15708-1-mathieu.desnoyers@efficios.com> <20180412192800.15708-13-mathieu.desnoyers@efficios.com> <20180412202302.xnw5jdl3upl46ywt@two.firstfloor.org> <751033048.11156.1523896094938.JavaMail.zimbra@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <751033048.11156.1523896094938.JavaMail.zimbra@efficios.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Single-stepping is only a subset of the rseq limitations addressed > by cpu_opv. Anoher major limitation is algorithms requiring data > migration between per-cpu data structures safely against CPU hotplug, > and without having to change the cpu affinity mask. This is the case And how many people are going to implement such a complex separate path just for CPU hotplug? And even if they implement it how long before it bitrots? Seems more like a checkbox item than a realistic approach. > for memory allocators and userspace task schedulers which require > cpu_opv for migration between per-cpu memory pools and scheduler > runqueues. Not sure about that. Is that common? > > About the vgettimeofday and general handling of vDSO by gdb, gdb's > approach only takes care of line-by-line single-stepping by hiding > Linux' vdso mapping so users cannot target source code lines within > that shared object. However, it breaks instruction-level single-stepping. > I reported this issue to you back in Nov. 2017: > https://lkml.org/lkml/2017/11/20/803 It was known from day 1, but afaik never a problem. -Andi