Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp75481ybk; Fri, 8 May 2020 14:27:04 -0700 (PDT) X-Google-Smtp-Source: APiQypIy5GywPnA29zcv2ojg5mad867NgIX3sJw5cXpfNXMh1ScItoqrZGC0JjzPAqBhCuyF/RdH X-Received: by 2002:aa7:dd53:: with SMTP id o19mr3839525edw.180.1588973224630; Fri, 08 May 2020 14:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588973224; cv=none; d=google.com; s=arc-20160816; b=oUJAIW+biLKbfGBt8JuPDzsevbFJmLbsp2a+2o+zCt63v34Bx8wacdC9gr16lwU5K9 nzjKZHTBkdHLuwRmKMzBz6TYgVbEw0yQx19fQbH2LbZNuyePS/f0CjxK5cYo+++BEOD7 r3qH5mFMYj0P3y6JNDHMY1ouAl1UIZSd7QuVgcPhN2zlj1IYP/5hrGsZpHiSCAvLe1Dm IrVWTZ/DGZcM9OwOsqHR/32RfuEkFFfKzLLe+KRY+innK0r+09P7wzQx/wMKO2KsIBbq /dCZAZciJ9iVnhdmltm+WqzgYKuHxZKPr3PTvY3XtTV+Vod5OQ6eQce3GaBsjONi9Pnd GT0A== 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; bh=51RR/hP/Fbu3lQaW68VlCw7WhkcPT1dIBsrpRkrazFM=; b=fMtcLHcNTEb0DRfEAUgsH+n5p/V4lYjfHJsyGzTXx+0wAD8BrryqbvOfNsdrdoGGMh +yqkcvtju5REAXKSzr8+Vlg6AizlZ6+8QBTMvNq3tHZMiPOFkogIACIE5ab3Dj8QqmeE Ze7V79y0a/3C6oSW/y3Gbhf1b9WUBm2Saygm43guwjgGJ91/2tSPbPqCqGJc4osu7HtG akeyQjC9LQut2/YxWTFDY5yHr8Tbt4WlJbHcpEM3MOouJfgZTsAX6DY+3Ql8QgGg0Mp2 1hGbe0wp9diHEmWWttvx6VczXzNbcHLT7y7gqhDWiqiduhlpSZw3FT41cjum9wLMhV7u JkMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si1630774ejr.170.2020.05.08.14.26.42; Fri, 08 May 2020 14:27:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727950AbgEHVX0 (ORCPT + 99 others); Fri, 8 May 2020 17:23:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:32814 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbgEHVX0 (ORCPT ); Fri, 8 May 2020 17:23:26 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9D471AE2A; Fri, 8 May 2020 21:23:26 +0000 (UTC) Date: Fri, 8 May 2020 23:23:21 +0200 From: Joerg Roedel To: Peter Zijlstra Cc: Joerg Roedel , x86@kernel.org, hpa@zytor.com, Dave Hansen , Andy Lutomirski , rjw@rjwysocki.net, Arnd Bergmann , Andrew Morton , Steven Rostedt , Vlastimil Babka , Michal Hocko , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 2/7] mm/vmalloc: Track which page-table levels were modified Message-ID: <20200508212321.GR8135@suse.de> References: <20200508144043.13893-1-joro@8bytes.org> <20200508144043.13893-3-joro@8bytes.org> <20200508191048.GA2957@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200508191048.GA2957@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 08, 2020 at 09:10:48PM +0200, Peter Zijlstra wrote: > On Fri, May 08, 2020 at 04:40:38PM +0200, Joerg Roedel wrote: > > + if (mask & ARCH_PAGE_TABLE_SYNC_MASK) > > + arch_sync_kernel_mappings(start, end); > > So you're relying on the compiler DCE'ing the call in the 'normal' case. > > Works I suppose, but I went over the patches twice to look for a default > implementation of it before I figured that out ... Yes, works on all architectures I compile-tested this on, with gcc-9.3. I should probably add a comment about that. Joerg