Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1FA97CE8E91 for ; Thu, 24 Oct 2024 16:43:00 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.825507.1239735 (Exim 4.92) (envelope-from ) id 1t40v5-0001hu-As; Thu, 24 Oct 2024 16:42:43 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 825507.1239735; Thu, 24 Oct 2024 16:42:43 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t40v5-0001hn-8O; Thu, 24 Oct 2024 16:42:43 +0000 Received: by outflank-mailman (input) for mailman id 825507; Thu, 24 Oct 2024 16:42:41 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t40v3-0001hh-IC for xen-devel@lists.xenproject.org; Thu, 24 Oct 2024 16:42:41 +0000 Received: from sender4-of-o51.zoho.com (sender4-of-o51.zoho.com [136.143.188.51]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id fadf7ecd-9226-11ef-a0bf-8be0dac302b0; Thu, 24 Oct 2024 18:42:40 +0200 (CEST) Received: by mx.zohomail.com with SMTPS id 1729788153638363.1295203280963; Thu, 24 Oct 2024 09:42:33 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: fadf7ecd-9226-11ef-a0bf-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; t=1729788154; cv=none; d=zohomail.com; s=zohoarc; b=W/bLTcUwFh7F83ztvf7NyyesSa0xzdByH6ErcUj9cKuOzWXt5yrhCmD0rtCWn74/8YyZMzFpnlYzUYHuZCqz4o8KM5/B61Dqvcx8gMuAjA0dSFJ4HaNVxALuMtK8SOcasMoT2094MAgHI4dkg8T5xN3uJboCd5qwehN22wTdgSE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729788154; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=x4/TnSsW7+E4msXP5ig1Bx7CXFMPKNACg6DP3jRDBzQ=; b=emoyXk+oh/n+bl27CMVS92p3f0/yJGMGdT4BIsB1gR7mE+jVrzcehcycXSavb3BLCv/0vVRaKa2ZsBizLZk0Xoit0W68DYCHQLzKsoQlNCYb4Pp5koslzg5P7FT5cWPSzW72k3Q/d2O010FpL1PyRThCeITMBlQowMPlpNvxml0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@apertussolutions.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1729788154; s=zoho; d=apertussolutions.com; i=dpsmith@apertussolutions.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=x4/TnSsW7+E4msXP5ig1Bx7CXFMPKNACg6DP3jRDBzQ=; b=tsL6ZdmKQgxfwJ4ODu2JlpoLh9512kw6OpieYhMyQcA1hOVFx2bjP7tbVCihSIm8 xdR1O/V6mDaxnq4q6s4C+Ylbo+DQ4oWKhOaDRTjunciemIOnJej4i//QcU6q4ytT91n 6ubr6s9punSg7L4PuZr3esmXWc6ad9QXrsHVtAw8= Message-ID: Date: Thu, 24 Oct 2024 12:42:06 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] x86/boot: Explain how discard_initial_images() works To: Andrew Cooper , Xen-devel Cc: Jan Beulich , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= References: <20241024160340.1012474-1-andrew.cooper3@citrix.com> Content-Language: en-US From: "Daniel P. Smith" In-Reply-To: <20241024160340.1012474-1-andrew.cooper3@citrix.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External On 10/24/24 12:03, Andrew Cooper wrote: > discard_initial_images() only works because init_domheap_pages() with ps==pe > is a no-op. > > In dom0_construct(), explaining the significance of setting the initrd length > to 0, and put an explicit check in discard_initial_images(). > > No functional change. > > Signed-off-by: Andrew Cooper > --- > CC: Jan Beulich > CC: Roger Pau Monné > CC: Daniel Smith Reviewed-by: Daniel P. Smith