Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp924611imm; Wed, 22 Aug 2018 15:17:47 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzHIaq+oZPTT00v11fQ8kYpKEVxENTPCl+SdQcXVCM+xCRUKeTlWKxMbs1L+8a//99l7uqf X-Received: by 2002:a62:2744:: with SMTP id n65-v6mr60117732pfn.125.1534976267429; Wed, 22 Aug 2018 15:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534976267; cv=none; d=google.com; s=arc-20160816; b=kAVTAWDlG09bUrhWDSiWZCe+7JPorJ1r65nl6X3P9f0voGUHNo8VSRc0Sgt+2arz0p 1iUNBVfba7MQMTy0xDML1jjjjZvWTYkoihbUJioBhwhr27GMoB647Em3K/ozUwNyTNGz iR80UnGxeQbUbnJsPTS4ATVAOiNZcVpKyFRJaPWp2hrlZWnLvlZnvEAq49eSEQy1muhF eEFYko8ST8eIV1haG5rFHpsjllCqw4jVI9pDBMSmz7XYjq73rpIFZpK9O4MbNggL9oPm b20FNMsWKfn6HTucf3EA+c6RExXLDz3eTk2nme777W9JI5VADioMj98zfukpMTggCe9I GiGw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=iVGKb5KkvBln/9eE6ysVruqq4/zJKZoU4PTDRsFSOAk=; b=eQDZ1837FyXGNE3wkQiq8NuGbvYIUXUJq1XfLsN/c8GcUWdQyfFIbMGruhhc3eRaYH 176vkgvO4zm+Ep0Pr+XlJeqqzu92Vb9auO01D589t0HUkKDR06IBCMs6g5OCY7TexJxG 89rpAU9bFCgKeK8H4ojhjnWobJoQK6jY/AOVdoRX6WnRae2tuZ48MDcrOaM/wlcKmcRq uJZYLI9rjkSLvx09YaqVFsHhJnnKATsl0S5TKlJeq/A9Qdjc/VTpzARptkO1kWTw4mQg zcaP597x+DwnehQV4ENn7V6JkLwjMqegeXaa1+toIZoPvrJxrEfZFnJuKrqkMKRRjIni e7CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="s/w8dqY9"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z66-v6si2883192pfl.209.2018.08.22.15.17.31; Wed, 22 Aug 2018 15:17:47 -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=@amazon.com header.s=amazon201209 header.b="s/w8dqY9"; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726800AbeHWBmm (ORCPT + 99 others); Wed, 22 Aug 2018 21:42:42 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:38343 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbeHWBmm (ORCPT ); Wed, 22 Aug 2018 21:42:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1534976159; x=1566512159; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=iVGKb5KkvBln/9eE6ysVruqq4/zJKZoU4PTDRsFSOAk=; b=s/w8dqY92qXx6zvR1fnXkF+I55is9Fw+AlDPe8txQEsnObku/BtNipvU ehcYLgjJAq/NfJbYHdLfJ3W/pkjWZAU30o7ZEqKbHvF9S8RJ/wLm1nNKb JI3ihEcg27zBgX2YrJelHeQa801lTzv664yiaiDma16Rc3C7Rz0GFgjpX c=; X-IronPort-AV: E=Sophos;i="5.53,275,1531785600"; d="scan'208";a="358750444" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-715bee71.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Aug 2018 22:15:50 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1a-715bee71.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w7MMCqbY085630 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 22 Aug 2018 22:12:53 GMT Received: from EX13D07UEA001.ant.amazon.com (10.43.61.44) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 22 Aug 2018 22:12:51 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D07UEA001.ant.amazon.com (10.43.61.44) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 22 Aug 2018 22:12:51 +0000 Received: from localhost (10.55.160.46) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 22 Aug 2018 22:12:51 +0000 Date: Wed, 22 Aug 2018 15:12:50 -0700 From: Eduardo Valentin To: Peter Zijlstra CC: , , , , , , , , , , Subject: Re: [PATCH 4/4] x86/mm: Only use tlb_remove_table() for paravirt Message-ID: <20180822221250.GB16015@u40b0340c692b58f6553c.ant.amazon.com> References: <20180822153012.173508681@infradead.org> <20180822154046.877071284@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180822154046.877071284@infradead.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Peter, On Wed, Aug 22, 2018 at 05:30:16PM +0200, Peter Zijlstra wrote: > If we don't use paravirt; don't play unnecessary and complicated games > to free page-tables. > > Suggested-by: Linus Torvalds > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/x86/Kconfig | 2 +- > arch/x86/hyperv/mmu.c | 2 ++ > arch/x86/include/asm/paravirt.h | 5 +++++ > arch/x86/include/asm/paravirt_types.h | 3 +++ > arch/x86/include/asm/tlbflush.h | 3 +++ > arch/x86/kernel/kvm.c | 5 ++++- > arch/x86/kernel/paravirt.c | 2 ++ > arch/x86/mm/pgtable.c | 8 ++++---- > arch/x86/xen/mmu_pv.c | 1 + > 9 files changed, 25 insertions(+), 6 deletions(-) > > --- a/arch/x86/xen/mmu_pv.c > +++ b/arch/x86/xen/mmu_pv.c > @@ -2397,6 +2397,7 @@ static const struct pv_mmu_ops xen_mmu_o > .flush_tlb_kernel = xen_flush_tlb, > .flush_tlb_one_user = xen_flush_tlb_one_user, > .flush_tlb_others = xen_flush_tlb_others, > + .tlb_remove_table = tlb_remove_table, I tried compiling the series, and I am getting the following compilation error: CC arch/x86/xen/mmu_pv.o arch/x86/xen/mmu_pv.c:2400:22: error: ‘tlb_remove_table’ undeclared here (not in a function); did you mean ‘bus_remove_file’? .tlb_remove_table = tlb_remove_table, ^~~~~~~~~~~~~~~~ bus_remove_file make[4]: *** [arch/x86/xen/mmu_pv.o] Error 1 which I solved by: diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c index a21988ec30d3..3114b7c76970 100644 --- a/arch/x86/xen/mmu_pv.c +++ b/arch/x86/xen/mmu_pv.c @@ -67,6 +67,7 @@ #include #include #include +#include #include #include > > .pgd_alloc = xen_pgd_alloc, > .pgd_free = xen_pgd_free, > > > -- All the best, Eduardo Valentin