Received: by 2002:a05:7208:b08c:b0:82:bbfa:f723 with SMTP id c12csp396147rbb; Fri, 26 Apr 2024 07:22:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXV8N4aqZDtpJOlg9WRMkAbR97JUQdP8coZMt1fYeuqQrL1dlE9oxKJJokEzSfrkNpF8TcBSM22xJuMwNADzg420bi4rJ4dNLrVOEaTgg== X-Google-Smtp-Source: AGHT+IHRFiCkV5apKsvmi5daLWKC14vWjTJ+LIjim3wGTxB7mSXjKiAm/O+PJTcRpTqVDyBRlbEC X-Received: by 2002:a19:a410:0:b0:51a:ecf3:1b34 with SMTP id q16-20020a19a410000000b0051aecf31b34mr1549563lfc.65.1714141334468; Fri, 26 Apr 2024 07:22:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714141334; cv=pass; d=google.com; s=arc-20160816; b=Qva00s+GvWFzKRgueBxMOkAc7AgbEMmVIzLLw2xuHHrr9nLuBfRQeI5d5X7Kw4QfF5 1x6/qCQyoqEspHXtB4Mf+gdoKLlUNafl1sxU+NdnrlYHDCUMFSCytUPnGldAVwDamGT5 5mjgmfsvKPLK27gbBvgTHezWidtIBJc1bYhFjFdu9zNY/yB9cuXkhFiy3QaPHBR5IJwH NvCjmHXVR5iwCrqIBiXzR9O15D9J2e82kwrE9UULUrBAv52neEWEmm0/GzGofXE49m6c euBCZD5G3+2sDvDyL2Wpz/srtG9Y9Tbu8cdw6wclxufQzkP5Gu+NhtMvpI0XtZhCm+FL 7qaA== 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=S5ZM4B6BQIwAX7AeKzf8qU0S9c3jJ6RtzIBBBo7BmUg=; fh=8LsPn2uN1AEX9FWymIF21kcuvPEgLH8rOPsfPoTpwhg=; b=onsuJrJrcRlMv5OoDjBZuxkXLUv8ZCzeeLtqSpxktpPBIQ2O9AGZp5uBHn0eMOr3v0 K/Bh4XGbyjjUFzflefIqYaOqfKHRm1Q/Bo9C8rl1YNjYNx2BVOE5NvjZawzFq5EnnIhc WF+jejfgAePDYPJqSbCOyeenAjSYZZXljqXuF5lUpCdUSr7QsbS5IvEJ/sRMRCgseRRl 8NcCocq1MIr1BLJ+aAcokTE48QiCpw67tSA9ML+/cvPbjFi2AW3P5Ehd4UO6xY5IYlYf 7cST+oYXKdH+8wkYbNQbWnjjbiLAZnnsbsNPuqe1HDvPlyo+y6rlddGsvcCVHs822nxB t1Nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=F4nGAP97; 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-160139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f23-20020a170906139700b00a51a6b52948si11339992ejc.245.2024.04.26.07.22.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 07:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=F4nGAP97; 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-160139-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160139-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D7FE51F22EEA for ; Fri, 26 Apr 2024 14:22:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F099148822; Fri, 26 Apr 2024 14:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="F4nGAP97" 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 5042942A99 for ; Fri, 26 Apr 2024 14:21:59 +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=1714141321; cv=none; b=WPsLIURqWDtDLOUGmb1vqn8qorP0apNH+2E4nvqVkWHAGCHKQSy79Zt74Fzs4M95FyYeWo8WDLV5kCtqw0YWVM7vLD+Bkl1XJphLO7z7hmUa+mn7QmTNHLnl8iLrVCvZJ/x52aAjm6MbWNn69ULO01erlzdj8FkOAWb1mDV9xho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714141321; c=relaxed/simple; bh=vDHEzSaszVlCKHMx4cB2NDow9Th6KgxtjK0/CpMgmYs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TcWR6T2faYViN9mHQ7lWO8hTHhpaTZ/RrxdGM91OfW6+x/2N4RaXuF6xWx5EOPkbINxV/ad6emdMJdl8Jj/4VgFUIiC+KYHglzjT63AbeNhU57rEPw8Lo5Hc0w9egKTDV0IqWu7eFIZijUA1c5JWMAGxGons2iLPYOc/QBmMf7k= 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=F4nGAP97; 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 A561B40E0247; Fri, 26 Apr 2024 14:21:56 +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 4nr6ztsoQAeU; Fri, 26 Apr 2024 14:21:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1714141312; bh=S5ZM4B6BQIwAX7AeKzf8qU0S9c3jJ6RtzIBBBo7BmUg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F4nGAP97ss/AfZh+ukrQwTcMEJZtdG1sbwaKNitN20yduwb7gHFd0MAWB/POEXh8D nozHf/jAPO67nYwIMAWGnobXVH4I9+cQSDjzocW+9DtmEIH1OnvtBm0hFGPV/leG0X Ce22/yPF/rywQdXZb+wyke3fV0qTBcOd9LnAsuUVudQKKDngFQ9fH/cvs0ttQ4EsJh wYiSzdh+75NsvdEH6Sh2G1HIoa1f6jov65xVjeSykBAJi4beDoKJwk4OR2xiboE+3s uGgCvxWXagN5EM3q1csR1gL8/B8V2JPLXyGrI7z6G0ZHtQhRClB2Ue9DOp2r6wXazH XVZt7T9mHCEYyEjzpAIqYPMvA1/R9QXPHfY4HKZwMaFcr3dOgYEIZJWnlclmdyOd4V wKcNEziLWXGWpZyTYTJyzLLazZduq/dgqssRKUfbYz5WgZRElloS3+w54ACCPqD1cU wNxIOYZ2IC1PX3QwwS7jy3XuiOk82910etfsfYTkkzLPa/fXyqrBgPNk1ThrRiRxkY Fo9lecmpFLaE0M0GHDzFklziwJdgTFEFovOebmwJucq3vUXaGJJBFKgKtsDDgPz4Yc FGPiAzTjFnyRvFE4L7TLOQlmY5vdAa4jBuPkfW5Q1zeRB+NeMCrYzOeYBUYiRYpwuo ZD1iBr1Ua0SrdzHG8FVDY10s= 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 42A2140E0177; Fri, 26 Apr 2024 14:21:26 +0000 (UTC) Date: Fri, 26 Apr 2024 16:21:19 +0200 From: Borislav Petkov To: "Kalra, Ashish" Cc: tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, rafael@kernel.org, peterz@infradead.org, adrian.hunter@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, jun.nakajima@intel.com, rick.p.edgecombe@intel.com, thomas.lendacky@amd.com, michael.roth@amd.com, seanjc@google.com, kai.huang@intel.com, bhe@redhat.com, kirill.shutemov@linux.intel.com, bdas@redhat.com, vkuznets@redhat.com, dionnaglaze@google.com, anisinha@redhat.com, jroedel@suse.de, ardb@kernel.org, kexec@lists.infradead.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/3] efi/x86: skip efi_arch_mem_reserve() in case of kexec. Message-ID: <20240426142119.GEZiu4X8VPK5He4zH1@fat_crate.local> References: <20240424144807.GEZikbp0NjFP5AM_ms@fat_crate.local> <16b34494-7e5f-4feb-8a21-58e7b8fa97e2@amd.com> 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: <16b34494-7e5f-4feb-8a21-58e7b8fa97e2@amd.com> On Wed, Apr 24, 2024 at 04:17:09PM -0500, Kalra, Ashish wrote: > With SNP guest kexec and during nested guest kexec, observe the following > efi memmap corruption : Before we delve any deeper here, lemme make sure I understand this correctly: * You're in a SNP guest and you're kexec-ing into a new kernel? or * You have a plain hypervisor which runs a non-CoCo guest and that guest is a hypervisor too and it starts a level 2 guest and *in* *that* level 2 guest you kexec a kernel? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette