Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1218563pxb; Fri, 1 Oct 2021 06:11:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRmTMjMmNtLScs60tQashm/RgodpUk0XmXTafUmnFcKY7qoHa2jr/fuAIp0jWLZrLfdCYx X-Received: by 2002:a5d:4a85:: with SMTP id o5mr12393986wrq.204.1633093894997; Fri, 01 Oct 2021 06:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633093894; cv=none; d=google.com; s=arc-20160816; b=EblRn95DRBMv8Bk6WGf4wfqDwc239b7xXUNwIn2KHbeix8pu52MegEmQAWF8tgBOkK vfy/4fLzdgDmsHoabvUlollGcls9ko42w7uelhlfV/UbS5ds4OkyQT9XK+uOA2Arjk+X RXAXCPRSLjd6U7J4wK7DFI9O93KvXJPFvXfhqAr8cpXSzNiyEiYc63438Ch05EtjHGvx fLTCifBw2inm3A/ZpLk+nF9p/LX3/ZLgntB7JYRtmB69IrBfAJ8TvuNn/EGFZw7gzJBS MvZUqDxTukQ/KZBM646/pB+VAH3cQKJ1F5d1dApwlibWQ+X8GNN3k1zSVdxkfqaq/27N XtZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=i3gu9u4SXiaY0rALHxPJ8jUeUQVpUPMmrqfpUSqsXGs=; b=Px46LuTigGLR+fDXeyEF7NjgUKiYW0KuL+4O++teB8PY7Rl/0kFnjse7ktoJ5vnb0X iY2S2HiFPtQZBWTD0rVGzC9UPXfm6YxoBXGl2h5UmRq8JAxNe6LEeFh3u0Jykwa4fYUO 9+7j0k8fTyP68p2fVxfT5fJi6HvbG1YLUmFFYFwKs71N+2aifSfzWT1a3ZJUcfAOn8Kb GaBGscuJ6y/ajw0hjZfdu3FAN0qXj5HsQwhC9GZ7vPvy4Uf3TtXzQdc4qBIdZQG04vD6 wXeTo6FnIxCYhRcCC1oiyx3wBJeCT5MThK8bYJh6XgSmvbjxBkPE7ZZXqdyajWBIBLeM kx+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 e10si9288476edj.362.2021.10.01.06.11.05; Fri, 01 Oct 2021 06:11:34 -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 S231410AbhJAMjt (ORCPT + 99 others); Fri, 1 Oct 2021 08:39:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231352AbhJAMjt (ORCPT ); Fri, 1 Oct 2021 08:39:49 -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 DED16C061775 for ; Fri, 1 Oct 2021 05:38:04 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id CEA412FF; Fri, 1 Oct 2021 14:38:00 +0200 (CEST) Date: Fri, 1 Oct 2021 14:37:45 +0200 From: Joerg Roedel To: Dave Hansen Cc: x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , hpa@zytor.com, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Joerg Roedel , Mike Rapoport , Andrew Morton , Brijesh Singh , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] x86/mm: Flush global TLB when switching to trampoline page-table Message-ID: References: <20210929145501.4612-1-joro@8bytes.org> <20210929145501.4612-4-joro@8bytes.org> <18be825f-b3f3-3e05-1b14-82712d9a6c0d@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18be825f-b3f3-3e05-1b14-82712d9a6c0d@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 08:07:10AM -0700, Dave Hansen wrote: > /* > * The CR3 writes above may not flush global TLB entries. > * Stale, global entries from previous sets of page tables may > * still be present. Flush those stale entries. > * > * This ensures that memory accessed while running with > * trampoline_pgd is *actually* mapped into trampoline_pgd. > */ Yes, this is better. I replaced my comment with this one (only did some minor rewording). Thanks, Joerg