Received: by 10.223.164.202 with SMTP id h10csp489708wrb; Thu, 30 Nov 2017 13:52:20 -0800 (PST) X-Google-Smtp-Source: AGs4zMZSS/cn2QNXvbduHzjfUHA0htnZKmlInFuroBfZ0HxntO57RhMbQAcj9//Pt8SKxPHBl8ae X-Received: by 10.84.193.129 with SMTP id f1mr3997025pld.355.1512078740414; Thu, 30 Nov 2017 13:52:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512078740; cv=none; d=google.com; s=arc-20160816; b=rvEGCUCWszn6kDbT5QDkgVx9oaN5s7wckU6ZylhZN+Kez5+ZTmPLxqhtTZ9ercC2gs Idwo4+Nznez8SopNjNGDbhGjUZHln9eCDz2Mm8ysiy6exT1fwwdVe+bfvP/ZTClk5BUn rubtC10os9gxSDYwhEeRPV3XLZupfQ4O6WZg1cRFma2iFe3K2mfPZzTIcCW9T/L5v8ic SssVNCVW+4w2QGVogiS4rr2ur6c+VOivntacq5TBOKRCEVFH25BKjfzLOU475B60JjKW OTfd3IFUdjewRIUuV572pyQaN7riwn++Oi0xaOIsy141/c8gvUdSmyMDe5VbxGzQlK1x lOAw== 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=st5sA9/9BmKXM/a5iZxSFzkjAoQOsJUNRzggclKEWgE=; b=pZbf9T5z54sYHlOsWwOGSfQkbRgimI85oTgtgd5LxNae4vko2G/5Rmv0kfNw5Cs0bZ M0viw+HeW0lXtmWdY7zoe8Xzmu8rLdYpZa+ZXOTEz/WC7ZxYbXdroy9l+uK7Pc0lkE54 OYNM7d8jMY+E+pnt4Bcfu3iWeabHvJmEnTdsTwAzl4tpF+2p9ZjOWqjwU30tqze+VmkE wyy3FMJkKR1wV0O6XhHBdxZjtxaGs86YD8YblG8d30NGIkp7GDmYNklinxgwUMmOxvdL 42z5LnYlFq1d35DIkow0+QyK1G6oteWyJ3rxFUpPDSYUnDQ5zYlRa9w374QkrZVp5oax 0mSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=c2fjAAhH; 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 i191si3575373pge.391.2017.11.30.13.52.06; Thu, 30 Nov 2017 13:52:20 -0800 (PST) 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=c2fjAAhH; 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 S1750989AbdK3Vvs (ORCPT + 99 others); Thu, 30 Nov 2017 16:51:48 -0500 Received: from mail-it0-f43.google.com ([209.85.214.43]:35629 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbdK3Vvr (ORCPT ); Thu, 30 Nov 2017 16:51:47 -0500 Received: by mail-it0-f43.google.com with SMTP id f143so241799itb.0 for ; Thu, 30 Nov 2017 13:51:46 -0800 (PST) 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=st5sA9/9BmKXM/a5iZxSFzkjAoQOsJUNRzggclKEWgE=; b=c2fjAAhHIYpT/r3LhzqjyydCmPm1duUueeJ+qdFchvMADEhLHTqr0Fxdag4r/zEcwV ezfXOhCLd6lqWLYQu+YR+SFBMxcYgvqyy65NQCzX78W7kSVFh66Y/k/CkrOS7rLey5Ku n96coKx9hVuPRR/gm3LjvfS+MpczRL9ULG/N+VkjUpUhcgieFmA9WGb4ySNh0skA+rZ9 yGIq8H+R2GjqjMM6SZTdESwiHHjpwfGtuKmEC0IH1RPxCJs0a/wNnkcnETiOg2fP9A0b j0vtRGrfXW0O9trg1lRJ6sQ2Try4MZhJTWow1dzf/TmXFoCrdCfp0fVStn58xFAeEIkA h0Gg== 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=st5sA9/9BmKXM/a5iZxSFzkjAoQOsJUNRzggclKEWgE=; b=mjoMNtkyDK9vVtcbInpd9Xl7GsO+Qb/ds3YFvxwoti8AJbAcGTU/VwpSVKyifGNgcl RlIFMe2LLCG9tNei7Ht+9eosxq/bbUGA4QsOTktbHqdWrtYdYHFf3WMCwNOnTuOUXSi9 wEhBjnaAnAqR1nnR0Z8E7XdXw8WSvJOE9lS/pNraHqNb+wByRfDqeUgiB+gJBJfK4Lox eZT/Ea8cwFSnRkElhSC6yKi5qa4X0O1RcDD5neEHg6hHXDzCq9qbkiDFe4wNKCzmKNqH g7QnN0/MGSQQu0U2KH/WIEzOytRwRvp33Wcr41dr9eFZKSkQZnMnS/B9/JEpzl/7m4iX C+Jg== X-Gm-Message-State: AJaThX6+mo2Nom7yN3tZIdpLJKlahS6fBD8U8s3a20Mv6ntC9oESV9KZ /PmHd74jF34HFC9H3VcyYpZHcGXg8k13BnDmxCgGcQ== X-Received: by 10.36.133.135 with SMTP id r129mr5550089itd.69.1512078706367; Thu, 30 Nov 2017 13:51:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.133.35 with HTTP; Thu, 30 Nov 2017 13:51:25 -0800 (PST) In-Reply-To: <20171130200144.GL3165@worktop.lehotels.local> References: <20171127104923.14378-1-mingo@kernel.org> <20171127104923.14378-16-mingo@kernel.org> <20171130154414.aekkjd26p3hxyqwa@hirez.programming.kicks-ass.net> <3ca0bea7-932a-6d91-a9b4-d07045d444f5@linux.intel.com> <20171130161844.v7ynfdggo6g7j5l5@hirez.programming.kicks-ass.net> <20171130200144.GL3165@worktop.lehotels.local> From: Andy Lutomirski Date: Thu, 30 Nov 2017 13:51:25 -0800 Message-ID: Subject: Re: [PATCH 15/24] x86/mm: Allow flushing for future ASID switches To: Peter Zijlstra Cc: Dave Hansen , Ingo Molnar , "linux-kernel@vger.kernel.org" , Thomas Gleixner , "H . Peter Anvin" , Borislav Petkov , Linus Torvalds 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, Nov 30, 2017 at 12:01 PM, Peter Zijlstra wrote: > On Thu, Nov 30, 2017 at 10:48:56AM -0800, Andy Lutomirski wrote: >> Should it be tlb_flush_shared_nonglobals_if_kernel_and_user_pagetables_are_separate()? > > Its effectively invpcid_flush_all_other() or something like that. Of > course, its not invpcid based, so we should not name it such. > > flush_asid_other() ? How about mark_other_asids_invalid()? It doesn't actually flush anything. And the caller could be: if (!kernel_ptes_are_global()) { /* nothing to do. INVLPG flushes global mappings for all ASIDs. */ } else { /* There is no efficient way to invalidate a given VA for all ASIDs simultaneously. */ mark_other_asids_invalid(); } From 1585522559474486296@xxx Thu Nov 30 20:02:23 +0000 2017 X-GM-THRID: 1585216393710549190 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread