Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1101772lqj; Mon, 3 Jun 2024 10:07:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVm3XcY9d7oorhIXDAWXK0khTkMFeeogGtq7bSmVdZIj4qjJKxxE0U4ZfWIygJCSO+6zwqIlA8CqefjZV1MG1HvUHy1Dj0KP7D0YoeEpg== X-Google-Smtp-Source: AGHT+IGLmMIDhqHKARaMHaVEP4CtuVrvzFgUJPldYpaptrO4gWZgwnb8sXp8QPfyKhudcXgnstFk X-Received: by 2002:a17:90b:11cc:b0:2c1:b88a:3a27 with SMTP id 98e67ed59e1d1-2c1dc56db9fmr8426152a91.10.1717434426472; Mon, 03 Jun 2024 10:07:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717434426; cv=pass; d=google.com; s=arc-20160816; b=cKyYxo4xQTohU/8OBEN99P7XvdMqxFBwTpjensnXuGuL1Cqil1J7Pls8EQtyVNbkRL X++OxqIFhHUHLXzlcYwuJQcAsXzsL7QWoG7gcC1xzSQTPF6XfEYKYuExGlZF4MxfUmPQ +JzRzBi2/KvFUzF5iKnrat1twtkgyF74deT/kyRh12M2GcOrA+lPx8MS2oilB+smfwvQ RaQ31q3fI7X61YqmwbnZhZe67P3ybC9GvgN/ce3ACksScATtv1rMkecOrSlrB2KHJJ9W 4rHQ/UpVc9fLXC117QanIF76rfqicBYWZCWxsmFDwpARR6fjSx5EY3wBP63FMYz0q5Iv bHJQ== 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=5Ye8WQXQcDM0Pbn/WLfdstI1LprqRnXUsBOMSmIce1U=; fh=P6ItXGes9LBD6AoKqYg1gBPWacJQfu2lszFzGY6QX1Y=; b=xcYNOGADmEjbiijk0hMt7+VUAWr/XNOKgppnC0o8LhrAKEzYWN189s5E88rGLqmNdS xFoo+bfb5Mf+u0F1vM4HMTAT1sw20TydoQrPHFHhHmqSSPgCDVt+BHvJJ6nGWDtc7Pl0 Mn7KF7xV7IDL9pzed1yv1FNAlWxhfO4xOzl7VuUDs1X0qca3qYoTjFhGAuZoJ9uR4ake PaOH/eecUyZy46/RgVuTzF8K5f3q0mGVVgcrjJebnb0S2GGNlarMxBjgjIA5HOXO3ErM yA+ilezKMOufeHB24z9mtq81IYxKmPQ/zF0CrDacovx4hUzsKYEVTuehL96VifhRVl8V GoiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=TE1Juqy6; 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-199471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c283e9a3si6691853a91.146.2024.06.03.10.07.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 10:07:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=TE1Juqy6; 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-199471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199471-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B633E28B503 for ; Mon, 3 Jun 2024 16:58:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D9A8137756; Mon, 3 Jun 2024 16:58:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="TE1Juqy6" 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 EE773136E00 for ; Mon, 3 Jun 2024 16:58:23 +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=1717433905; cv=none; b=s/ro9YmQeogL6LlSG8D1p5IopE7idnDrlNqKjJ4ZI8WczLbbQBj3A+2pjwCkTyUTgDePkPr+Y9xq/hZKWAqe9cO6VlAL9gCrNyiU+TiFnD1EydThGo32Hg6VRK28ndNuvDckNlaf8IjLy8ickt8asOSJlmMtsFOYInkZWrC+dWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717433905; c=relaxed/simple; bh=nAPoQ7pw7Q5+locS/uIjlUCHlvPFcUGQNCw7PSBrjh0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CJHq6zdoqMcZYCVuZMwG3eEDO8BefO7eA5PSryFmKfsgAixIYa9GtzxnbOZTOk7tcNiCyHJ81oYHTPZJy32ph32rvV3dTMpavS3GcGEWPsmQGO5ya+Ao/fFoepkA4ePuqgA8qJ7Z+o2bbOrcAgL9JT+jzlxngEp8dpKMIKqBqTU= 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=TE1Juqy6; 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 9475D40E016E; Mon, 3 Jun 2024 16:58:21 +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 7mEEOYRQqEWz; Mon, 3 Jun 2024 16:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1717433897; bh=5Ye8WQXQcDM0Pbn/WLfdstI1LprqRnXUsBOMSmIce1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TE1Juqy6WPbqwr6uB9fEtuD3rF3JlqT7316Kf427rRDAvagZPD12LRCbcRhJtiCEG A+IbVVBf/HxDtMrzsg/i43YFHSIBUQ0jKZw2Slc52HIdCWpy8WQtm9cqKrCvqjo9hL 0i0RNRAoojit05frOOu2qH7rMOoIn1KmWU+5w5tSie6d89Mbj/+uPDIFwZTY3VU+b1 Jf04JSqAqYa/wRKrfJxjQnVWQGQZjCIQhc3dXMKXesQeqs0zmrh5MQ1iutL6uCs6Vy 4s6NQoearde7AF9/5hOpDlGiZ4rN+G2L/W8PqbSqokd3ldcswvipHcksTZJtn6nrFi VgZ42KmNxeLpdQN3zKZ4UaXm/G0JirSW9fGp56NtAdl6gSnVufixs8seDODtpA40RK 6Zhh7E+2cRvFfWa/ZShtfnkAoFnU4LC22n2N1fygbD8e0lk8U6KiZ5yIBJU+ZXpYM9 CavqhJurk9OFIP+JaOl88Y4uJXUKi56SaMzdLhk741XRX3uH0KzyFIsFFiFedzqCAD RKWQnhlaPlezhC1erdtYPJjKBQ27Gs4QDcMUul0/Ddl/4SlzV1bDCV89Y0cXENwCpU QFLvzqUfjt4tRoGzqaA+3p4chOhbEU4CVGExemMMBE4KH97LH66t4/dJLPAtOexNCT QmBw/4QTQvWHDolYRXt4dgiQ= Received: from zn.tnic (p5de8ee85.dip0.t-ipconnect.de [93.232.238.133]) (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 22DF840E00C9; Mon, 3 Jun 2024 16:57:48 +0000 (UTC) Date: Mon, 3 Jun 2024 18:57:47 +0200 From: Borislav Petkov To: "Kalra, Ashish" Cc: Mike Rapoport , tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, rafael@kernel.org, hpa@zytor.com, 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, Dave Young Subject: Re: [PATCH v7 1/3] efi/x86: Fix EFI memory map corruption with kexec Message-ID: <20240603165747.GGZl32C9yrmXJ4nhPT@fat_crate.local> References: <20240528095522.509667-1-kirill.shutemov@linux.intel.com> <20240603085654.GBZl2FVjPd-gagt-UA@fat_crate.local> <8e3dfc15-f609-4839-85c7-1cc8cefd7acc@amd.com> <1ef36309-8d7f-447b-a54a-3cdafeccca64@amd.com> <20240603144639.GCZl3XTwmFHwi-KUZW@fat_crate.local> <7eb4ca99-679c-4f23-9562-a39b966c28a0@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: <7eb4ca99-679c-4f23-9562-a39b966c28a0@amd.com> On Mon, Jun 03, 2024 at 11:48:03AM -0500, Kalra, Ashish wrote: > Yes, something similar as above, as efi_mem_reserve() is used to reserve > boot service memory and is not necessary for kexec boot. > > So, Dave Young (dyoung@redhat.com) had suggested that we skip > efi_arch_mem_reserve() for kexec by checking the set EFI_MEMORY_RUNTIME > attribute as below:a efi_arch_mem_reserve() or efi_mem_reserve() altogether? Btw, that below got really gibberished by your mail client. Snipped. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette