Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp389859lqg; Fri, 1 Mar 2024 08:11:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWyuqn7CaaNu2b/ktmuSHfWddgJrwYqnB6NrJcKvzlDGqnzmDEwfLm67GFFIKTF7GK0uNwIbUjei4R1xwLp3SQcc5WvtsymU9flLZ4TLg== X-Google-Smtp-Source: AGHT+IHTwQYhcun9NnnWr0KWGte0F+Whf8vaS8kcRZEvYODyL45V6N6OEhzTSQeJG4MjFzImwNKV X-Received: by 2002:a05:6a20:d708:b0:1a0:e03f:dee with SMTP id iz8-20020a056a20d70800b001a0e03f0deemr1897263pzb.43.1709309469182; Fri, 01 Mar 2024 08:11:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709309469; cv=pass; d=google.com; s=arc-20160816; b=0Wlob9feC0r4AIZ+iaCs6rm4eonZfO2LbbGLfc/8QBFjNJ0aH87atuCFFF4xDFhO/A Vj2XHMiPW1VxjQocd1cuvIdFWxtnaTl9yKK98bBSfIJVK94Mo6fEAtmPRJPw2PwucGe5 5Pcg0C0b0Ci/Wqu4Zv2kMNTH6xD0leD2zr0OxKCVVcS1Z8kHZfM3YVU9P8flW7SSSC5e oxry5iDLDGytYnUVXyYyoY7rXJSPDVDXkrI9nLC6IlpcqWGx+KxRtbnI5uXm0HaedqPQ jUaJvyAIn3Lh/3OeNF7MoQm+ziCPpVCMWNBilFhblu+OAkvI+074gI+xAbnWkPtGvxkA iG9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aKVoLLI39CDmvAETXr4vvNP2F5orRZdabZkOxPl3r2o=; fh=cDHoXATbYNu4l85KZVSK4PkyqnGOGDn/kBaoOEMG9tU=; b=aVI42ox8esV7pnS0gKxEczw4IYwTIuQ5cV7/5a/Kq9yHipvNkPV6SfcUJnRmaEZPVR VXBcgO/D6HRRizQ0/0Goh3xnQfkTekD/5MTrN95YJPAxkzbB49QUvQ/2DSTGFhLV+FHC oJjsrDhyMiiZ6D0wE7yDhzjyguPYq/zaSu+ACNnWADNJOn8Om/rX2HHZHPzRzMjrNwGJ efVx5pdGzyhKrIFXBNUsk8jaoPpRSnXaQ1Rm7jhRoYlniKmevKze19m6//VfPHpqA7qN ehQdvBoORvDEiO15TYOgZjZ1aLszARL+k3FklBoP6TVcuTWNMPL25CpmzntZj0mwpAGi HDHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=FXa9jwDd; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-88667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q2-20020a656842000000b005d8b4ae4892si3642229pgt.253.2024.03.01.08.11.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 08:11:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=FXa9jwDd; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-88667-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88667-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 51E7EB21866 for ; Fri, 1 Mar 2024 16:09:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2835D70CAA; Fri, 1 Mar 2024 16:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="FXa9jwDd" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9695A41C7A for ; Fri, 1 Mar 2024 16:09:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709309386; cv=none; b=HVhI0AibMXVUIRLJ0hTho3CGvo3l31j4XGOQS+TlfuZqoT6Z6dqkXhBNnYIMujUncR3Kq1jTTOFZByTlUR9u7Bkj13v3HRSy4MwooOpgxmYDornp2gOUreaaafZjUalaHegGkz0zrM/i4flqZiSIXsptoAYoviBdOeAIPvuck0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709309386; c=relaxed/simple; bh=wuaOF7NM7A52qdXVIffLyq03NktimzJGcxFU0cLJJV0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Uf4sDF+DGZU8AibVi/bYCUVWTlwPPjKCyibh6wBjqcdNxEMaSdFyrarvIqyVoq6HQOY9UZ5ZmRn39/yxAsJ+qo2XBcd7MvO57Vq9VjKeZlrHZDbc8KOXzjB8WbULMXE/E7sKX2mMxSO00rrxno6hApOHNnMOUJyI7JVVTmVQIMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=FXa9jwDd; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id BB4F740E016C; Fri, 1 Mar 2024 16:09:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id HvQrcp6GYxZS; Fri, 1 Mar 2024 16:09:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1709309378; bh=aKVoLLI39CDmvAETXr4vvNP2F5orRZdabZkOxPl3r2o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FXa9jwDdUJpUQZb6+EGIoDwZZRyUUjUxnKfB+skNdcoYBqVORFa8IFSRC7LhQj0iO KYJgTOHYTAuzaVygBGWFjUKA+eIMeOnpLRHZrDPAZWX1yqgQN5zZ838UKuG3moz2lZ OEv1lfR1VjNSJZYo2oVAsIp6JdWlJ/PeLByFE9sejPH/UY/rhyoVWYzK4PRvIaAIoF LzYO1LpTGVc/DcaJzKETo9/ZuJYSgDl1tI2GzcBFek8QxQS7IZemAI/2Dg+5+eEyJM 3wlY/kdhhrdzvYEorJhDDfw4zpEULxgEBbJP4UfczKcHQEJlMhBvHGR4hGNTKqIrzd BpEY42ogGn3jNz35lFYGv3IxLwHqw07o+Wpb8gJa0sjZidiTncHV0ARqPtaSkANeoS EvQXqOONfHKQZQyH21KJiFfyh70UaiH6XQZxLDuJclUr1hpPvUUop5hCwDw0z3ixv+ vyqJCJLN04jiB/KwumUnUfrjQa4esJHISZ5jvGtBy1eTQEXZ+HROLbSseMSV8bI8F1 Efg1x+paT0UykSehmFo6+2OTe9pr2x+xBcg7mh5EtxmIyvbGeUFYwbZ2+sUOxJyBnV KhKc2XEvzlWtGH4DHLq21Rd+gQupPtfG6XpjVBdmcDjBCaq7DRjYRqexMr0CxIoKHS V63bw0o6FUpLQsH4CT2lG/bQ= Received: from zn.tnic (pd953021b.dip0.t-ipconnect.de [217.83.2.27]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6F49F40E00B2; Fri, 1 Mar 2024 16:09:27 +0000 (UTC) Date: Fri, 1 Mar 2024 17:09:21 +0100 From: Borislav Petkov To: Ard Biesheuvel Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, Kevin Loughlin , Tom Lendacky , Dionna Glaze , Thomas Gleixner , Ingo Molnar , Dave Hansen , Andy Lutomirski , Brian Gerst Subject: Re: [PATCH v7 2/9] x86/startup_64: Defer assignment of 5-level paging global variables Message-ID: <20240301160921.GBZeH9sZhp73xX40ze@fat_crate.local> References: <20240227151907.387873-11-ardb+git@google.com> <20240227151907.387873-13-ardb+git@google.com> <20240228205540.GIZd-dzFYIBbtfIAo3@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Fri, Mar 01, 2024 at 11:01:33AM +0100, Ard Biesheuvel wrote: > The scenario that I have not managed to test is entering from EFI with > 5 levels of paging enabled, and switching back to 4 levels (which > should work regardless of CONFIG_X86_5LEVEL). However, no firmware in > existence actually supports that today, and I am pretty sure that this > code has never been tested under those conditions to begin with. (OVMF > patches are under review atm to allow 5-level paging to be enabled in > the firmware) Aha. > I currently don't have access to real hardware with LA57 support so > any additional coverage there is highly appreciated (same for the last > patch in this series) Right, I'm sure dhansen could dig up such a machine. We'll ask him nicely to test when the set is ready. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette