Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1456319pxb; Fri, 1 Oct 2021 10:59:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaa32jRSDupkvSP9XKFmhmw0MB3we67w0y0hHkCfwXfyJetOR8jr1NmOAQ5R/zCvQHz7Bl X-Received: by 2002:a17:90a:4105:: with SMTP id u5mr21328211pjf.11.1633111153063; Fri, 01 Oct 2021 10:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633111153; cv=none; d=google.com; s=arc-20160816; b=L9IDUEJrEz7lnxpBX8QglB47QDpqKGMICIlgsajdb5QS6MOtloxUVJPIIFOeh7kdlK VruxWIgp6dp0pu1FGOPYUVQzG69xDms4SieIA0KcYLAE0/jcb8dUgYOiwoN1fmhSJ/cU Ju8ifW6ZN0eoN9h+1UmM0kdGIxCNzhf/AUhp1EVP0Z3SRrElsOZ5DdEqM/IuGcHOlzd8 DlZAzgTDlTEjnE3LCqc+FaAlNSpWxcVMNaDe8Pj0j+ogd56MenU8s9eVJ2pVBqLvYmgX N3C9qTFRAXhbo6esELqjpu5skS0lcsE6KUUYyn92BwwCRLm9UgRnF8hpdb8ObDF2mGTU nBDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:dkim-signature; bh=ilpkw1PaV61JJ9sLSth/ZoVtlT/iBzt2bJzF/XtJ8pE=; b=X5rfmwh9FizV7ysM/8qOoDGS7EtEfPSni2maeCsWwcAu3kYt79eQvzueTifuw96BBJ NtJ9eGfLm9xa4DDPduwFhbgF80tSrdgaq3LWNHzD7NF8l4mx8HfTy0qn10VNb3rXx7dt 0amak4+xRnXFzF+qCW3H7iJuqGe5p9xcAp/GRVaK9MU1rUxcBQsnItv/RhLgQSwkXxU8 tL1GSyJFDdZ6G1T20imqVoN0h1RqgH505fAQc9men/WeDep0nHk21+B+JRsW/YPRMYSn T/zQZoQDBQiYF9kZahzSMstlB5KSluBUhZsKZhj/JO4cxDhSo+Osaimw30PvBOZJC1Y+ lk2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=OLYLYoWl; dkim=neutral (no key) header.i=@suse.de; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si12115773pfg.26.2021.10.01.10.59.00; Fri, 01 Oct 2021 10:59:13 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=OLYLYoWl; dkim=neutral (no key) header.i=@suse.de; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355570AbhJAR7j (ORCPT + 99 others); Fri, 1 Oct 2021 13:59:39 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:58920 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355546AbhJAR7i (ORCPT ); Fri, 1 Oct 2021 13:59:38 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 558581FEFD; Fri, 1 Oct 2021 17:57:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1633111073; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ilpkw1PaV61JJ9sLSth/ZoVtlT/iBzt2bJzF/XtJ8pE=; b=OLYLYoWltMBBM6EdoElvxv4XEK2Q+Cy6HrHDb34cmiCsqY1v//d2cW4ICkObOpj7zYTm54 C0XFZv0M+qpjLwJx351JKfZQl7UuvkowO9wsN7Bgjbg6VaRBrtx1Hczan6G4T/H5Qj7fVm 2Vd2rkCsQhbQ0uPv//zas71+VAPR9Gw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1633111073; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ilpkw1PaV61JJ9sLSth/ZoVtlT/iBzt2bJzF/XtJ8pE=; b=xIpct/XFDEefOkbidhPMwyPTaiasloJk9SxrUdEoNWKqaG/F5WXhihC5vpl4Fyp0dpIddF 3I6ALLafMEtYPzCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D50FD13BC3; Fri, 1 Oct 2021 17:57:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id EMRkMiBMV2H+DQAAMHmgww (envelope-from ); Fri, 01 Oct 2021 17:57:52 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCH v3 3/4] x86/mm: Flush global TLB when switching to trampoline page-table From: =?utf-8?B?SsO2cmcgUsO2ZGVs?= In-Reply-To: <03994224-abba-4551-9f9d-1360af69c78e@intel.com> Date: Fri, 1 Oct 2021 19:57:52 +0200 Cc: x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , hpa@zytor.com, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Mike Rapoport , Andrew Morton , Brijesh Singh , linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <76A7441A-2A7B-4FBD-A17E-B370893B9CEA@suse.de> References: <20211001154817.29225-1-joro@8bytes.org> <20211001154817.29225-4-joro@8bytes.org> <03994224-abba-4551-9f9d-1360af69c78e@intel.com> To: Dave Hansen X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 01.10.2021 um 18:13 schrieb Dave Hansen : >=20 > On 10/1/21 8:48 AM, Joerg Roedel wrote: >> Move the switching code into a function so that it can be re-used and >> add a global TLB flush. This makes sure that usage of memory which is >> not mapped in the trampoline page-table is reliably caught. >=20 > This looks fine. But, just to be clear, nothing in this series reuses > the code, right? Correct, but my SEV-ES kexec series will re-use it, as it also uses the = trampoline_pgd and switches to real-mode to park the APs. Regards, J=C3=B6rg=