Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp587167ybh; Tue, 21 Jul 2020 03:01:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjhH0JaPfBMdAGl1QUeTgIYTunth36QJxjTMCZqle+phWtBaKq4A3iv27ZOt6jdXERlYD3 X-Received: by 2002:a17:906:c1c3:: with SMTP id bw3mr25955527ejb.8.1595325660465; Tue, 21 Jul 2020 03:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595325660; cv=none; d=google.com; s=arc-20160816; b=tbwpRCzIWtaKbIb4qg3wUpXiSM7V5OCouvjSTum13GyfrU6wJ/fOrtKvQqqv/R6Fe5 QHHfB+NuOKNR44pkMolWX7M8Oxue2TaEI/sSxZ4W+kJl9GvSjoFHTWX185qII7EzV3tf eW6cLX6jpPKcmZ7iCczT01HBK5q2SvccT/E6L+fA8HHRgP/h+3ClTeuj63lq1HTuIPzM i8l6Cyea7QWs2FhgaH3zFxAOkCiJySbAEdGDw+/Nl/C3ABX5R9CkQJNkU/bzbhXsvtLd xkoY//a2wNkDctbys4iaWawi2YzP8pV7ALYhOnbsBBNuaB1L1/NUdRyWucwV37SgnJ/Y 5DlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=q9Ry8vxWaZm5pcgH1jceL1LHAC+MNsjQyYEADoHL3JE=; b=MIJ1tqiCzY27pq0nA0umll9C0DvyX0Kzv+3GPNdsf2WhnEJbWLfOgdEIXYPpkr6xHw 9+hZpKwC3hTVpm1nAVt1nOao9hFwA9OwzP1FZ1EWWbumnHsTnvTY+0IAk4RlithGOZHL +ielMH8Jiq7pIEwVYaAPDHxbhaqS2VuSkh+vRUgmQ58R8Bl/2OAYPEasKZ0pFaqHWcsS vIaB+c8LQH2zjoJgfj5dPmnKWTHQ44zPBqBZbX+VvySP7gPV6054blz0CwFclkdxO1G9 Qfx/OzJIDiF3hGA3h9OsjLXSv5XtsmF/p/4cllkd0/x0SZebtWL9ZJQ4K5DpEsm+lZhX Xy/w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj3si3408123ejb.383.2020.07.21.03.00.36; Tue, 21 Jul 2020 03:01:00 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729142AbgGUKAM (ORCPT + 99 others); Tue, 21 Jul 2020 06:00:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729138AbgGUKAL (ORCPT ); Tue, 21 Jul 2020 06:00:11 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD869C061794 for ; Tue, 21 Jul 2020 03:00:10 -0700 (PDT) Received: from cap.home.8bytes.org (p5b006776.dip0.t-ipconnect.de [91.0.103.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by theia.8bytes.org (Postfix) with ESMTPSA id 2282A33E; Tue, 21 Jul 2020 12:00:07 +0200 (CEST) From: Joerg Roedel To: x86@kernel.org Cc: hpa@zytor.com, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Andrew Morton , Mike Rapoport , Joerg Roedel , joro@8bytes.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] x86/mm/64: Do not sync vmalloc/ioremap mappings Date: Tue, 21 Jul 2020 11:59:52 +0200 Message-Id: <20200721095953.6218-3-joro@8bytes.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200721095953.6218-1-joro@8bytes.org> References: <20200721095953.6218-1-joro@8bytes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joerg Roedel Remove the code to sync the vmalloc and ioremap ranges for x86-64. The page-table pages are all pre-allocated now so that synchronization is no longer necessary. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable_64_types.h | 2 -- arch/x86/mm/init_64.c | 5 ----- 2 files changed, 7 deletions(-) diff --git a/arch/x86/include/asm/pgtable_64_types.h b/arch/x86/include/asm/pgtable_64_types.h index 8f63efb2a2cc..52e5f5f2240d 100644 --- a/arch/x86/include/asm/pgtable_64_types.h +++ b/arch/x86/include/asm/pgtable_64_types.h @@ -159,6 +159,4 @@ extern unsigned int ptrs_per_p4d; #define PGD_KERNEL_START ((PAGE_SIZE / 2) / sizeof(pgd_t)) -#define ARCH_PAGE_TABLE_SYNC_MASK (pgtable_l5_enabled() ? PGTBL_PGD_MODIFIED : PGTBL_P4D_MODIFIED) - #endif /* _ASM_X86_PGTABLE_64_DEFS_H */ diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index e76bdb001460..e0cd2dfd333d 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -217,11 +217,6 @@ void sync_global_pgds(unsigned long start, unsigned long end) sync_global_pgds_l4(start, end); } -void arch_sync_kernel_mappings(unsigned long start, unsigned long end) -{ - sync_global_pgds(start, end); -} - /* * NOTE: This function is marked __ref because it calls __init function * (alloc_bootmem_pages). It's safe to do it ONLY when after_bootmem == 0. -- 2.27.0