Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp250822lqf; Fri, 26 Apr 2024 05:58:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYA+8zwQQpZQk5zhCeyNE5zpHp2cFhFoGVCbpqQA8UhMgt6JFPLNHU5uVGAW27GMqJGZ3nexDga56lnRg4HL1Sy90gggNp/eOwbQdcUQ== X-Google-Smtp-Source: AGHT+IGNAb7kqPPRL8Ff8EBudF3+6gvQ2H2otD6fT7/mbi0HIytzYHn9TVGCRUxMn5Az9ZPLRKnz X-Received: by 2002:ac8:7d89:0:b0:439:ec1e:327d with SMTP id c9-20020ac87d89000000b00439ec1e327dmr4478082qtd.10.1714136308937; Fri, 26 Apr 2024 05:58:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714136308; cv=pass; d=google.com; s=arc-20160816; b=N5ntG+OdoKh0u/nToZDNY8AcWNBLo4Svt32KZhgT27WTyQcxjJt5NsUc7gFT8PSJd6 TJCT0ZA9dIGfIU1Wvx96h+5fksQC4npsyBZFUfWdazPnq80e9Zq8j2w4PIvgxMXy/g6c eOrrfaH6DYwPmLzuWGNZRC5zEkcumXlYiyWUuJAJK6gsYEnUxlvEOwsUwGJjm+e/h69B wVogB6eMfFzjMA2wFxZvnjjD0RQSUefHI93sahSaiW3vhuZ1G5dbFa+U93bO8biQlthZ odV6xC0q7VBxN/p1I5Zy7LklDy+CPPmDLFROCVwdMy+vjb70PVmOKX+IyQK0ARPc+UVM ZQ7Q== 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=SBWDLy/Z8jULbV9JWFfWKICsmpR29qvLNIwHCgU4JC4=; fh=iNoWceMmyX5yR7msLg7O9zxXr/ezTB3rT1LLzkxbm1s=; b=wvKd03m9Nq2S2uUt9SyjVmbvU7+Z/4eL5hYtFKoClFoMesfB6dZ5v4Mu8H1Cyb3sfa bDHMHyMmDSH2qrjnWG81TgVksyLtkEjOEowEbFHCU1vTvaXo57BBMmu1xFVNLorcd52M 5jMC8keX2xrYr7d+wZmOx86raoBjVSQ9e1iyerigoK66OqsX4grld9Z9ZJhxMABTS3J/ dIA/GnBqnXTP3WxjQIoXYTAQ2EI+Nxtrcb38XtDF5+KKX7qeodIznn839Z/DYXgEz0ut wuKba1j0rcI5R5bxB0zLU6g3A/RblhX5cy22OMJALmkEDLunOogvwOJJTYDkch9GxN5W laLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=RZuOsYbP; 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-160008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fy26-20020a05622a5a1a00b0043a42fc50e2si4623093qtb.365.2024.04.26.05.58.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 05:58:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=RZuOsYbP; 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-160008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160008-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F0F11C2286E for ; Fri, 26 Apr 2024 12:58:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFB19146D42; Fri, 26 Apr 2024 12:58:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="RZuOsYbP" 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 604AA145B0D for ; Fri, 26 Apr 2024 12:58:15 +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=1714136297; cv=none; b=boOZBTHE3mfB9iaDUTJyZmfPUCZDzKDxXDt6zZtG0X7ckmHZKvZqlvQtlAvldd9QcBWrnXGN7eSElJ32/UUAnSn7T9kHg0w2GroEn7VTQb8IkQX+0qZ+AuUeimnkdt3dFfri9DtHyFgDJNtYZ0yMUymomk6PoNuoJhFKxxFP4vE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714136297; c=relaxed/simple; bh=QYk4rjYRopBRkpm4YBPXSiacVYDLMEGjeCLCnHfTe7g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DTR6rRibIrXFlKjixTOlSRqMajeLMJl+jz/6RxVd6HzNjKWnBEhN+FGklqbHgUibwuyIODIEPNx2nZr7vghorOtd2opO0/FM7/lcvJyuFLAmrdHJLtIO48j5NFZ/66bymnmMwXft0FjRpxn7UzPA9gyqDa6Xxv8CDM4VH5KB7mA= 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=RZuOsYbP; 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 4B93B40E0187; Fri, 26 Apr 2024 12:58:13 +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 Qw4k9b_DB3ES; Fri, 26 Apr 2024 12:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1714136289; bh=SBWDLy/Z8jULbV9JWFfWKICsmpR29qvLNIwHCgU4JC4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RZuOsYbP5BVSxtGsO69gB8NQlp3mB/pn3smaTkfin78c8Oko7na0jJZ4k0zZA7fol JzbSpswcTQuX5Xo5a9HJlQTPjTVxXpINQ2vW5TwYr/bf1x114D8kKryDN3B44VmJdx eY8GClZny3oL75jlhKzACb+vAW73ra0xG75u5GjVLgFeSzMBzQUm0ME8Cu2GHT74hJ W5aondW9SLCKoX4yrQbpgwQYYOtwAn/rC0p2XTs36VUUQKNcIPjE3nf7nvhRHD75ah 6UlGpdYDKPwMZ3K/IuY4z2VjQo+JUrk7/xK51XP1mmaAg2yyMD/4JIBjc4XURBr1UI Njx5AT5PgD9PMcLaTTa6uDE6UydhFXLWBtIbIoeNAwaqpkILuFBjjVBkINtSBg9r+W DvsRilx0jmC5S5kXepHZyhByr7dU2eJMajky/dUo8PTUAly1bsDykx+C8Am6bgfmP5 vmqX8E/0mYfAPhQLWYwyBfXx2Pp49zGs+zmcivXf1JG02HCtILXeLycxHDPd3TLxsc CSO7nDs4hPAzc9sGeff3tIDOmIfHhd5hvvq1qJneLQp4dCiNof3R+H/YpkTXV4aZGG IVFFyIbJjLND3Gz9hh5tpmU0pzxmqChgVvFqpasuBYAcl00DOzfac2R2TuHV6kYvpW jMZV6wHkvfSpPL8svOJezFUQ= Received: from zn.tnic (pd953020b.dip0.t-ipconnect.de [217.83.2.11]) (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 90F2A40E0177; Fri, 26 Apr 2024 12:58:04 +0000 (UTC) Date: Fri, 26 Apr 2024 14:58:03 +0200 From: Borislav Petkov To: "Kalra, Ashish" Cc: thomas.lendacky@amd.com, michael.roth@amd.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] x86/sev: Add callback to apply RMP table fixups for kexec. Message-ID: <20240426125803.GDZiuk2-YonyodvSbi@fat_crate.local> References: <96b2949cf225501d686b47070c7bbad341e160a3.1713212104.git.ashish.kalra@amd.com> <20240420130533.GNZiO9nShSxjxB-FQn@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 Wed, Apr 24, 2024 at 06:48:08PM -0500, Kalra, Ashish wrote: > This callback needs to be invoked as part of setup_arch() as it needs e820 > table to be setup in e820__memory_setup() before the callback is invoked and > snp_init() is called from sme_enable() in kernel/head_64.S (startup_64), > which is much before start_kernel() -> setup_arch() is invoked. So? snp_init() still runs before e820__memory_setup(). So what's stopping you? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette